-
-
Notifications
You must be signed in to change notification settings - Fork 403
Added skip-libraries-discovery flag in Compile #1777
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When will the LS use the new
I assume, the reindexing happens on
The Snippet from /private/var/folders/z1/xkw1yh5n7rz4n8djprp1mdn80000gn/T/arduino-sketch-2A25CBEDDFEB3508AE8DDDA45D126AAA/sketch/sketch_jun22b.ino.cpp.o: \
/private/var/folders/z1/xkw1yh5n7rz4n8djprp1mdn80000gn/T/arduino-sketch-2A25CBEDDFEB3508AE8DDDA45D126AAA/sketch/sketch_jun22b.ino.cpp \
/Users/a.kitta/Library/Arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/Arduino.h \
...(rest) Snippet from /private/var/folders/z1/xkw1yh5n7rz4n8djprp1mdn80000gn/T/arduino-sketch-2A25CBEDDFEB3508AE8DDDA45D126AAA/sketch/sketch_jun22b.ino.cpp.o: \
/private/var/folders/z1/xkw1yh5n7rz4n8djprp1mdn80000gn/T/arduino-sketch-2A25CBEDDFEB3508AE8DDDA45D126AAA/sketch/sketch_jun22b.ino.cpp \
/Users/a.kitta/Library/Arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/Arduino.h \
...(rest) References to the How will the Perhaps the LS can do the |
250e9e5
to
8807a74
Compare
Actually, the LS will only take the The build path is forced by the LS to a randomly generated temp dir, so the build made by the LS will not affect the build made by the IDE in any way. BTW this is very theoretical and very tricky to get right, we should make extensive tests to validate it. |
Please check if the PR fulfills these requirements
before creating one)
UPGRADING.md
has been updated with a migration guide (for breaking changes)What kind of change does this PR introduce?
Adds a hidden flag
--skip-libraries-discovery
, when enabled it does skip the libraries discovery phase and reuses the same libraries used in the latest "full" build. The arduino-language-server uses this feature to dramatically speed up updating and reindexing the sketch. Anyway, this feature is not suitable for direct use because it will produce a wrong build if not used correctly, that's why it's hidden.Does this PR introduce a breaking change, and is titled accordingly?
No