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

[plugin][java] Cannot read property 'hasOwnProperty' of undefined #4254

Closed
svor opened this issue Feb 5, 2019 · 3 comments
Closed

[plugin][java] Cannot read property 'hasOwnProperty' of undefined #4254

svor opened this issue Feb 5, 2019 · 3 comments
Assignees
Labels
bug bugs found in the application plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility

Comments

@svor
Copy link
Contributor

svor commented Feb 5, 2019

While trying Java VS Code as a plugin I can see next problem when vscode-java extension is initializing:

root ERROR [hosted-plugin: 28894] (node:28894) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hasOwnProperty' of undefined
    at /tmp/vscode-unpacked/redhat.java-0.38.0.vsix/extension/dist/extension.js:1:221949
    at i.workspace.workspaceFolders.i.workspace.workspaceFolders.length.i.workspace.workspaceFolders.forEach.e (/tmp/vscode-unpacked/redhat.java-0.38.0.vsix/extension/dist/extension.js:1:222768)
    at Array.forEach (<anonymous>)
    at Object.l [as excludeProjectSettingsFiles] (/tmp/vscode-unpacked/redhat.java-0.38.0.vsix/extension/dist/extension.js:1:221788)
    at w.onReady.then (/tmp/vscode-unpacked/redhat.java-0.38.0.vsix/extension/dist/extension.js:1:117108)
    at <anonymous>

Steps to reproduce:

  1. Exclude java-extension in Theia project;
  2. Deploy vscode-java extension by id: vscode:extension/redhat.java
@svor svor added bug bugs found in the application plug-in system issues related to the plug-in system labels Feb 5, 2019
@benoitf
Copy link
Contributor

benoitf commented Feb 5, 2019

hello @svor could you say which theia version you're using. master branch ?

@svor
Copy link
Contributor Author

svor commented Feb 5, 2019

@benoitf master branch

@tsmaeder
Copy link
Contributor

tsmaeder commented Feb 5, 2019

Looks a bit like theia is not sending multi-workspace folder initialization requests?

@tsmaeder tsmaeder added the vscode issues related to VSCode compatibility label Feb 6, 2019
@svor svor closed this as completed Feb 11, 2019
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 plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

3 participants