You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
everything seems to work nicely when working with local files but when I enable flycheck-mode on a file opened through tramp-mode on aws I'm getting this:
Suspicious state from syntax checker python-pycheckers: Flycheck checker python-pycheckers returned 1, but its output contained no errors: Traceback (most recent call last):
File "/home/jussi/.emacs.d/straight/build/flycheck-pycheckers/bin/pycheckers.py", line 1274, in <module>
main()
File "/home/jussi/.emacs.d/straight/build/flycheck-pycheckers/bin/pycheckers.py", line 1227, in main
raise RuntimeError("Can't find source file %s" % source_file_path)
RuntimeError: Can't find source file /ssh:some_server:/path_to_file/flycheck_file.py
Try installing a more recent version of python-pycheckers, and please open a bug report if the issue persists in the latest release. Thanks!
I'm not sure if flycheck-pycheckers is the source of the problem or something else (...the whole config.el is a bit involved...), but is this supposed to work also on files opened over tramp-mode?
Thanks!
The text was updated successfully, but these errors were encountered:
It looks like pycheckers is running locally on your machine, and trying to read files on the remote machine (/ssh:some_server:/path_to_file/flycheck_file.py). This isn't easy to solve, I think -- we could copy the file locally, or try to run pycheckers.py remotely, but either way has problems.
copying files locally and running pycheckers over them will kind-of work for some checkers, but others (e.g. mypy) depend on context from the surrounding project files. Even simple linters can depend on config files in the repository, which we'd also have to copy over somehow.
running pycheckers remotely is difficult -- we don't necessarily have a sane environment in which to run. e.g., we can't depend on mypy, flake8, or whatever to be installed.
I'm happy to take suggestions (or PRs!) to fix this, but I'm not immediately sure what we can do.
Of the two alternatives, it seems like the latter is the most feasible. I could imagine extending the configuration file to contain information on remotely running the checkers. Yes, that would require more set-up, but I can't see how to manage the first alternative.
Hi,
everything seems to work nicely when working with local files but when I enable flycheck-mode on a file opened through tramp-mode on aws I'm getting this:
This is what I have in config.el
I'm not sure if flycheck-pycheckers is the source of the problem or something else (...the whole config.el is a bit involved...), but is this supposed to work also on files opened over tramp-mode?
Thanks!
The text was updated successfully, but these errors were encountered: