Skip to content

Upload Uses Wrong Directory #2053

Open
Open
@weswitt

Description

@weswitt

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

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

status: waiting for informationMore information must be provided before work can proceedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions