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

efm upgrade fails #765

Open
kaihowl opened this issue Mar 18, 2024 · 8 comments
Open

efm upgrade fails #765

kaihowl opened this issue Mar 18, 2024 · 8 comments
Labels

Comments

@kaihowl
Copy link
Owner

kaihowl commented Mar 18, 2024

works locally.

other test fail locally (but not on CI). --> #767

#764 is blocked on this.

@kaihowl kaihowl added the next label Mar 18, 2024
@kaihowl
Copy link
Owner Author

kaihowl commented Mar 29, 2024

After disabling the local test from #767 locally, nvim/test.sh passes locally on master. With the update-efm branch, the test fails:

Test successful for test-rustanalyzer/src/main.rsRunning lsp-efm.test.vim
lsp_init: 0
wait_for_diagnostic: -1
Expected diagnostics for bash

The lsp log does not contain more detailed information. The failure on CI looks similar and is also lacking more detailed logging.

Next: add more detailed logging from EFM.

@kaihowl
Copy link
Owner Author

kaihowl commented Mar 29, 2024

More logging reveals:

2024/03/29 15:18:12 lint for LanguageID not supported: sh

@kaihowl
Copy link
Owner Author

kaihowl commented Mar 29, 2024

While there is a incorrect indentation in the config file, fixing this did not make the error go away.

@kaihowl
Copy link
Owner Author

kaihowl commented Mar 29, 2024

Due to mattn/efm-langserver#273, this is likely a level deeper. The changes I am trying to integrate do not point to an obvious change in behavior. There was an update of the dependency reviewdog/errorformat, though.

@kaihowl
Copy link
Owner Author

kaihowl commented Mar 29, 2024

But even those integrated changes look mundane so far and independent of our config / usecase.

@kaihowl
Copy link
Owner Author

kaihowl commented Mar 29, 2024

The problem seems to stem from the integration with nvim lsp-config: The integration sends DidChangeConfiguration and that makes the config.yaml optional. On startup this seems to interfere with the existing config.yaml.

Our config also includes an outdated version on how to enable languages.

Removing this did not fix the issue.

The issue can also be observed that only after call :write once on a bash script in nvim (so after an unsuccessful call to format the bash script), the proper diagnostics are displayed. With version 0.0.50 of efm-langserver, the diagnostics would be immediately present.

@kaihowl
Copy link
Owner Author

kaihowl commented Mar 29, 2024

Due to mattn/efm-langserver#273, this is likely a level deeper. The changes I am trying to integrate do not point to an obvious change in behavior. There was an update of the dependency reviewdog/errorformat, though.

There is an obvious change in behavior: The introduction of the lint-after-open flag. While I am not setting this option, it is for some reason set to false for sh. This is counter to the promised default.

@kaihowl
Copy link
Owner Author

kaihowl commented Mar 29, 2024

Problem found: mattn/efm-langserver#277.

We wait until the fix is merged upstream. There are no important fixes in the newer efm versions that we critically depend upon.

@kaihowl kaihowl added blocked and removed next labels Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant