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

Failure to start 0.59 in theia 1.0.0/dev - onDidCreateFiles is not a function in workspace #1363

Closed
codingchili opened this issue Apr 3, 2020 · 1 comment · Fixed by #1364
Labels

Comments

@codingchili
Copy link

Failure to load vscode-java plugin from https://github.com/redhat-developer/vscode-java after installation, see logs.

Environment
Steps To Reproduce
  1. Install the java extension from RedHat using plugin manager.
  2. Restart Theia and check the logs or get an alert in the workspace.
root INFO [hosted-plugin: 15127] PLUGIN_HOST(15127): PluginManagerExtImpl/loadPlugin(/home/robdu/.theia/extensions/redhat.java-0.59.0/extension/dist/extension)
root INFO [hosted-plugin: 15127] { message:
   'Starting Java server with: /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf8 -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -noverify -jar /home/robdu/.theia/extensions/redhat.java-0.59.0/extension/server/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar -configuration /home/robdu/.theia/globalStorage/redhat.java/0.59.0/config_ss_linux -data /home/robdu/.theia/workspace-storage/be4182b2fd4f02a250118b10cb0727ab/redhat.java/ss_ws',
  level: 'info',
  timestamp: '2020-04-03 10:49:17.326' }
root INFO [hosted-plugin: 15127] { message:
   'Starting Java server with: /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf8 -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -noverify -jar /home/robdu/.theia/extensions/redhat.java-0.59.0/extension/server/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar -configuration /home/robdu/.theia/globalStorage/redhat.java/0.59.0/config_linux -data /home/robdu/.theia/workspace-storage/be4182b2fd4f02a250118b10cb0727ab/redhat.java/jdt_ws',
  level: 'info',
  timestamp: '2020-04-03 10:49:17.341' }
root ERROR [hosted-plugin: 15127] Error on activation of java TypeError: s.workspace.onDidCreateFiles is not a function
    at Object.t.registerFileEventHandlers (/home/robdu/.theia/extensions/redhat.java-0.59.0/extension/dist/extension.js:7:96930)
    at Promise (/home/robdu/.theia/extensions/redhat.java-0.59.0/extension/dist/extension.js:1:196948)
    at new Promise (<anonymous>)
    at /home/robdu/.theia/extensions/redhat.java-0.59.0/extension/dist/extension.js:1:188258
    at Generator.next (<anonymous>)
    at o (/home/robdu/.theia/extensions/redhat.java-0.59.0/extension/dist/extension.js:1:180810)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Current Result

The plugin fails to activate.

Expected Result

The plugin activates without any errors and code completion for Java works.

Additional Informations
@fbricon
Copy link
Collaborator

fbricon commented Apr 3, 2020

https://open-vsx.org/extension/redhat/java has been updated with 0.59.1

@fbricon fbricon added the bug label Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants