Pylint for python 3.6

workspace

#1

I understand if the workspace is hosted and python version is set to python3, then the first pylint3 on PATH is used (https://github.com/c9/core/blob/master/plugins/c9.ide.language.python/worker/python_linter.js#L56). I’ve configured PATH such that pylint3 runs pylint under python3.6 but for some reason, that doesn’t work per the screenshot below. Any idea what am I missing here? Thank you!

cc @harutyun


#2

How did you configure the PATH variable? there may be a bug in the way environment is initialized for spawning processes from worker.


#3

Through a profile script under /etc/profile.d/.


#4

seems to be caused by https://github.com/c9/core/blob/master/plugins/c9.ide.language.jsonalyzer/worker/jsonalyzer_base_handler.js#L212 prepending /mnt/shared/bin to the path


#5

@harutyun assuming that /mnt/shared/bin/ is on PATH in hosted workspaces, safe to remove from the jsonalyzer base handler?