toitware / ide-tools

Tools for working with Toit in different IDEs
MIT License
3 stars 2 forks source link

Can't deploy on Windows if specification is on different disk #163

Closed floitsch closed 2 years ago

floitsch commented 2 years ago

When vscode? is on C: and the specification is on D: then we seem to have an exception.

From a user:

[specification.yaml] Rel: can't make D:\XXX\Blink.toit relative to C:\Users\XXX\AppData\Local\Programs\Microsoft VS Code
floitsch commented 2 years ago

Could also be the reason that the app appears as "..\..\..\..\..\..\xxx\Blink.toit" in the console.

AlexanderPilhar commented 2 years ago

I can confirm this issue!

[main.yaml] Failed deploying job 'ProjectName' on 'device-name'
[main.yaml] Rel: can't make d:\path-to-project\main.toit relative to C:\Users\user.name\AppData\Local\Programs\Microsoft VS Code
floitsch commented 2 years ago

This should be fixed in 1.20.2.