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

Editor doesn't show errors that are past the end of a line #22473

Open
1 task done
injust opened this issue Dec 28, 2024 · 1 comment
Open
1 task done

Editor doesn't show errors that are past the end of a line #22473

injust opened this issue Dec 28, 2024 · 1 comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@injust
Copy link
Contributor

injust commented Dec 28, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

foo = []
for bar in foo
    pass

foo = []
for bar in foo^
    pass

The overview in the scrollbar shows the errors, even though they do not appear in the editor:

image

Both language servers correctly report the errors:

image

VS Code shows the errors correctly with the same language servers. Note how the errors are reported with the location past the end of the line:

image

Zed Version and System Specs

Zed: v0.166.1 (Zed)
OS: macOS 15.2.0
Memory: 16 GiB
Architecture: x86_64

If applicable, add screenshots or screencasts of the incorrect state / behavior

No response

If applicable, attach your Zed.log file to this issue.

No response

@injust injust added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Dec 28, 2024
@injust
Copy link
Contributor Author

injust commented Dec 29, 2024

@CoderParth I don't have a ~/.local/share/zed/` directory. I'm also using pyright and Ruff as my language servers, not pylsp.

My language servers are correctly configured, as the errors are properly reported. Please see the screenshots I included.

You are seeing different errors because you are using pylsp, and it looks like Pyflakes is reporting the errors at the last character of the line (instead of past the end of the line). The bug here is that Zed is not showing errors in the editor if they occur past the end of the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

1 participant