Skip to content

Compiling for ESP32 fails: "Access is denied." #2147

Closed as not planned
Closed as not planned
@mjwright

Description

@mjwright

Describe the problem

Compilation fails with "Access is denied" when Windows path contains a space in the user name (e.g., between firstname and lastname)

cmd /c type nul > "C:\Users\firstname" "lastname\AppData\Local\Temp\arduino\sketches\BCC6D161902E6D97CFF1F1190C34FFBA/file_opts"

See forum discussion https://forum.arduino.cc/t/compiling-for-esp32-fails-access-is-denied

To reproduce

Compile a sketch located in Windows user folder where the username contains a space.

Expected behavior

Compilation should succeed.

Arduino IDE version

2.1.1

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 latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions