fsharp / emacs-fsharp-mode

F# Emacs mode
Apache License 2.0
208 stars 61 forks source link

Update console app parameters #321

Closed amcguier closed 2 years ago

amcguier commented 2 years ago

The latest version of fsautocomplete removed the --background-service parameter which makes eglot crash on startup. This swaps to the updated parameter for lsp mode.

--background-service has been deprecated, switch to experimental adaptive lsp service

change the -v parameter to --verbose to align with the documentation

amcguier commented 2 years ago

At least for me (OSX 12.6) the server crashes on boot without the adaptive flag and it runs with that flag provided. I could make that switchable with a variable if that's preferable.

juergenhoetzel commented 2 years ago

At least for me (OSX 12.6) the server crashes on boot without the adaptive flag and it runs with that flag provided. I could make that switchable with a variable if that's preferable.

I confirm the crash on GNU/Linux. I just added a eglot-fsharp-server-args (default: '("--adaptive-lsp-server-enabled")) to to simplify the adjustment in the future.

Thanks a lot for your contribution! :rocket:

amcguier commented 2 years ago

Glad to help!