Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purescript support #527

Closed
dakom opened this issue Jul 19, 2018 · 10 comments
Closed

Purescript support #527

dakom opened this issue Jul 19, 2018 · 10 comments

Comments

@dakom
Copy link

dakom commented Jul 19, 2018

I tried the plugin with the Purescript Language Server but could not get it to work.

All the purescript stuff is installed, and I configued LanguageClient-neovim like:

let g:LanguageClient_serverCommands = {
    \ 'javascript': ['javascript-typescript-stdio'],
    \ 'typescript': ['javascript-typescript-stdio'],
    \ 'purescript': ['purescript-language-server', '--stdio'],
    \ }

But it does not seem to work. The plugin does work with typescript.

Note that running purescript-language-server --stdio on its own in the same folder starts the server and reports:

Content-Length: 113

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"PureScript Language Server started"}}
@autozimu
Copy link
Owner

But it does not seem to work. The plugin does work with typescript.

What does this mean?

What's the log file content?

@dakom
Copy link
Author

dakom commented Jul 20, 2018

sorry - I'm new to vim... where can I find the log file?

@autozimu
Copy link
Owner

@autozimu
Copy link
Owner

let g:LanguageClient_loggingFile = '/tmp/LanguageClient.log'

@dakom
Copy link
Author

dakom commented Jul 20, 2018

LanguageClient.log

@dakom
Copy link
Author

dakom commented Jul 20, 2018

Oh sorry that's without the min-config... one sec

@dakom
Copy link
Author

dakom commented Jul 20, 2018

okay here's the file (replaced the rust example with purescript... also LanguageServer.log is empty):

LanguageClient.log

@dakom
Copy link
Author

dakom commented Jul 20, 2018

Hmm the fix for ALE was passing --stdio --config {} to the startup script. I tried setting the server commands:

'purescript': ['purescript-language-server', '--stdio', '--config', '{}']

But it didn't work. I think I'm also getting [ReadErrors] with :f and this enabled (if I'm reading it correctly).

Also, when I do this I am not getting any LanguageClient.log output

@autozimu
Copy link
Owner

I tested it locally and seems all the messages are passing down to the server, it's that the server always returns null in response body.

Closing at the moment as it seems to be a server side issue. Feel free to reopen if it is found to be this this client issue.

@sriharshachilakapati
Copy link

Sorry for bumping an old thread, but I've got this working. I've made a separate support plugin which is dependent on this one to add PureScript support and some nice utility functions.

Please take a look at https://github.com/sriharshachilakapati/vimmer-ps/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants