neoclide / coc-java

Java extension for coc.nvim
Eclipse Public License 1.0
449 stars 40 forks source link

unhandledRejection: write EPIPE #192

Closed BALAJI24092001 closed 2 years ago

BALAJI24092001 commented 2 years ago

Result from CocInfo

## versions

vim version: NVIM v0.6.1
node version: v17.3.0
coc.nvim version: 0.0.80-c1a97aab9d
coc.nvim directory: /home/balaji/.local/share/nvim/plugged/coc.nvim
term: xterm-256color
platform: linux

## Log of coc.nvim

2022-01-31T17:06:04.035 INFO (pid:19120) [plugin] - coc.nvim initialized with node: v17.3.0 after 134ms
2022-01-31T17:06:04.132 INFO (pid:19120) [coc-java] - Using java from /usr/lib/jvm/java-17-openjdk, version: 17
2022-01-31T17:06:04.165 INFO (pid:19120) [extension:coc-java] - Starting Java server with: /usr/lib/jvm/java-17-openjdk/bin/java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf-8 -javaagent:/usr/local/share/lombok/lombok.jar -jar /home/balaji/.config/coc/extensions/coc-java-data/server/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar -configuration /home/balaji/.config/coc/extensions/coc-java-data/server/config_linux -data /home/balaji/.config/coc/extensions/coc-java-data/jdt_ws_bcdd8b5a21cd834dc90b1fbf2a510cbe
2022-01-31T17:06:04.168 INFO (pid:19120) [coc-java] - JDT Language Server starting at /home/balaji/Documents
2022-01-31T17:06:04.170 INFO (pid:19120) [services] - registered service "java"
2022-01-31T17:06:04.175 INFO (pid:19120) [language-client-index] - Language server "java" started with 19153
2022-01-31T17:06:04.183 ERROR (pid:19120) [language-client-client] - connection error: Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writeGeneric (node:internal/stream_base_commons:151:3)
    at Socket._writeGeneric (node:net:795:11)
    at Socket._write (node:net:807:8)
    at writeOrBuffer (node:internal/streams/writable:390:12)
    at _write (node:internal/streams/writable:331:10)
    at Socket.Writable.write (node:internal/streams/writable:335:10)
    at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11890:25
    at new Promise (<anonymous>)
    at WritableStreamWrapper.write (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11881:16) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
} undefined
2022-01-31T17:06:04.201 ERROR (pid:19120) [language-client-client] - connection error: Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writeGeneric (node:internal/stream_base_commons:151:3)
    at Socket._writeGeneric (node:net:795:11)
    at Socket._write (node:net:807:8)
    at writeOrBuffer (node:internal/streams/writable:390:12)
    at _write (node:internal/streams/writable:331:10)
    at Socket.Writable.write (node:internal/streams/writable:335:10)
    at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11890:25
    at new Promise (<anonymous>)
    at WritableStreamWrapper.write (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11881:16) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
} {
  jsonrpc: '2.0',
  id: 0,
  method: 'initialize',
  params: {
    processId: 19120,
    rootPath: '/home/balaji/Documents',
    rootUri: 'file:///home/balaji/Documents',
    capabilities: {
      workspace: [Object],
      textDocument: [Object],
      window: [Object],
      general: [Object]
    },
    initializationOptions: {
      bundles: [],
      workspaceFolders: [Array],
      settings: [Object],
      extendedClientCapabilities: [Object],
      triggerFiles: [Array]
    },
    trace: 'off',
    workspaceFolders: [ [Object] ],
    locale: 'en_IN',
    clientInfo: { name: 'coc.nvim', version: '0.0.80' }
  }
}
2022-01-31T17:06:04.203 ERROR (pid:19120) [server] - unhandledRejection  Promise {
  <rejected> Error: write EPIPE
      at afterWriteDispatched (node:internal/stream_base_commons:160:15)
      at writeGeneric (node:internal/stream_base_commons:151:3)
      at Socket._writeGeneric (node:net:795:11)
      at Socket._write (node:net:807:8)
      at writeOrBuffer (node:internal/streams/writable:390:12)
      at _write (node:internal/streams/writable:331:10)
      at Socket.Writable.write (node:internal/streams/writable:335:10)
      at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11890:25
      at new Promise (<anonymous>)
      at WritableStreamWrapper.write (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11881:16) {
    errno: -32,
    code: 'EPIPE',
    syscall: 'write'
  }
} Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writeGeneric (node:internal/stream_base_commons:151:3)
    at Socket._writeGeneric (node:net:795:11)
    at Socket._write (node:net:807:8)
    at writeOrBuffer (node:internal/streams/writable:390:12)
    at _write (node:internal/streams/writable:331:10)
    at Socket.Writable.write (node:internal/streams/writable:335:10)
    at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11890:25
    at new Promise (<anonymous>)
    at WritableStreamWrapper.write (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11881:16) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}
2022-01-31T17:06:04.206 ERROR (pid:19120) [language-client-client] - connection error: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at new NodeError (node:internal/errors:371:5)
    at _write (node:internal/streams/writable:322:11)
    at Socket.Writable.write (node:internal/streams/writable:335:10)
    at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11890:25
    at new Promise (<anonymous>)
    at WritableStreamWrapper.write (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11881:16)
    at StreamMessageWriter2.doWrite (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:12791:31)
    at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:12782:25 {
  code: 'ERR_STREAM_DESTROYED'
} { jsonrpc: '2.0', id: 1, method: 'shutdown', params: undefined }
2022-01-31T17:06:04.207 ERROR (pid:19120) [server] - unhandledRejection  Promise {
  <rejected> Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
      at new NodeError (node:internal/errors:371:5)
      at _write (node:internal/streams/writable:322:11)
      at Socket.Writable.write (node:internal/streams/writable:335:10)
      at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11890:25
      at new Promise (<anonymous>)
      at WritableStreamWrapper.write (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11881:16)
      at StreamMessageWriter2.doWrite (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:12791:31)
      at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:12782:25 {
    code: 'ERR_STREAM_DESTROYED'
  }
} Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at new NodeError (node:internal/errors:371:5)
    at _write (node:internal/streams/writable:322:11)
    at Socket.Writable.write (node:internal/streams/writable:335:10)
    at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11890:25
    at new Promise (<anonymous>)
    at WritableStreamWrapper.write (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:11881:16)
    at StreamMessageWriter2.doWrite (/home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:12791:31)
    at /home/balaji/.local/share/nvim/plugged/coc.nvim/build/index.js:12782:25 {
  code: 'ERR_STREAM_DESTROYED'
}
2022-01-31T17:07:03.263 INFO (pid:19120) [attach] - receive notification: showInfo []

Describe the bug

I'm using coc-java, when i opened a .java file i got the below error messages and the jdt.ls is not running now. I'm also using coc-jedi for python which is working fine.

Reproduce the bug

I created a test.java file and when i open it, there is an error message showing unhandledRejection.

image

image

chemzqm commented 2 years ago

Seems you have enabled debug by using environment variable

BALAJI24092001 commented 2 years ago

Seems you have enabled debug by using environment variable

Yes, problem in coc settings. Resolved thank you.