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

Some diagnotics missing (sphinx-needs) #925

Closed
AlexanderLanin opened this issue Nov 16, 2024 · 1 comment · Fixed by #926
Closed

Some diagnotics missing (sphinx-needs) #925

AlexanderLanin opened this issue Nov 16, 2024 · 1 comment · Fixed by #926
Labels
bug Something isn't working lsp Issues that relate to the language server
Milestone

Comments

@AlexanderLanin
Copy link
Contributor

AlexanderLanin commented Nov 16, 2024

Expected behavior

I'd like to have sphinx-needs warnings available in esbonio 1.0

Actual behavior

Warnings from sphinx-needs are NOT available in esbonio 1.0

Analysis

sphinx-needs writes diagnostics data upon build-finished event.
sphinx_agent collects diagnostics data upon build-finished event.

Unfortunately they do it in incorrect order. sphinx_agent syncs diagnostics and THEN sphinx-needs generated diagnostics.

Links:

I did not look into:

  • Why it worked before
  • Why it works for some people (unconfirmed)

Potential fix by adding a priority allows to push collecting diagnostics to the back:
app.connect("build-finished", sync_diagnostics, priority=999)

@AlexanderLanin AlexanderLanin added bug Something isn't working triage Issues needing triage labels Nov 16, 2024
@alcarney alcarney added lsp Issues that relate to the language server and removed triage Issues needing triage labels Nov 16, 2024
@alcarney alcarney added this to Esbonio Nov 16, 2024
@github-project-automation github-project-automation bot moved this to Todo in Esbonio Nov 16, 2024
@alcarney alcarney added this to the 1.0 milestone Nov 16, 2024
@alcarney
Copy link
Member

Potential fix by adding a priority allows to push collecting diagnostics to the back:

Yes, it certainly makes sense to have the sphinx_agent do its thing last - feel free to open a PR tweaking the priority if you'd like.

If not, I can do it when I switch back to working on esbonio in the next few weeks (currently focusing on updating esbonio to pygls v2.0a2, which requires I do some work in https://github.com/swyddfa/lsp-devtools first)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lsp Issues that relate to the language server
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants