Giter VIP home page Giter VIP logo

Comments (10)

nwolverson avatar nwolverson commented on July 21, 2024 1

Logging is currently all via the window/logMessage LS message, there hasn't been a need to do that server side so far; but I'm sure we could log to a file also.

The linked logs on that issue do seem to show the logMessage though, maybe there's nowhere to display that?

from purescript-language-server.

sriharshachilakapati avatar sriharshachilakapati commented on July 21, 2024 1

I think it is safe to close the issue now. I was using the same setup daily with no issues now. Found some others, but now it's all resolved.

I use NVIM 0.3.4 with LanguageClient_neovim version 0.1.142 and purescript-language-server 0.12.7.

My configuration can be found here: https://github.com/sriharshachilakapati/dotfiles/blob/master/.vimrc#L78-L315

from purescript-language-server.

nwolverson avatar nwolverson commented on July 21, 2024

Per slack discussion I'm happy to help work through this, looking at your logs I suspect no config has been received so the server is not started (because otherwise if the config arrives after starting the server, it won't be configured right... and in vscode at least the config is sent 1st thing).

Can you try running with args --stdio --config {} - it looks like I never managed to bring in a arg parser so literally in that order!

from purescript-language-server.

dakom avatar dakom commented on July 21, 2024

oooh, I snuck that into ALE to test real quick - getting some errors (better than nothing!)

"failed to fill whole buffer"

And then it's honing in on the module imports and saying it can't find them

from purescript-language-server.

nwolverson avatar nwolverson commented on July 21, 2024

Can't find imports usually indicates that the project wasn't build at startup time (externs with the correct version are not present in output/ when purs ide server loads dependencies), so that's a correct user-level error if you see it (there's a window/showMessage to prompt the user to build)

from purescript-language-server.

dakom avatar dakom commented on July 21, 2024

d'oh forgot about that... so now I'm getting a "server already running needs to restart" error, BUT after ignoring that and doing some purposefully wrong errors - it's working in ALE!!!

from purescript-language-server.

dakom avatar dakom commented on July 21, 2024

LanguageServer (typo - meant vim LanguageClient for Deoplete) is still not working however - will post an update there and continue another time. Thanks!

from purescript-language-server.

tssm avatar tssm commented on July 21, 2024

Hey @dakom did you set the root marker? Something like

let g:LanguageClient_rootMarkers = { 'purescript': ['psi-package.json'] }

I got it working by adding that and the purescript-vim plug-in (this enables the file detect for *.purs files)

from purescript-language-server.

dakom avatar dakom commented on July 21, 2024

Thanks! Haven't been writing Purescript lately unfortunately, but good to know :)

from purescript-language-server.

tssm avatar tssm commented on July 21, 2024

In that case @nwolverson I think it is OK to close the issue. The only problem I see is that it doesn't find external modules but I guess it is because I am using psc-package instead of Bower

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.