conda update spyder (or pip, if not using Anaconda)jupyter qtconsole (if console-related)spyder --resetStatic code analysis can be attempted when no file is selected and causes an internal error.
The button should not be active. Clicking it should have no effect
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/leo/.local/lib/python3.6/site-packages/pylint/__main__.py", line 7, in <module>
pylint.run_pylint()
File "/home/leo/.local/lib/python3.6/site-packages/pylint/__init__.py", line 19, in run_pylint
Run(sys.argv[1:])
File "/home/leo/.local/lib/python3.6/site-packages/pylint/lint.py", line 1394, in __init__
linter.check(args)
File "/home/leo/.local/lib/python3.6/site-packages/pylint/lint.py", line 801, in check
self._do_check(files_or_modules)
File "/home/leo/.local/lib/python3.6/site-packages/pylint/lint.py", line 920, in _do_check
for descr in self.expand_files(files_or_modules):
File "/home/leo/.local/lib/python3.6/site-packages/pylint/lint.py", line 959, in expand_files
self.add_message(key, args=message)
File "/home/leo/.local/lib/python3.6/site-packages/pylint/utils.py", line 449, in add_message
self.stats['by_module'][self.current_name][msg_cat] += 1
KeyError: None
IPython >=4.0 : 6.4.0 (OK)
cython >=0.21 : None (NOK)
jedi >=0.9.0 : 0.12.1 (OK)
matplotlib >=2.0.0: 2.2.3 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
numpy >=1.7 : 1.14.5 (OK)
pandas >=0.13.1 : 0.22.0 (OK)
psutil >=0.3 : 5.4.3 (OK)
pycodestyle >=2.3 : 2.3.1 (OK)
pyflakes >=0.6.0 : 1.6.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.7.5 (OK)
qtconsole >=4.2.0 : 4.3.1 (OK)
rope >=0.9.4 : 0.11.0 (OK)
sphinx >=0.6.6 : 1.7.5 (OK)
sympy >=0.7.3 : None (NOK)
Thanks for reporting. We'll fix this in our next version.
@definite-purple By "no selected file", do you mean no files open the Editor? Pretty much every command breaks in that instances rather than disabling itself; I thought our approach was just to ensure there is always an open file in the Editor by opening a new untitledN one if the user closes everything.
No. I'm referring to the static code analysis tab, which has a file select dropdown entry field thing, and I meant that no file path is shown in there.
At least one code file (after step one potentially a new untitled one) is always open int the editor pane when reproducing the error
Thanks for clarifying!
@dalthviz, please take a look at this one.