Checkers not running in venv/pipenv
When working on a project that was configured to use pipenv I found that the external checkers were all not running.
When working on a project that was configured to use pipenv I found that the external checkers were all not running.
On investigating I found that this was because the venv (created by pipenv) did not have the checkers pylint in my case installed as it was targeted as a minimal deliverable environment that was going to be built into windows executables.
Two possible solutions were found:
The second option was selected but the user needs to be aware of a couple of potential "gotchas":
Wing does by default assume that external checkers are going to be present in your env but you can set any command line in the checker configuration from the config area of the Code Warnings tool. In some cases I ended up using an env reference ${CHECKER_PYTHON} and setting the value for that in the Environment in Project Properties. But installing into the env is probably better. I think people typically solve the env "pollution" issue ]by having two difference requirements.txt or Pipfile setups for dev vs. production/shipping and adding things needed during development only to the dev version. It's not unusual that multiple additional packages are needed during development, building, or testing but not in production.
To enter a block of code:
Comments