Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load plugin dependencies from ... path Error: ENOTDIR: not a directory #7240

Closed
tom-shan opened this issue Feb 28, 2020 · 0 comments · Fixed by #7242
Closed

Failed to load plugin dependencies from ... path Error: ENOTDIR: not a directory #7240

tom-shan opened this issue Feb 28, 2020 · 0 comments · Fixed by #7242
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help plug-in system issues related to the plug-in system

Comments

@tom-shan
Copy link
Contributor

tom-shan commented Feb 28, 2020

Description

when a plugin file is an symbolic link, theia will failed to load this plugin
ERROR Failed to load plugin dependencies from ... path Error: ENOTDIR: not a directory

Reproduction Steps

OS and Theia version:
OS: centos 7
Theia: c965552
Diagnostics:
https://github.com/eclipse-theia/theia/blob/master/packages/plugin-ext/src/main/node/plugin-deployer-entry-impl.ts#L75 treats the link self as the target, not the file the link refers to.

@akosyakov akosyakov added bug bugs found in the application help wanted issues meant to be picked up, require help plug-in system issues related to the plug-in system labels Feb 28, 2020
tom-shan added a commit to tom-shan/theia that referenced this issue Feb 28, 2020
using statSync instead of lstatSync, so isFile or isDirectory will
check what the symbolic link refer to but not the link itself.
tom-shan added a commit to tom-shan/theia that referenced this issue Feb 28, 2020
using statSync instead of lstatSync, so isFile or isDirectory will
check what the symbolic link refer to but not the link itself.

Signed-off-by: tom-shan <swt0008411@163.com>
azatsarynnyy pushed a commit that referenced this issue Mar 4, 2020
using statSync instead of lstatSync, so isFile or isDirectory will
check what the symbolic link refer to but not the link itself.

Signed-off-by: tom-shan <swt0008411@163.com>
JesterOrNot pushed a commit to JesterOrNot/theia that referenced this issue Mar 12, 2020
using statSync instead of lstatSync, so isFile or isDirectory will
check what the symbolic link refer to but not the link itself.

Signed-off-by: tom-shan <swt0008411@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application help wanted issues meant to be picked up, require help plug-in system issues related to the plug-in system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants