Giter Site home page Giter Site logo

vim coc support about dls HOT 3 CLOSED

d-language-server avatar d-language-server commented on May 18, 2024
vim coc support

from dls.

Comments (3)

LaurentTreguier avatar LaurentTreguier commented on May 18, 2024 4

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.

burner avatar burner commented on May 18, 2024

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.

burner avatar burner commented on May 18, 2024

it seems to work on another project of mine.

from dls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.