Comments (3)
vscode-dlang is the extension for VSCode, for coc you should use DLS directly.
You can install it with:
dub fetch dls
dub run dls:bootstrap
Then you should be able to configure it in coc's configuration file with a custom language server definition. It should probably look like something like this:
"languageserver": {
"d": {
"command": "/home/burner/.dub/packages/.bin/dls-latest/dls", // this path should be printed with the previous commands
"args": ["--stdio"],
"filetypes": ["d"],
"trace.server": "off",
"rootPatterns": ["dub.json", "dub.sdl"],
"initializationOptions": {
},
"settings": {
}
}
}
Initialization options and settings are listed in README.md.
from dls.
that got me closer but
2019-07-22T14:16:56.282 INFO (pid:22358) [language-client-index] - languageserver.d started with 22402
2019-07-22T14:16:56.567 DEBUG (pid:22358) [events] - Event: CursorHold [ 1 ]
2019-07-22T14:16:56.743 DEBUG (pid:22358) [events] - Event: CursorMoved [ 1, [ 1039, 1 ] ]
2019-07-22T14:16:57.062 DEBUG (pid:22358) [events] - Event: CursorHold [ 1 ]
2019-07-22T14:16:57.431 DEBUG (pid:22358) [events] - Event: CursorMoved [ 1, [ 1038, 1 ] ]
2019-07-22T14:16:57.606 DEBUG (pid:22358) [events] - Event: CursorMoved [ 1, [ 1037, 1 ] ]
2019-07-22T14:16:57.867 INFO (pid:22358) [services] - d state change: starting => stopped
2019-07-22T14:16:57.880 ERROR (pid:22358) [server] - unhandledRejection Promise {
<rejected> { ResponseError: Server not initialized
at handleResponse (/home/burner/DotFiles/nvim/plugged/coc.nvim/build/index.js:38027:48)
at processMessageQueue (/home/burner/DotFiles/nvim/plugged/coc.nvim/build/index.js:37854:17)
at Immediate.setImmediate (/home/burner/DotFiles/nvim/plugged/coc.nvim/build/index.js:37838:13)
at processImmediate (internal/timers.js:443:21) code: -32002, data: null } } { ResponseError: Server not initialized
at handleResponse (/home/burner/DotFiles/nvim/plugged/coc.nvim/build/index.js:38027:48)
at processMessageQueue (/home/burner/DotFiles/nvim/plugged/coc.nvim/build/index.js:37854:17)
at Immediate.setImmediate (/home/burner/DotFiles/nvim/plugged/coc.nvim/build/index.js:37838:13)
at processImmediate (internal/timers.js:443:21) code: -32002, data: null }
it dies with the above message.
from dls.
it seems to work on another project of mine.
from dls.
Related Issues (20)
- Don't Focus Output on Errors HOT 3
- Dscanner configuration is not updated when DLS configuration is changed
- Slow Code Analysis on Startup HOT 5
- D language Project tester SEGFAULT HOT 4
- New release information again and again HOT 2
- Completions not Working for Function Parameters? HOT 3
- DLS dscanner.ini dosen't reflect. HOT 7
- DLS fails to upgrade HOT 7
- Go to definition with UFCS HOT 1
- Error in macOS. HOT 3
- dls server start error? HOT 9
- DLS Fails to compile on Ubuntu 18.04 with dmd-2.088.1 HOT 10
- DLS crashing HOT 2
- extern(C++, "somestring"): completion and go to definition not working HOT 2
- Follow imports using Ctrl+Click
- Support UTF-8 for the LSP protocol HOT 9
- Poor behavior on malformed dub package description HOT 3
- Format Document UnicodeException HOT 2
- Does not working with vanilla Emacs
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 dls.