-
-
Notifications
You must be signed in to change notification settings - Fork 402
Upload Uses Wrong Directory #2053
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
ok, found the solution. if i add "." at the end of the command it works. so it seems that the tool does in fact work correctly, but the documentation and the help text for the tool should be updated to reflect this. |
Hi @weswitt. Thanks for your report.
It is the MD5 hash of the sketch path: https://github.com/arduino/arduino-cli/blob/0.29.0/arduino/sketch/sketch.go#L313-L323
The sketch path argument is optional. If you do not provide it, the current working directory is used. So it should not be necessary to add I was not able to reproduce this fault so I'll need some more information from you in order to proceed with the investigation: First of all, please download the latest nightly build and then comment here to say whether the fault still occurs. Make sure you run an There has been a significant amount of development work on Arduino CLI since the time of the 0.29.0 version you are using, including some changes to relevant code. The nightly build download links are listed here: https://arduino.github.io/arduino-cli/dev/installation/#nightly-builds |
yes i already tried with the nightly build |
Does the fault still occur after you use the nightly build to run an |
Maybe we could hint in the error message to run a |
tried this and it also does not work |
@weswitt please post the output you get from running the Is there anything special about this path (e.g., network share, junction, symlink, ect.)? |
this is on windows so there is no pwd command. and no there is nothing special about this dir. |
Please, work with me here. Getting information from you is going really slowly. Which shell are you using? Windows PowerShell does have a If you are using
Does the problem also happen if you create a new sketch in a different location and try the same sequence of |
i'm using cmd inside of a terminal host. cd: d:\dev\src\homeauto\weather\waterflow\test32 i can try to make a new sketch later today, but regardless there seems to be a bug |
i just tried your test of making a simple sketch in a new dir. same failure |
i moved the dir with the sketch to the root of the drive and it works. so clearly arduino-cli has an issue with the dir name or something else about the location |
@weswitt we cannot figure out the problem nor we are able to reproduce it, we need more info. Could you please run the compile and upload with the
|
Describe the problem
After compiling attempting an upload fails with "Error during Upload: Compiled sketch not found in C:\Users\wesw\AppData\Local\Temp\arduino-sketch-A1E8FD2B951BC0178B8D63295C7E129C".
This fails because there is no directory named arduino-sketch-A1E8FD2B951BC0178B8D63295C7E129C. The compiled sketch is in arduino-sketch-BD62D8498EB4D4F7E3207A44BF823043.
Where does arduino-cli get the directory name from?
To reproduce
arduino-cli.exe upload --verbose --fqbn esp8266:esp8266:d1_mini -p COM4
Expected behavior
The sketch is uploaded.
Arduino CLI version
0.29.0 Commit: 76251df Date: 2022-11-17T09:21:37Z
Operating system
Windows
Operating system version
11
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: