Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Lint on the fly works but does not if disabled. #115

Open
avdudchenko opened this issue Jul 1, 2019 · 0 comments
Open

Lint on the fly works but does not if disabled. #115

avdudchenko opened this issue Jul 1, 2019 · 0 comments

Comments

@avdudchenko
Copy link

Hi, I have strange issue that no one else seems to have documented. I have setup pylinter, with pylint, which works fine if I set it to work with "Lint On Fly", but if I uncheck it and use the short cut (ctrl-alt-shift-I) or set isort imports on save( which I assume just does linting when saving) I get the following errors. I wounder if it has to do with the fact that my files are saved on my second partition (D) while python is set up on C)? No idea. Any help would be greatly appreciated.

Error:
Traceback (most recent call last): File "c:\users\avdud\appdata\local\programs\python\python37\lib\runpy.py", line 193, in run_module_as_main "main", mod_spec) File "c:\users\avdud\appdata\local\programs\python\python37\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "C:\Users\avdud\AppData\Local\Programs\Python\Python37\Scripts\pylama.exe__main.py", line 9, in File "c:\users\avdud\appdata\local\programs\python\python37\lib\site-packages\pylama\main.py", line 79, in shell return process_paths(options, error=error) File "c:\users\avdud\appdata\local\programs\python\python37\lib\site-packages\pylama\main.py", line 84, in process_paths errors = check_path(options, rootdir=CURDIR, candidates=candidates) File "c:\users\avdud\appdata\local\programs\python\python37\lib\site-packages\pylama\main.py", line 53, in check_path errors += run(path=path, code=code, rootdir=rootdir, options=options) File "c:\users\avdud\appdata\local\programs\python\python37\lib\site-packages\pylama\core.py", line 28, in run path = op.relpath(path, rootdir) File "c:\users\avdud\appdata\local\programs\python\python37\lib\ntpath.py", line 562, in relpath path_drive, start_drive)) ValueError: path is on mount 'D:', start on mount 'C:' 

P.S. Reason I am doing this is to reduce amount of processing pylama does on my code. I want to only run it on a given file I am working on now, and only when I tell it to. Instead current behavior seems to do checks on all files open in Atom, which is generally unnecessary for me. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant