Skip to content

Can't install esp-idf in VS Code due to operation not permitted, rename (VSC-1735) #1612

@asfarley

Description

@asfarley

OS

Windows

Operating System version

Windows 11

Visual Studio Code version

1.102.0

ESP-IDF version

5.4.2

Python version

None

Doctor command output

'ESP-IDF' is not recognized as an internal or external command, operable program or batch file.

Extension

Log file not found at specified location

Description

I'm trying to follow the most standard setup process for the esp-idf extension for VS Code under Windows 11 but it doesn't seem to be working.

The main issue is that I'm getting an error trying to configure the esp-idf extension to use v5.4.2:

EPERM: operation not permitted, rename 'C:\Users\alexa\esp\esp-idf-v5.4.2' -> 'C:\Users\alexa\esp\v5.4.2\esp-idf'

I get the same error regardless of whether I'm running as admin (most of the discussions I found seemed to be resolved by this).

Have I done something wrong? I know there are alternative installation methods, but I'd like to understand why the default install path isn't working for me.

Debug Message

EPERM: operation not permitted, rename 'C:\Users\alexa\esp\esp-idf-v5.4.2' -> 'C:\Users\alexa\esp\v5.4.2\esp-idf'

Other Steps to Reproduce

  • Install VS Code
  • Install esp-idf extension
  • Attempt to configure extension by selecting latest esp-idf version and installing
  • Observe EPERM error
  • Repeat above after relaunching in admin mode

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

bug-reportBug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions