weirongxu / coc-kotlin Goto Github PK
View Code? Open in Web Editor NEWIntelligent Kotlin support for coc.nvim
License: MIT License
Intelligent Kotlin support for coc.nvim
License: MIT License
Does the extension language server shut down?
## versions
vim version: NVIM v0.9.0
node version: v16.15.1
coc.nvim version: 0.0.82-b7375d5f 2023-01-30 05:09:03 +0800
coc.nvim directory: /Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim
term: tmux
platform: darwin
## Log of coc.nvim
2023-04-25T17:57:53.284 WARN (pid:81749) [workspace] - workspace.createOutputChannel is deprecated, please use window.createOutputChannel instead.
at Object.<anonymous> (/Users/jeremykahn/.config/coc/extensions/node_modules/coc-tailwindcss/out/index.js:14:7870)
at Generator.next (<anonymous>)
2023-04-25T17:57:53.312 INFO (pid:81749) [extension:coc-git] - Looking for git in: git
2023-04-25T17:57:53.319 INFO (pid:81749) [plugin] - coc.nvim initialized with node: v16.15.1 after 227
2023-04-25T17:57:58.248 INFO (pid:81749) [attach] - receive notification: doAutocmd [ 2, 1 ]
2023-04-25T17:57:58.456 INFO (pid:81749) [core-watchman] - watchman watching project: /Users/jeremykahn/deep6/central-api
2023-04-25T17:57:58.517 INFO (pid:81749) [attach] - receive notification: doAutocmd [ 6 ]
2023-04-25T17:57:58.870 INFO (pid:81749) [language-client-index] - Language server "kotlin" started with 81924
2023-04-25T17:57:59.144 ERROR (pid:81749) [language-client-client] - Server kotlin initialization failed. jh [Error]: Pending response rejected since connection got disposed
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:51:4592)
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:241:6209)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15575)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:248:3561)
at t (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15224)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230)
at Qe (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:25:6504)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230) {
code: -32097,
data: undefined
}
2023-04-25T17:57:59.148 INFO (pid:81749) [language-client-index] - Language server "kotlin" started with 81934
2023-04-25T17:57:59.426 ERROR (pid:81749) [language-client-client] - Server kotlin initialization failed. jh [Error]: Pending response rejected since connection got disposed
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:51:4592)
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:241:6209)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15575)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:248:3561)
at t (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15224)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230)
at Qe (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:25:6504)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230) {
code: -32097,
data: undefined
}
2023-04-25T17:57:59.427 ERROR (pid:81749) [server] - unhandledRejection Promise {
<rejected> jh [Error]: Pending response rejected since connection got disposed
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:51:4592)
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:241:6209)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15575)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:248:3561)
at t (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15224)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230)
at Qe (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:25:6504)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230) {
code: -32097,
data: undefined
},
dispose: [Function (anonymous)]
} jh [Error]: Pending response rejected since connection got disposed
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:51:4592)
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:241:6209)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15575)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:248:3561)
at t (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15224)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230)
at Qe (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:25:6504)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230) {
code: -32097,
data: undefined
}
2023-04-25T17:57:59.430 INFO (pid:81749) [language-client-index] - Language server "kotlin" started with 81948
2023-04-25T17:57:59.703 ERROR (pid:81749) [language-client-client] - Server kotlin initialization failed. jh [Error]: Pending response rejected since connection got disposed
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:51:4592)
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:241:6209)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15575)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:248:3561)
at t (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15224)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230)
at Qe (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:25:6504)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230) {
code: -32097,
data: undefined
}
2023-04-25T17:57:59.706 INFO (pid:81749) [language-client-index] - Language server "kotlin" started with 81957
2023-04-25T17:57:59.978 ERROR (pid:81749) [language-client-client] - Server kotlin initialization failed. jh [Error]: Pending response rejected since connection got disposed
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:51:4592)
at Object.dispose (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:241:6209)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15575)
at Nd.handleConnectionClosed (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:248:3561)
at t (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:244:15224)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230)
at Qe (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:25:6504)
at yT.invoke (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:14460)
at lc.fire (/Users/jeremykahn/dotfiles/vim/.vim/plugged/coc.nvim/build/index.js:24:15230) {
code: -32097,
data: undefined
}
2023-04-25T17:58:02.673 INFO (pid:81749) [attach] - receive notification: showInfo []
Loading any .kt
file yields this error:
[coc.nvim] Kotlin Language Client client: couldn't create connection to server.
0.0.9
This happens on both MacOS and Linux. This was working before (in the same projects) a few weeks ago, so something seems to have changed.
vim version: NVIM v0.5.0-dev+1048-g69103ff0c
node version: v15.8.0
coc.nvim version: 0.0.80-5cd38e9462
coc.nvim directory: /home/axel/.local/share/nvim/plugged/coc.nvim
term: xterm-kitty
platform: linux
2021-02-16T12:07:53.550 INFO (pid:3438935) [services] - registered service "highlight"
2021-02-16T12:07:53.567 INFO (pid:3438935) [language-client-index] - highlight started with 3438946
2021-02-16T12:07:53.583 INFO (pid:3438935) [language-client-index] - Language server "kotlin" started with 3438954
2021-02-16T12:07:54.574 INFO (pid:3438935) [plugin] - coc.nvim 0.0.80-5cd38e9462 initialized with node: v15.8.0 after 1084ms
2021-02-16T12:07:55.469 INFO (pid:3438935) [attach] - receive notification: showInfo []
There is no syntax highlighting. Completion, linting etc is working.
0.0.4
It would be nice to be able to contribute to this project.
Add development instructions so others can contribute and update this project.
vim version: VIM - Vi IMproved 8.2 8022164
node version: v15.9.0
coc.nvim version: 0.0.80-6e5a2aaeb5
coc.nvim directory: /Users/me/.vim/plugged/coc.nvim
term: iTerm.app
platform: darwin
Open a kotlin script file e.g. test.kts
and it shows an error missing script classes from the classpath.
[kotlin MISSING_SCRIPT_STANDARD_TEMPLATE] [E] No script runtime was found in the classpath: class 'kotlin.script.templates.standard.ScriptTemplateWithArgs' not found. Please add kotlin-script-runtime.jar to
0.0.5
Having to go to external sources for documentation is annoying
Ability to view javadocs in vim
n/a
I may just be stupid, however hover-docs aren't showing for me, if this is already a feature please let me know.
Additionally, i havent tested on kotlin classes / functions, only java interopped ones
## versions
vim version: NVIM v0.9.2
node version: v18.17.1
coc.nvim version: 0.0.82-6e4e6eaf 2023-09-08 01:05:35 +0800
coc.nvim directory: /Users/marty/.local/share/nvim/lazy/coc_nvim
term: tmux
platform: darwin
## Log of coc.nvim
2023-10-01T22:56:15.220 WARN (pid:34525) [workspace] - workspace.createOutputChannel is deprecated, please use window.createOutputChannel instead.
at Object.<anonymous> (/Users/marty/.config/coc/extensions/node_modules/coc-tailwindcss/out/index.js:14:7870)
at Generator.next (<anonymous>)
2023-10-01T22:56:15.332 INFO (pid:34525) [plugin] - coc.nvim initialized with node: v18.17.1 after 346
2023-10-01T22:56:15.334 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:16.262 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:17.781 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:18.739 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:19.092 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:19.801 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:20.811 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:23.497 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:23.933 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:24.312 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:25.069 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:25.406 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:25.635 INFO (pid:34525) [extension:coc-java] - Using java from /Users/marty/.sdkman/candidates/java/18.0.1.1-open, version: 18
2023-10-01T22:56:30.525 ERROR (pid:34525) [timing] - activate coc-kotlin timeout after 5000ms
2023-10-01T22:56:34.871 INFO (pid:34525) [extension:coc-java] - Starting Java server with: /Users/marty/.sdkman/candidates/java/18.0.1.1-open/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 -noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication -jar /Users/marty/.config/coc/extensions/coc-java-data/server/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar -configuration /Users/marty/.config/coc/extensions/coc-java-data/server/config_mac -data /Users/marty/.config/coc/extensions/coc-java-data/jdt_ws_6aa74ac45ea8e5aeaace47c5dab0d128
2023-10-01T22:56:34.875 INFO (pid:34525) [extension:coc-java] - JDT Language Server starting at /usr/local/src/git/github.com/Kotlin/kotlin-wasm-examples/main/compose-imageviewer
2023-10-01T22:56:34.879 INFO (pid:34525) [language-client-index] - Language server "java" started with 34637
2023-10-01T22:56:35.157 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:41.198 INFO (pid:34525) [attach] - receive notification: highlight []
2023-10-01T22:56:42.345 INFO (pid:34525) [model-download] - Download completed: URL {
href: 'https://github.com/fwcd/kotlin-language-server/releases/download/1.3.5/server.zip',
origin: 'https://github.com',
protocol: 'https:',
username: '',
password: '',
host: 'github.com',
hostname: 'github.com',
port: '',
pathname: '/fwcd/kotlin-language-server/releases/download/1.3.5/server.zip',
search: '',
searchParams: URLSearchParams {},
hash: ''
}
2023-10-01T22:56:42.352 INFO (pid:34525) [model-download] - Downloaded https://github.com/fwcd/kotlin-language-server/releases/download/1.3.5/server.zip => /Users/marty/.config/coc/extensions/coc-kotlin-data/langServerInstall
2023-10-01T22:56:42.466 ERROR (pid:34525) [server] - unhandledRejection Promise {
<rejected> Error: Launching server "kotlin" using command /Users/marty/.config/coc/extensions/coc-kotlin-data/langServerInstall/server/bin/kotlin-language-server failed.
at /Users/marty/.local/share/nvim/lazy/coc_nvim/build/index.js:244:6399
at async Md.createConnection (/Users/marty/.local/share/nvim/lazy/coc_nvim/build/index.js:240:15149)
at async Md._start (/Users/marty/.local/share/nvim/lazy/coc_nvim/build/index.js:240:7683),
dispose: [Function (anonymous)]
} Error: Launching server "kotlin" using command /Users/marty/.config/coc/extensions/coc-kotlin-data/langServerInstall/server/bin/kotlin-language-server failed.
at /Users/marty/.local/share/nvim/lazy/coc_nvim/build/index.js:244:6399
at async Md.createConnection (/Users/marty/.local/share/nvim/lazy/coc_nvim/build/index.js:240:15149)
at async Md._start (/Users/marty/.local/share/nvim/lazy/coc_nvim/build/index.js:240:7683)
After confirming the prompt to auto-download the Kotlin language server, I get this:
[coc.nvim]: UnhandledRejection: Launching server "kotlin" using command /Users/marty/.config/coc/extensions/coc-kotlin-data/langServerInstall/server/bin/kotlin-language-server failed.
Error: Launching server "kotlin" using command /Users/marty/.config/coc/extensions/coc-kotlin-data/langServerInstall/server/bin/kotlin-language-server failed.
at /Users/marty/.local/share/nvim/lazy/coc_nvim/build/index.js:244:6399
at async Md.createConnection (/Users/marty/.local/share/nvim/lazy/coc_nvim/build/index.js:240:15149)
at async Md._start (/Users/marty/.local/share/nvim/lazy/coc_nvim/build/index.js:240:7683)
Trying to run the language server manually results in:
> /Users/marty/.config/coc/extensions/coc-kotlin-data/langServerInstall/server/bin/kotlin-language-server [main]
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Oct 01, 2023 11:00:13 PM org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint lambda$recursiveFindRpcMethods$2
SEVERE: A delegate object is null, jsonrpc methods of 'public default org.eclipse.lsp4j.services.NotebookDocumentService org.eclipse.lsp4j.services.LanguageServer.getNotebookDocumentService()' are ignored
Content-Length: 121
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"main Adding script definitions [null]"}}Content-Length: 126
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"main Kotlin Language Server: Version 1.3.5"}}Content-Length: 295
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":1,"message":"main A delegate object is null, jsonrpc methods of \u0027public default org.eclipse.lsp4j.services.NotebookDocumentService org.eclipse.lsp4j.services.LanguageServer.getNotebookDocumentService()\u0027 are ignored"}}Content-Length: 108
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"main Connected to client"}}
But despite the errors and warnings, it's running.
0.1.0
fwcd/kotlin-language-server#286 gives the hint that this extension is downloading the latest package which might be out of date.
## versions
vim version: NVIM v0.9.1
node version: v16.15.0
coc.nvim version: 0.0.82-ae4ecfa5 2023-09-03 14:14:50 +0800
coc.nvim directory: /Users/rgupta2/.vim/plugged/coc.nvim
term: tmux
platform: darwin
## Log of coc.nvim
2023-10-29T10:36:48.541 INFO (pid:4311) [plugin] - coc.nvim initialized with node: v16.15.0 after 89
2023-10-29T10:36:52.834 INFO (pid:4311) [core-watchman] - watchman watching project: /Users/rgupta2/Downloads/workspace/marketplace-demand-service
2023-10-29T10:36:53.138 INFO (pid:4311) [language-client-index] - Language server "kotlin" started with 4405
2023-10-29T10:36:57.718 ERROR (pid:4311) [timing] - activate coc-kotlin timeout after 5000ms
2023-10-29T10:37:06.221 INFO (pid:4311) [attach] - Request action: fillDiagnostics [ 3 ]
2023-10-29T10:37:53.609 INFO (pid:4311) [attach] - receive notification: runCommand [ 'workspace.showOutput' ]
2023-10-29T10:38:34.315 INFO (pid:4311) [attach] - receive notification: showInfo []
coc-kotlin fails to start & I don't see any auto completions even after waiting for 10-15 mins.
Here is what :CocCommand workspace.showOutput
says
[10/29/2023, 10:36:52 AM 730] [debug]: Looking for Java in JAVA_HOME (environment variable): /Users/rgupta2/.jenv/versions/11.0
[10/29/2023, 10:36:52 AM 739] [info]: Activating Kotlin Language Server...
[10/29/2023, 10:36:52 AM 743] [info]: Querying GitHub API for new Kotlin Language Server version...
[10/29/2023, 10:36:53 AM 120] [info]: Connecting via Stdio.
[10/29/2023, 10:36:53 AM 129] [info]: Creating client at /Users/rgupta2/.config/coc/extensions/coc-kotlin-data/langServerInstall/server/bin/kotlin-language-server
Try using kotlin-language-server directly works
I tried removing coc-kotlin & since it uses kotlin-language-server it works for me!
I cloned & built kotlin-language-server from it repository & added the following in my :CocConfig
"languageserver": {
"kotlin": {
"command": "~/Downloads/workspace/dotfiles/kotlin-language-server/server/build/install/server/bin/kotlin-language-server",
"filetypes": ["kotlin"],
"trace.server": "verbose"
}
}
The same worked, but I had to wait for 3-5 mins before it starts & have to keep an eye on my workspace.showOutput
to know when it's ready to use, so not very convenient. I think coc-kotlin uses this language server under the hood & provide helpful info like the state of plugin & building it etc.
Would you be able to help me debug what the issue might be?
Autocomplete take a long time, and doesnt show automatically
0.0.7
This problem does not exists on other coc based language plugin
Launching server "kotlin" failed
0.0.6
If I config the language server by using coc langaugeserver config like
"languageserver": {
"kotlin": {
"command": "/home/wexder/.config/coc/extensions/coc-kotlin-data/langServerInstall/server/bin/kotlin-language-server",
"filetypes": ["kotlin"]
}
}
it works.
A clear and concise description of the bug and how to reproduce it.
I have openjdk-8-jdk installed and JAVA_HOME set, but coc-kotlin cannot detect it and keep giving warnings:
JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64/jre
Which version of the extension you are running.
More information or screenshots.
# versions
vim version: VIM - Vi IMproved 8.2 8022434
node version: v14.17.0
coc.nvim version: 0.0.80-171ff2bc99
coc.nvim directory: /home/ameer-taweel/.vim/plugged/coc.nvim
term: dumb
platform: linux
## Log of coc.nvim
2021-07-08T13:04:59.209 INFO (pid:355415) [services] - registered service "diagnostic-languageserver"
2021-07-08T13:04:59.286 INFO (pid:355415) [coc-git] - Looking for git in: git
2021-07-08T13:04:59.307 INFO (pid:355415) [services] - registered service "highlight"
2021-07-08T13:04:59.363 INFO (pid:355415) [language-client-index] - highlight started with 355452
2021-07-08T13:04:59.394 INFO (pid:355415) [language-client-index] - Language server "kotlin" started with 355463
2021-07-08T13:05:00.549 INFO (pid:355415) [services] - registered service "stylelintplus"
2021-07-08T13:05:00.570 INFO (pid:355415) [language-client-index] - cSpell started with 355529
2021-07-08T13:05:00.577 INFO (pid:355415) [plugin] - coc.nvim 0.0.80-171ff2bc99 initialized with node: v14.17.0 after 1470ms
2021-07-08T13:05:01.717 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:01.819 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:01.872 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:01.976 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:02.097 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:02.203 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:02.914 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.018 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.074 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.177 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.228 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.332 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.363 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.468 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.497 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.605 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.630 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.735 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:03.864 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:03.971 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.017 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.124 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.170 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.275 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.325 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.430 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.464 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.569 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.606 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.712 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.763 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:04.869 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:04.899 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.005 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.047 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.151 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.187 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.291 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.331 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.435 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.481 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.584 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.612 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.717 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:05.809 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:05.913 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:06.055 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.160 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:06.555 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.588 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.618 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.648 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:06.754 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:08.472 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:08.575 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:09.670 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:09.810 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:09.924 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:10.273 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:10.376 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:10.533 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:10.636 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:10.699 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:10.802 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:10.845 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:10.948 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:11.239 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:11.949 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:12.164 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:12.586 INFO (pid:355415) [completion-complete] - Results from: snippets,coc-browser,around
2021-07-08T13:05:13.866 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:14.243 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:14.429 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:14.623 INFO (pid:355415) [completion-complete] - Results from: coc-browser,around,kotlin
2021-07-08T13:05:15.791 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.253 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.254 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.303 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.407 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:16.439 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.543 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:16.594 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.701 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:16.787 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:16.898 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:16.937 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:17.049 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:17.069 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:17.179 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:17.602 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:17.709 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:18.103 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.146 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.178 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.211 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.247 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.279 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.312 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:18.423 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:19.384 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:19.499 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:19.520 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:19.610 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:19.732 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:05:31.308 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:05:31.507 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:07.301 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:07.411 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:07.462 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:07.565 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:07.646 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:07.757 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:08.147 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.172 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.209 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.254 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.288 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.322 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.356 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.374 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.406 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.438 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.473 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.505 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.541 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.559 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.588 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.622 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.655 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:08.768 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:10.505 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:10.612 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:10.655 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:10.767 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:10.786 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:10.911 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:10.920 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.047 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.088 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.200 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.239 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.350 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.369 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.479 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.498 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.609 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:11.842 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:11.954 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:12.005 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:12.118 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:12.897 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.003 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.022 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.147 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.189 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.312 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.322 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.434 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.476 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.585 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:13.807 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:13.918 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:07:14.023 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:07:14.135 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:08:28.376 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:08:28.482 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:08:28.845 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:08:28.950 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:08:29.026 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:08:29.137 INFO (pid:355415) [attach] - receive notification: highlight []
2021-07-08T13:08:29.580 INFO (pid:355415) [attach] - receive notification: openList [ 'diagnostics' ]
2021-07-08T13:08:29.617 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 2 ]
2021-07-08T13:08:29.623 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:10:08.699 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 2 ]
2021-07-08T13:10:08.700 INFO (pid:355415) [attach] - receive notification: doAutocmd [ 1 ]
2021-07-08T13:10:10.936 INFO (pid:355415) [attach] - receive notification: showInfo []
I want to solve competitive programming tasks with Kotlin. I don't want to create multi-file projects, just one file containing all the code. I have a competitive-programming-task-Kotlin template that I used with Intellij, and it used to work. When I open this template in Vim, I get the error: "ERROR Unresolved Reference: readLine." I will provide the code for the template in the "Additional Context" section below.
v0.0.7
fun main(){
}
// Input
private fun readInt() = readLine()!!.toInt()
private fun readInts() = readLine()!!.split(" ").map { it.toInt() }
private fun readLong() = readLine()!!.toLong()
private fun readLongs() = readLine()!!.split(" ").map { it.toLong() }
private fun readFloat() = readLine()!!.toFloat()
private fun readDouble() = readLine()!!.toDouble()
private fun readString() = readLine()!!
private fun readStrings() = readLine()!!.split(" ")
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.