Comments (6)
I just came here to mention that I'm having a similar issue.
Given that I opened a graphql file instead of a TSX one when opening the project lsp mode suggested Graphql-lsp server (which is cool for the gql file), but whenever I open a tsx, it doesn't change the selected client, and I can't select it using +lsp/switch-client
in doomemacs.
from lsp-mode.
Try to configuring the variable lsp-enabled-clients.
from lsp-mode.
Currently, that variable is empty, however, after manually installing the corresponding clients it apparently worked!
from lsp-mode.
Experiencing the exact same problem as OP here. vue-semantic-server
is taking precedence over any other server when opening a file, even non-js-related ones. I noticed it only happens in workspaces where the vue server was used at least once, workspaces where I've not used it work normally. Working in multiple php+vue+typescript projects has made this a very annoying issue.
I'm using emacs-lsp
in Doom Emacs on macOS although I was able to replicate the problem in a new emacs installation.
I can switch to the correct server (and/or client, not sure about the correct term here) using +lsp/switch-client
in Doom to continue working so it seems that the problem is on file opening only.
from lsp-mode.
I'm having this issue in spacemacs.
Modifying lsp-enabled-clients
is a silly solution. Whitelist all servers in order to blacklist one? I want to use vue-semantic-server
in vue files. I must modify this variable every time I'm editing a vue app? What about when I'm working on a vue and react app simultaneously?
Is there no other way to manually switch an LSP client? I've been paging through google for about an hour and turned up nothing.
from lsp-mode.
M-x add-dir-local-variable with enabled/disabled clients should work.
from lsp-mode.
Related Issues (20)
- Zig's ZLS download URLs have changed HOT 1
- Volar/Vue: how to get autocompletions in javascript, HTML & CSS in vue files? HOT 2
- Support `ruff server` HOT 2
- Ctrl-x 1 not working anymore in org mode?
- Detect if LSP_USE_PLIST is not set before loading lsp-mode (server starting...)
- Update clangd to 18
- lsp--path-to-uri: Symbol’s function definition is void: -compose HOT 3
- Angular-ls returns no result HOT 1
- Unable to calculate the languageId for buffer ‘Foo.qml’. Take a look at ‘lsp-language-id-configuration’. The ‘major-mode’ is qml-mode
- headerline not show symbols HOT 1
- AUCTeX's LaTeX-mode is not recognized as a Latex mode
- Texlab lsp server exits on unicode letter 1F582
- `(wrong-type-argument hash-table-p nil)` when renaming with Haskell Language Server HOT 1
- Allow other snippet/template expansion libraries
- Consider adding `lsp-ai` support for `lsp-mode`
- LSP pyright false positive
- lsp can't find node when installed by nvm and running in GUI Emacs
- Crash when using doom emacs with lsp-mode in terraform-client
- Invalid delete range sent to company-mode exit-function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp-mode.