Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork410
ctags: filterSketchSource: enlarge buffer size to handle long lines#2935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Can you provide an example of a preprocessed source to make a unit test? |
I've tested the example inarduino/ArduinoCore-zephyr#140 and the patch doesn't seem to solve the issue 🤔
|
cmaglie commentedJun 26, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Ok, never mind, my mistake. PEBKAC. The patch works. |
codecovbot commentedJun 26, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## master #2935 +/- ##==========================================- Coverage 67.81% 67.81% -0.01%========================================== Files 238 238 Lines 22450 22460 +10 ==========================================+ Hits 15225 15231 +6- Misses 6022 6025 +3- Partials 1203 1204 +1
Flags with carried forward coverage won't be shown.Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4891ded
intoarduino:masterUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Fixesarduino/ArduinoCore-zephyr#140
Please check if the PR fulfills these requirements
Seehow to contribute
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)configuration.schema.json
updated if new parameters are added.What kind of change does this PR introduce?
When parsing the preprocessed file, only the lines relevant for the sketch are preserved.
However, golang's
scanner
fails if a line is too long for its buffer.Overcome the issue by adding a 1MB buffer (extremely conservative) and a non-fatal error message in case it's still not enough.
What is the current behavior?
Compiling any sketch fromhttps://github.com/arduino/ArduinoCore-zephyr fails to create prototypes due to
analogPins
macro, which expands into a ~90K characters lineWhat is the new behavior?
The prototypes are created correctly
Does this PR introduce a breaking change, and istitled accordingly?
No breaking change
Other information