Skip to content

Comments

Make lsp-restart-server proceed even when buffer-workspace fails#1447

Merged
cxxxr merged 1 commit intolem-project:mainfrom
anlsh:main
Jul 19, 2024
Merged

Make lsp-restart-server proceed even when buffer-workspace fails#1447
cxxxr merged 1 commit intolem-project:mainfrom
anlsh:main

Conversation

@anlsh
Copy link
Contributor

@anlsh anlsh commented Jul 19, 2024

I'm using this locally because my LSP server is refusing to come up, and I'm trying to debug/work through the problem by doing lsp-restart-servers.

However, those fail while deleting the workspace for the current buffer because... lsp initialization always fails, hence the (buffer-workspace) call always fails

Anyways, I think this actually makes sense as a general change: I'm not an expert in lem LSP internals so maybe there's some reason this can't be upstream, but to me lsp-restart-server should start a connection without erroring if there's no existing one

I'm using this locally because my LSP server is refusing to come up, and
I'm trying to debug/work through the problem by doing
`lsp-restart-server`s.

However, those fail while deleting the workspace for the current buffer
because... it always fails: there's no server to *re*start.

Anyways, I *think* this actually makes sense as a general change: I'm
not an expert in lem LSP internals so maybe there's some reason this
can't be upstream, but to me `lsp-restart-server` should start a
connection without erroring if there's no existing one
@anlsh anlsh changed the title Make lsp-restart-server tolerant of failures in buffer-workspace Make lsp-restart-server proceed even when buffer-workspace fails Jul 19, 2024
@cxxxr cxxxr merged commit 06475c8 into lem-project:main Jul 19, 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

Successfully merging this pull request may close these issues.

2 participants