Giter VIP home page Giter VIP logo

Comments (4)

nwolverson avatar nwolverson commented on July 21, 2024

The language server should send some startup logs via window/logMessage which would help in diagnosing things once you get a bit further...

Check this issue #38 - per that issue maybe try starting with args --stdio --config {} - for some reason the initial integration with vscode meant the server waits to recieve a config message (unless you pass it config on command line), I think this can/should be reworked now

from purescript-language-server.

razcore-rad avatar razcore-rad commented on July 21, 2024

For some reason I missed your answer. I'll try it out and see if it gets me anywhere. Thanks a bunch

from purescript-language-server.

razcore-rad avatar razcore-rad commented on July 21, 2024

So, as far as I can tell there's no way to print/see window/logMessage responses in onivim. I think the --config {} thing might have moved stuff further a tiny bit although it still doesn't work.

I've enabled oni debugging and this is some stuff I'm getting in the developer console, but I don't know how to proceed any further.

I've removed extra debug output that isn't related to the completion server - I hope :)

[COMPLETION] Requesting completions at line 22 and character 12
bundle.js:1 [LANGUAGE] Sending request: textDocument/completion|{"textDocument":{"uri":"file:///home/razvan/Documents/learn/purescript/src/ByExample.purs"},"position":{"line":22,"character":12}}
bundle.js:1 [SnippetCompletionProvider::getCompletions] Starting...
bundle.js:1 [Language Client] Request textDocument/completion - /home/razvan/Documents/learn/purescript/src/ByExample.purs: start
bundle.js:1 Error: Request textDocument/completion failed with message: connect ECONNREFUSED 127.0.0.1:15502
    at new ResponseError (/opt/Oni/resources/app/node_modules/vscode-jsonrpc/lib/messages.js:46)
    at handleResponse (/opt/Oni/resources/app/node_modules/vscode-jsonrpc/lib/main.js:430)
    at processMessageQueue (/opt/Oni/resources/app/node_modules/vscode-jsonrpc/lib/main.js:258)
    at Immediate._onImmediate (/opt/Oni/resources/app/node_modules/vscode-jsonrpc/lib/main.js:242)
    at runCallback (timers.js:789)
    at tryOnImmediate (timers.js:751)
    at processImmediate [as _immediateCallback] (timers.js:722)
bundle.js:1 [REDUX - COMPLETION_STORE][ACTION] GET_COMPLETIONS_RESULT
bundle.js:1 [REDUX - COMPLETION_STORE][ACTION] null

The error message is definitely tied to purescript language server somehow, but I have no idea how and the the completion results... seem null or something.

And some more errors

Error: Request textDocument/definition failed with message: connect ECONNREFUSED 127.0.0.1:15502
    at new ResponseError (/opt/Oni/resources/app/node_modules/vscode-jsonrpc/lib/messages.js:46)
    at handleResponse (/opt/Oni/resources/app/node_modules/vscode-jsonrpc/lib/main.js:430)
    at processMessageQueue (/opt/Oni/resources/app/node_modules/vscode-jsonrpc/lib/main.js:258)
    at Immediate._onImmediate (/opt/Oni/resources/app/node_modules/vscode-jsonrpc/lib/main.js:242)
    at runCallback (timers.js:789)
    at tryOnImmediate (timers.js:751)
    at processImmediate [as _immediateCallback] (timers.js:722)

I suppose it depends on what triggers the thing so perhaps there's more errors out there to be discovered.

from purescript-language-server.

nwolverson avatar nwolverson commented on July 21, 2024

Closing due to lack of activity & linked repo is archived - presumably onivim 2 may not share the same issues

from purescript-language-server.

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.