Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elm-format spawning vim.ui.select in neovim #1298

Open
minizilla opened this issue Nov 19, 2024 · 1 comment
Open

elm-format spawning vim.ui.select in neovim #1298

minizilla opened this issue Nov 19, 2024 · 1 comment

Comments

@minizilla
Copy link

minizilla commented Nov 19, 2024

The elm-format when returning error will spawn vim.ui.select in neovim.

Expected Behavior

I'm expecting the LSP to not spawn vim.ui.select when elm-format returning error. Just ignore it.

Current Behavior

As you can see, when elm-format is returning error, it will spawn vim.ui.select with message Running elm-format failed. Check the file for syntax errors. which annoys me as I need to close them every time it shown which is often when you want save to get a useful feedback from elm compiler.
image

Possible Solution

Steps to Reproduce (for bugs)

  1. Using native LSP in neovim https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#elmls
  2. Just default configuration, nothing fancy
  3. Write a invalid elm code
  4. Save and LSP will spawn vim.ui.select due to elm-format returning error

Context

Your Environment

  • Version used:
  • Editor used: Neovim
  • Environment name and version (e.g. node.js 5.4):
  • Operating System and version: NixOS 24.11
@minizilla
Copy link
Author

Found the code that print the error message.

this.connection.window.showErrorMessage(
"Running elm-format failed. Check the file for syntax errors.",
);

@minizilla minizilla changed the title elm-format spawning vim.select in neovim elm-format spawning vim.ui.select in neovim Nov 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

No branches or pull requests

1 participant