orbitalquark / textadept-lsp

Language server protocol client module for Textadept.
MIT License
28 stars 9 forks source link

Lua LSP server doesn't start #14

Closed paaguti closed 1 year ago

paaguti commented 1 year ago

I installed the LSP module in /usr/share/textadept/modules and the Lua LSP stopped working. As far as I can see, it boils down to line 10 in init.lua

io.open('server.log', 'w'):close() -- clear previous log

This will only work when the log is in a directory the user can write. This may not always be the case.

orbitalquark commented 1 year ago

Thanks for the report. Fixed via https://github.com/orbitalquark/textadept-lsp/commit/e765d5b5f0f70b4bc67518898d437e67dfef5aa5