-
Notifications
You must be signed in to change notification settings - Fork 236
Arduino Extension runs 'verify' on VS-Code startup #1287
Comments
Agreed. The ability to turn off the auto verify on start/load would be such a time saver. I spent ages looking for a way to turn this off. |
This, and also turn off auto verify every time the board config change. It's annoying when i change the options in board configuration like 6 options, and verify each time. |
Hello, Any way to prevent it today ? |
Any news on this - really annoying - undocumented - feature ??? |
I'm not observing this behavior. From my perspective this would be beneficial if it did verify on open as IntelliSense doesn't work until a build (via verify) has run. I totally get that it shouldn't overwrite a previous build though. With CMake there is a difference between generate and a full build, we only need the former for IntelliSense. Seems like something like that would be beneficial here to not invalidate previous build results. |
I've been able to repro this behavior in the latest release. The root cause is that in #1183 we added a feature to enable regeneration of the Intellisense configuration on changes by registering a rebuild whenever settings change: vscode-arduino/src/arduino/arduino.ts Lines 110 to 113 in 6d15746
Since the change event handlers fire on initial settings load, this had the side effect of also running analysis on load: vscode-arduino/src/arduinoActivator.ts Lines 27 to 32 in 6d15746
To recover the previous behavior, we could move |
Thanks for the feedback @iqapps @Daedelos @rev1204 @magouero @BelKed! I've opened PR #1480 that adds two new options to make this configurable. Can you uninstall the Arduino extension, install the appropriate VSIX from this CI build, and let me know if it meets your needs? These new options can be set in settings.json:
Both options default to true so that IntelliSense continues to work out-of-the-box in the default configuration (like robotdad mentioned), but can be set in the user-level settings.json if you want them to be disabled in all your Arduino projects. |
Thank you @benmcmorran. This is what I need, it really helps. VSIX working correctly without problem. |
Thanks, now it works as intended :) |
Great! Thanks all for confirming. I'll get this merged and included in the next release. |
This issue has been fixed in the latest release of this extension, which is available in the VS Code extension marketplace. |
The latest release seem to run Arduino "verify" on its own when I start VS-Code and a Arduino project is loaded automatically.
For my part, it overwrites a the hex file, that maybe other parts of my git branch depends on. So, for my part, its a cause of errors and therefore a time stealer, as the hex file changes compile date and time or simply disappear if the last closed code could not compile.
Please dont make decisions on the community behalf and implement features that are disrupting the workflow and please dont implement new behavior without disclosing information about it in the release notes.
Please remove automatic verify as soon as possible or at least make it workspace/user configurable.
The text was updated successfully, but these errors were encountered: