Skip to content

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

@smoothprogrammer

Description

@smoothprogrammer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions