kestra-io / vscode-kestra

VSCode extension to bring Kestra's autocompletion to your IDE
Apache License 2.0
10 stars 0 forks source link

[Install Error] Unable to resolve filesystem path on Windows #4

Open srichelle opened 1 year ago

srichelle commented 1 year ago

Windows 10 VSCode 1.81.1

When I launch the command Download Kestra schema, I have the message "Successfully downloaded schema", but after reload when I open a yaml file, I have an error "Unable to load schema from 'c:\Users\simonRich.vscode\extensions\kestra-io.kestra-0.0.1\flow-schema.json': No content.YAML(768)".

The file does not exists at this path.

I looked at the dev console while running "Download Kestra schema" again and I see this error :

image

srichelle commented 1 year ago

Try this on line 13 of extension.ts:

vscode.workspace.fs.writeFile( Uri.joinPath(Uri.parse(file:///${extensionPath}), 'flow-schema.json'), new TextEncoder().encode(jsonSchema)); It works on Windows and it should work with unix* paths as well.