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

LSP doesn't attach after update to 2.5.5 #641

Closed
nimeco opened this issue Nov 21, 2024 · 2 comments
Closed

LSP doesn't attach after update to 2.5.5 #641

nimeco opened this issue Nov 21, 2024 · 2 comments

Comments

@nimeco
Copy link

nimeco commented Nov 21, 2024

Hi hi,
I was using the language support for many versions in Neovim without any issues, but after the update to 2.5.5, the client doesn't attach to buffers anymore, this is the log I got from LSP:

[START][2024-11-21 08:57:54] LSP logging initiated
[ERROR][2024-11-21 08:57:54] .../vim/lsp/rpc.lua:734	"rpc"	"c:\\program files\\nodejs\\node.EXE"	"stderr"	"C:\\Users\\nimeco\\.vscode\\extensions\\thqby.vscode-autohotkey2-lsp-2.5.5\\server\\dist\\server.js:6\r\n${JSON.stringify(N.error,void 0,4)}`):r.error(\"Received response message without id. No further error information provided.\");else{let pe=N.id,ce=$.get(pe);if(Ke(N,ce),ce!==void 0){$.delete(pe);try{if(N.error){let Te=N.error;ce.reject(new ft.ResponseError(Te.code,Te.message,Te.data))}else if(N.result!==void 0)ce.resolve(N.result);else throw new Error(\"Should never happen.\")}catch(Te){Te.message?r.error(`Response handler '${ce.method}' failed with message: ${Te.message}`):r.error(`Response handler '${ce.method}' failed unexpectedly.`)}}}}function te(N){if(Ee())return;let pe,ce;if(N.method===$o.type.method){let Te=N.params.id;C.delete(Te),ct(N);return}else{let Te=v.get(N.method);Te&&(ce=Te.handler,pe=Te.type)}if(ce||b)try{if(ct(N),ce)if(N.params===void 0)pe!==void 0&&pe.numberOfParams!==0&&pe.parameterStructures!==ft.ParameterStructures.byName&&r.error(`Notification ${N.method} defines ${pe.numberOfParams} params but received none.`),ce();else if(Array.isArray(N.params)){let Te=N.params;N.method===Ko.type.method&&Te.length===2&&al.is(Te[0])?ce({token:Te[0],value:Te[1]}):(pe!==void 0&&(pe.parameterStructures===ft.ParameterStructures.byName&&r.error(`Notification ${N.method} defines parameters by name but received parameters by position`),pe.numberOfParams!==N.params.length&&r.error(`Notification ${N.method} defines ${pe.numberOfParams} params but received ${Te.length} arguments`)),ce(...Te))}else pe!==void 0&&pe.parameterStructures===ft.ParameterStructures.byPosition&&r.error(`Notification ${N.method} defines parameters by position but received parameters by name`),ce(N.params);else b&&b(N.method,N.params)}catch(Te){Te.message?r.error(`Notification handler '${N.method}' failed with message: ${Te.message}`):r.error(`Notification handler '${N.method}' failed unexpectedly.`)}else Pe.fire(N)}function qe(N){if(!N){r.error(\"Received empty message.\");return}r.error(`Received message which is neither a response nor a notification message:\r\n                                                                                                                                                                                                                                           ^\r\n\r\ne [Error]: MethodNotFound\r\n    at G (C:\\Users\\nimeco\\.vscode\\extensions\\thqby.vscode-autohotkey2-lsp-2.5.5\\server\\dist\\server.js:6:236)\r\n    at it (C:\\Users\\nimeco\\.vscode\\extensions\\thqby.vscode-autohotkey2-lsp-2.5.5\\server\\dist\\server.js:5:6254)\r\n    at Tt (C:\\Users\\nimeco\\.vscode\\extensions\\thqby.vscode-autohotkey2-lsp-2.5.5\\server\\dist\\server.js:5:6379)\r\n    at Immediate.<anonymous> (C:\\Users\\nimeco\\.vscode\\extensions\\thqby.vscode-autohotkey2-lsp-2.5.5\\server\\dist\\server.js:5:6141)\r\n    at processImmediate (node:internal/timers:464:21) {\r\n  code: -32601,\r\n  data: undefined\r\n}\r\n"

Is there anything else I can do to help find out what the problem might be?
Thanks in advance!

@thqby
Copy link
Owner

thqby commented Nov 25, 2024

Fixed in the next version.

@nimeco
Copy link
Author

nimeco commented Nov 27, 2024

Thank you! ♥

@thqby thqby closed this as completed in e213bda Dec 7, 2024
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

2 participants