-
-
Notifications
You must be signed in to change notification settings - Fork 398
Specifying --build-path inside the sketch directory is not handled correctly #1646
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
Partial workaround is to remove
|
Anyone know offhand what version introduced this? An inadvertent 'brew upgrade' has landed me this busted version. |
I suffer the same issue. Any chance to have this solved? |
Just dug a little bit more into this. Turns out it is not true that the |
Found out some more information:
|
More experimentation done. Two new key observations:
I think we got the message for
cd <path-to-my-sketch>
arduino-cli compile --fqbn arduino:avr:mega --build-path build-mega So I guess arduino-cli gets confused since it thinks the files inside the build dir are part of the sketch. |
Anyways, I think the Issue title and description needs to be updated. A more proper description is probably: Specifying
|
Hi @kalj. Thanks for the additional investigation!
I think it is best to update the issue. |
@per1234 great! I have now updated the title and the description. |
The issue is still there with version 0.29.0 |
Still experiencing the same issue in 0.31.0. The same thing as described above - the first time everything generates fine and then the second time I get: |
Hi @kelmcc, yeah, that's because the change of #2084 is not yet part of a release. But please feel free to test it using the latest nightly build |
check microsoft/vscode-arduino#1630 |
Bug Report
Current behavior
If I compile my project twice with the
--build-path
argument specifying a directory inside the sketch directory, the second time it fails.I run
First time:
But second time:
This confusing message is completely irrelevant since that file was in fact existing since last compilation. However, as part of the recompilation, the whole build directory was wiped but an entry to
compile_commands.json
(and other files) remained in the program state which lead to the program trying to read it.Expected behavior
I expect repeated builds to work with the
--build-path
specifying a directory inside the sketch directory.Environment
arduino-cli version
): arduino-cli Version: 0.20.2 Commit: 1378381 Date: 2021-12-09T13:32:05ZAdditional context
The code I am trying to build: https://github.com/kalj/gep
Note: the original title of this issue was "--build-path results in empty/invalid compile_commands.json"
The text was updated successfully, but these errors were encountered: