-
Notifications
You must be signed in to change notification settings - Fork 138
flycheck doesn't work when editing thru symlink #119
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
Comments
Thank you ! I've pushed a fix |
This bug may have returned. If I create a minimal environment in a fresh image, with just emacs, lsp-mode, lsp-ui, lsp-pyright, and flycheck installed, if I access a .py file from its real path, flycheck errors are shown as highlighted in the buffer. If I access it through a symlinked directory, I get the behaviour above.
Minimal .emacs:
|
lsp-ui-flycheck has problems when editing a file through a symlink.
In particular, syntax errors within the buffer are not highlighted by flycheck; furthermore functions such as
flycheck-list-errors
,flycheck-next-error
, etc. will not find any errors.However, calling
lsp-ui-flycheck-list
works fine, and will correctly find errors/warnings and list them in the sidebar.I believe the issue is in the function
lsp-ui-flycheck--start
withinlsp-ui-flycheck.el
, around line 169:replacing
buffer-file-name
with(file-truename buffer-filename)
fixed the issue in my case.The text was updated successfully, but these errors were encountered: