Permissions bug in VSCode IDE extension when creating new project

The current stable version of the VS Code IDE extension (1.5.1) has a bug when creating a new project.

If the computer name matches the logged in username, it assigns invalid permissions to id_rsa in the created project, then fails with a permission denied error.

The relevant part of the code is _set_key_permissions() in moses/config.py. it feeds os.getlogin() to icacls.exe, but icacls will not do the intended friendly name => SID conversion if the string is ambiguous

Hi @cdahlberg,

First, welcome to our community! Feel free to ask any questions that you might have.

Regarding your post, thank you for reporting this, I’ll send it to our development team and get back to you as soon as possible.

Best Regards,
Hiago.

Hi @cdahlberg,

The development team created a ticket to solve this bug. I will let you know when it is fixed.
Thanks for reporting!

Best Regards,
Hiago.