Проблема с выполнением кода Pylint в VScode / Linux - PullRequest
0 голосов
/ 27 сентября 2019

Я занимаюсь программированием на Python с помощью VScode на моем ноутбуке для волнистых попутчиков Solus.У меня установлено расширение Python в VScode, а в Linux установлено Python3 + Pylint.

Я написал программу, которая делает миниатюрные изображения из всех картинок в одной папке.Он прекрасно работает, когда я запускаю код из терминала, но когда я запускаю его из VScode, он выполняет код, но не создает миниатюрные изображения, поэтому что-то не так.В противном случае Pylint работает в VScode, но он просто не выполняет команды, которые он должен.Кроме того, программы, которые не используют Pylint, работают как надо на VScode.

Я также попытался запустить код из Thonny, и он работает просто отлично.

Я включил вывод консоли из VScode, когда язапустите код:

[Extension Host] Info Python Extension: 2019-09-27 17:51:34: Shell path 'Python Debug Console' (at t (/home/user/.vscode/extensions/ms-python.python-2019.9.34911/out/client/extension.js:1:6300))
workbench.desktop.main.js:16592 [Extension Host] Info Python Extension: 2019-09-27 17:51:34: Shell path identified as shell 'other' (at t (/home/user/.vscode/extensions/ms-python.python-2019.9.34911/out/client/extension.js:1:6300))
workbench.desktop.main.js:16592 [Extension Host] Info Python Extension: 2019-09-27 17:51:34: Terminal name 'Python Debug Console' identified as shell 'other' (at t (/home/user/.vscode/extensions/ms-python.python-2019.9.34911/out/client/extension.js:1:6300))
workbench.desktop.main.js:16592 [Extension Host] Info Python Extension: 2019-09-27 17:51:34: [object Object]. Shell identified as other (Terminal name is Python Debug Console) (at t (/home/user/.vscode/extensions/ms-python.python-2019.9.34911/out/client/extension.js:1:6300))
workbench.desktop.main.js:16592 [Extension Host] Info Python Extension: 2019-09-27 17:51:34: Shell identified as 'other' (at t (/home/user/.vscode/extensions/ms-python.python-2019.9.34911/out/client/extension.js:1:6300))
workbench.desktop.main.js:16592 [Extension Host] Info Python Extension: 2019-09-27 17:51:34: Using default OS shell (at t (/home/user/.vscode/extensions/ms-python.python-2019.9.34911/out/client/extension.js:1:6300))
2workbench.desktop.main.js:16592 [Extension Host] Info Python Extension: 2019-09-27 17:51:34: Cached data exists getEnvironmentVariables, /home/user/Programming/Python_exercises (at t (/home/user/.vscode/extensions/ms-python.python-2019.9.34911/out/client/extension.js:1:6300))

И это вывод из журнала расширений:

[2019-09-27 17:48:21.091] [exthost] [info] extension host started
[2019-09-27 17:48:21.126] [exthost] [info] ExtensionService#_doActivateExtension vscode.python {"startup":false,"activationEvent":"onLanguage:python"}
[2019-09-27 17:48:21.126] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/vscode/resources/app/extensions/python/dist/pythonMain
[2019-09-27 17:48:21.130] [exthost] [info] ExtensionService#_doActivateExtension ms-python.python {"startup":false,"activationEvent":"onLanguage:python"}
[2019-09-27 17:48:21.131] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/joonas/.vscode/extensions/ms-python.python-2019.9.34911/out/client/extension
[2019-09-27 17:48:21.931] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"activationEvent":"*"}
[2019-09-27 17:48:21.932] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/vscode/resources/app/extensions/debug-auto-launch/dist/extension
[2019-09-27 17:48:21.935] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"activationEvent":"*"}
[2019-09-27 17:48:21.935] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/vscode/resources/app/extensions/emmet/dist/extension
[2019-09-27 17:48:21.990] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"activationEvent":"*"}
[2019-09-27 17:48:21.990] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/vscode/resources/app/extensions/git/dist/main
[2019-09-27 17:48:22.122] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"activationEvent":"*"}
[2019-09-27 17:48:22.122] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/vscode/resources/app/extensions/merge-conflict/dist/extension
[2019-09-27 17:48:22.521] [exthost] [info] eager extensions activated
[2019-09-27 17:51:33.510] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-server-ready {"startup":false,"activationEvent":"onDebugResolve"}
[2019-09-27 17:51:33.510] [exthost] [info] ExtensionService#loadCommonJSModule file:///usr/share/vscode/resources/app/extensions/debug-server-ready/dist/extension
...