-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Describe the bug
Hello, I'm trying to add this extension as Kotlin plugin for Eclipse Che using Eclipse Theia supporting VSCode extensions, but I can't have it working because download of extension is failing due this code snippet can't create recursively the path:
vscode-kotlin/src/serverDownloader.ts
Line 61 in bd965d6
await fs.promises.mkdir(this.installDir, { recursive: true }); |
Error I get is:
Activating extension 'Kotlin' failed: ENOENT: no such file or directory,
mkdir '/home/theia/home/theia/fwcd.kotlin'
so context.defaultGlobalStorage
lands to /home/theia/home/theia
, while only /home/theia
exists.
Shoudn't fs.mkdir
with recursive=true create it anyway?
https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_fs_mkdir_path_options_callback
Is there any way to pass the installDir as parameter from package.json
?
To Reproduce
PR open with all details and how to reproduce it:
eclipse-che/che-plugin-registry#611
Expected behavior
ServerDownloader.installDir
is created on Eclipse Che using this VSCode extension
Extension version
0.2.18