fsharp / emacs-fsharp-mode

F# Emacs mode
Apache License 2.0
205 stars 62 forks source link

Update console app parameters #321

Closed amcguier closed 1 year ago

amcguier commented 1 year 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 1 year 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 1 year 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 1 year ago

Glad to help!