-
-
Notifications
You must be signed in to change notification settings - Fork 114
Setting build-path to nested subdirectory #235
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
Hm, I thought we already fixed this and allowed a build directory within the sketch directory. If not, then it's certainly on my list of things that should be made possible :-) |
Any news on that? It still get an error when I define the build directory in the sketch directory |
@luni64 would you mind attaching the full compiler output? The problem looks a bit Windows specific |
Thanks for your quick reply. Here the compiler output: output.txt, and here -in case you need the command line parameters- the tasks.json tasks.zip |
Thanks for the log. arduino-builder/phases/linker.go Lines 58 to 61 in bbf7051
For some reason ctx.BuildPath is still relative in that snippet; I'll take a look tomorrow to understand what is happening 🙂
|
Sure, I'll test it as soon as it is available |
That didn't work, refuses to compile at all now. Here the log:
|
@luni64 there's a space between |
Thanks, that fixed it. Works perfectly now. |
@luni64 if you could retest the same PR, I changed the place where the fix is applied, there should be no regression but it's better to check before confirming that it works fine 🙂 |
Thanks again,
|
Super, thanks. Instead, if you refer to the real boardID (like |
hi, I got the similar problem My arduino IDE need to be closed and open again in order to upload the code to arduino uno. Before this, i had edited the path in preference, does it related? Rel: can't make C:\Users\UserName\AppData\Local\Temp\arduino_cache_239826\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a relative to D:\Arduino\hex |
Yes, they are related; the build folder should be in the same partition of the IDE installation. It is a windows specific problem 😞 We must shorten the commandline and paths because of other win limitations, and we achieve this by making paths relative. I'd suggest to avoid moving the default build folder and use "Sketch/Export Compiled Binary" menu in case you need to save the final hex. |
i see.. so in order to get the arduino back to normal, i need to delete the build path that i created? |
Just remove |
Thank you! I got it back to normal 😊 |
Closing as fixed |
Related to #4 - if the build dir is set to a folder within the working directory (eg
./build
), a recursive folder structure is created (see #4 for an example).Issue #4 notes that an error message was added to guard against this behavior. This error message should be extended to cover any folder contained within the working directory.
The text was updated successfully, but these errors were encountered: