-
-
Notifications
You must be signed in to change notification settings - Fork 403
Arduino compiler fails if file "includes.cache" exists in the build directory #1246
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
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
The output you provided is very weird, since it seems arduino-builder just stops with an error code, without printing any error message. Looking at the changes to arduino-builder between IDE 1.8.10 (arduino-builder 1.4.7) and IDE 1.8.11 (arduino-builder 1.5.1), I find it includes the following changes to arduino-cli: b3db7a6...d3c1d50 Of those, cc73753 seems to be the only one related to include caching, so that would be a likely suspect to cause this problem. I don't directly see how that commit would cause this, but I would like to confirm that this commit is indeed problematic. @wcieslik could you:
The arduino-builder version I've attached is 1.5.1 (like contained in IDE 1.8.11), but with commit cc73753 reverted. |
Apologies for leaving this so long... Following you suggestion I renamed arduino-builder.exe and copied in the zipped one you sent me. Many thanks for your help with this... |
Thanks for the followup and additional details. So the commit I mentioned above is somehow responsible, but I'm quite unsure how exactly... No time to look deeper right now, but I'll probably need you to do some more testing in the future. I'll get back to you. @cmaglie, any ideas? |
Thanks for looking into this ...
My personal theory (vague as it is ) is along the lines of :
[1] Corp Security policy on my windows laptop, that allows the earlier
version of builder to access the includes.cache
[2] Some form of IE setting or rule (again Corp Policy etc) that 'protects'
anything ending in 'cache' from being modified
or some combination of the above two ...
Cheers...
…On Fri, Sep 18, 2020 at 6:58 PM Matthijs Kooijman ***@***.***> wrote:
Thanks for the followup and additional details. So the commit I mentioned
above is somehow responsible, but I'm quite unsure how exactly... No time
to look deeper right now, but I'll probably need you to do some more
testing in the future. I'll get back to you.
@cmaglie <https://github.com/cmaglie>, any ideas?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/arduino/Arduino/issues/10354#issuecomment-694746635>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP5WOSMCXOBJF4NFTWHTIMTSGMOJTANCNFSM4N3363BQ>
.
|
I am also having this issue... FWIW, it wasn't always the case, but it appears to have started when I started changing code in libraries in my documents\Arduino\libraries... folder. Before that, I never had an issue. Don't know if that's a red herring or not, but... just another data point. I ran arduino_debug, but got no additional information between "Detecting libraries used" and the error message. |
This comment was marked as duplicate.
This comment was marked as duplicate.
I managed to fix this by disabling "Control Flow Guard" in Windows Exploit Protection |
Describe the problem
A project can only be compiled once per Arduino IDE session.
At the first compile,
includes.cache
is created in the build directory as expected and the compilation is successful.All subsequent compilations fail:
If the
includes.cache
file is manually deleted then the compile works again and a newincludes.cache
file is created.Closing Arduino IDE 1.x deletes the entire build directory, which is why closing and re-opening the IDE allows a one time compile.
Using the command line and
arduino_debug.exe
, produces the same result.I note that the
includes.cache
file is not write protected or hidden, etc.Arduino CLI version
Arduino IDE 1.8.13 hourly build 2020/06/03 04:33
Operating system
Windows
Operating system version
Windows 10
Additional context
The fault occurs with any sketch, including "BareMinimum" and "Blink".
I can reproduce the fault using Arduino IDE 1.8.11, 1.8.12, and 1.8.13.
I can not reproduce the fault using Arduino IDE 1.8.10.
Fairly sure this is some sort of permissions/domain or local security policy or even a firewall thing, but can't find anything to indicate what the actual issue is with the IDE and this file.
Which really means "error compiling because I can't overwrite
includes.cache
"Additional reports
Issue checklist
The text was updated successfully, but these errors were encountered: