Comments (10)
You don't have to manually install JDTLS, it is included with the plugin. Is there a reason you're using the latest snapshot of JDTLS?
from coc-java.
My coc-java instalation is using jdtls version 0.29.0.201811280615 while the lastest version is 0.35.0.201903050055. As I did not figured out how to upgrade coc-java's jdtls, I was trying to keep jdtls up-to-date myself.
I don't know if :CocUpdateSync would upgrade jdtls but in my machine this command gives the following messages:
Error detected while processing function coc#rpc#request[2]..35_request:
line 7: connect ETIMEDOUT 192.30.253.117:443
from coc-java.
I don't know if :CocUpdateSync would upgrade jdtls but in my machine
It only upgrade itself.
Error detected while processing function coc#rpc#request[2]..35_request:
line 7: connect ETIMEDOUT 192.30.253.117:443
You have JDTLS_CLIENT_PORT
in your environment variable, which is used for local language server, but it can't connect to server by use that port.
from coc-java.
The problem still exists in 1.2.0 on my neovim. The error log is:
2019-03-20T09:01:55.401 INFO (pid:28853) [services] - registed service "languageserver.MPLS"
2019-03-20T09:01:55.402 INFO (pid:28853) [services] - registed service "languageserver.lua"
2019-03-20T09:01:55.403 INFO (pid:28853) [services] - registed service "languageserver.clangd"
2019-03-20T09:01:55.563 INFO (pid:28853) [services] - registed service "highlight"
2019-03-20T09:01:55.563 INFO (pid:28853) [services] - highlight server state change: stopped => starting
2019-03-20T09:01:55.577 INFO (pid:28853) [plugin] - coc initialized with node: v8.9.0
2019-03-20T09:01:55.628 INFO (pid:28853) [services] - registed service "java"
2019-03-20T09:01:55.734 INFO (pid:28853) [services] - highlight server state change: starting => running
2019-03-20T09:01:55.736 INFO (pid:28853) [services] - service highlight started
2019-03-20T09:01:55.883 ERROR (pid:28853) [language-client-client] - connection error: { Error: read ECONNRESET
at _errnoException (util.js:1024:11)
at Pipe.onread (net.js:615:25) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' } undefined
2019-03-20T09:01:55.885 INFO (pid:28853) [services] - Language Support for Java state change: starting => stopped
2019-03-20T09:01:55.885 ERROR (pid:28853) [language-client-client] - connection error: Error: This socket is closed
at Socket._writeGeneric (net.js:726:18)
at Socket._write (net.js:786:8)
at doWrite (_stream_writable.js:387:12)
at writeOrBuffer (_stream_writable.js:373:5)
at Socket.Writable.write (_stream_writable.js:290:11)
at Socket.write (net.js:704:40)
at StreamMessageWriter.write (/snapshot/coc.nvim/node_modules/vscode-jsonrpc/lib/messageWriter.js:69:27)
at connection.sendRequest.Promise (/snapshot/coc.nvim/node_modules/vscode-jsonrpc/lib/main.js:810:35)
at new Promise (<anonymous>)
at Object.sendRequest (/snapshot/coc.nvim/node_modules/vscode-jsonrpc/lib/main.js:800:26) undefined
2019-03-20T09:01:55.886 ERROR (pid:28853) [language-client-client] - connection error: Error: This socket is closed
at Socket._writeGeneric (net.js:726:18)
at Socket._write (net.js:786:8)
at doWrite (_stream_writable.js:387:12)
at writeOrBuffer (_stream_writable.js:373:5)
at Socket.Writable.write (_stream_writable.js:290:11)
at Socket.write (net.js:704:40)
at StreamMessageWriter.write (/snapshot/coc.nvim/node_modules/vscode-jsonrpc/lib/messageWriter.js:71:27)
at connection.sendRequest.Promise (/snapshot/coc.nvim/node_modules/vscode-jsonrpc/lib/main.js:810:35)
at new Promise (<anonymous>)
at Object.sendRequest (/snapshot/coc.nvim/node_modules/vscode-jsonrpc/lib/main.js:800:26) undefined
2019-03-20T09:01:55.888 ERROR (pid:28853) [server] - uncaughtException TypeError: Cannot convert object to primitive value
at ChildProcess.client_1.BaseLanguageClient.createMessageTransports.serverProcess.on.code (/snapshot/coc.nvim/lib/language-client/index.js:348:39)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
My config is just as #11 (comment) described.
from coc-java.
The error means connection to server is closed, but I don't know why.
Could you try get the output from language server https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel?
Or try to use language server downloaded by coc-java instead of use java.jdt.ls.home
from coc-java.
The error means connection to server is closed, but I don't know why.
Could you try get the output from language server https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel?
Or try to use language server downloaded by coc-java instead of use
java.jdt.ls.home
It's no problem using jdtls downloaded by coc-java. But I found it can't complete third-party libraries. I've no idea whether the problem is jdtls's or coc-java's. I use eclipse
plugin of gradle to manage dependences.
from coc-java.
redhat-developer/vscode-java#10 (comment)
from coc-java.
If I don't understand wrongly, it only supports basic Java gradle applications? My project is just java-application with groovy build script DSL, not Android project.
from coc-java.
I've tested it with sample gradle based project https://github.com/web3j/sample-project-gradle, it works as expected for me, although it takes some time to build the project the first time.
from coc-java.
I think the problem is latest jdt.ls doesn't have support for gradle version <= 2.4, you have to upgrade gradle.
Run :CocList diagnostics
to get the error message.
from coc-java.
Related Issues (20)
- Invalid runtime for JavaSE-20: Runtime at '/usr/local/opt/jdk-20.0.2.jdk/Contents/Home' is not compatible with the 'JavaSE-20' environment. HOT 4
- JDTLS fails to start, missing dynamic libs
- Support for apache ant HOT 1
- [coc.nvim]: UnhandledRejection: TypeError: Cannot read properties of null (reading '0') HOT 8
- when override method, how do i select these checkboxes.
- coc-codeaction-refactor Error on notification "codeAction": TypeError: import_coc26.workspace.asRelativePath is not a function HOT 3
- Auto completion is not working
- java.autobuild.enabled is not supported without documented.
- CPU Spikes, OOM errors, Race Conditions, source file corruption when `organizeImports` is true 10+ second delays
- Gradle wrapper seems not working as went to use a old gradle wrapper. HOT 2
- cannot jump to .proto file if symbols is generated from a protobuf file HOT 2
- Fail to download Coc-java HOT 2
- How to multi-select in "Generate Constructors" popup-menu HOT 3
- Error choosing `show errors` action on workspace import HOT 1
- Embedded JRE and NixOS HOT 3
- [Feature Request] Support java.cleanup.actions HOT 3
- always download jre
- Project picker: duplicate entries in case of multiple projects loaded to workspace
- Publish 1.22.4 to npmjs HOT 2
- [Feature] Populate quickfix with workspace.compile & build errors / results
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-java.