book icon indicating copy to clipboard operation
book copied to clipboard

Update riscv-and-xtensa.md

Open ryankopf opened this issue 1 year ago • 5 comments

The old statement was incorrect, because if the installer is not run as administrator, it fails to permanently set the environment variables without telling you. I have also submitted a PR to display a clearer error message in espup.

ryankopf avatar Mar 15 '24 02:03 ryankopf

After a bit more investigation, the change is still warranted, but the reason may actually be related to Windows's undocumented caching of registry values. However the problem is easily reproduceable by deleting your environment variables with Regedit, restarting your PC, and running the espup install command.

ryankopf avatar Mar 16 '24 03:03 ryankopf

After a bit more investigation, the change is still warranted, but the reason may actually be related to Windows's undocumented caching of registry values. However the problem is easily reproduceable by deleting your environment variables with Regedit, restarting your PC, and running the espup install command.

But did you have to use admin privileges when running the espup command to get the environment automatically picked up?

SergioGasquez avatar Mar 21 '24 10:03 SergioGasquez

I am going to have to test again later, but no it seemed like being administrator wasn't a majaor factor, but rather there is some kind of registry caching that doesn't complete unless you completely restart your PC.

ryankopf avatar Mar 21 '24 22:03 ryankopf

Hi! Did you had a chance to look into this?

SergioGasquez avatar May 14 '24 09:05 SergioGasquez

I was unable to determine the final cause, but it seems like there is some kind of undocumented caching of these registry values on Windows (tried on both 10 & 11). So a note about encouraging users to restart, on Windows, if it doesn't work immediately would still be a good idea.

ryankopf avatar May 14 '24 18:05 ryankopf