Open bzoracler opened 1 year ago
0.14.0
CLion 2022.3.1 build #CL-223.8214.51
0.991
CLion cannot use the plugin, because the following code block can't grab the Python SDK (maybe because CLion doesn't have a concept of a Python SDK?). Simply removing the following block
https://github.com/leinardi/mypy-pycharm/blob/26299d03651b45f8721ea36b8d538be7a020b501/src/main/java/com/leinardi/pycharm/mypy/mpapi/MypyRunner.java#L159-L176
enables compilation and functionality of the plugin for CLion (you have to explicitly give Path to Mypy executable in the settings).
Path to Mypy executable
Download the plugin https://github.com/leinardi/mypy-pycharm/releases/download/0.14.0/mypy-plugin-0.14.0.zip
Install the plugin from disk in CLion, pointing to the .zip file downloaded above
.zip
Explicitly invoke the UI's ▷ (Check Current File)
▷
Check Current File
This pops up repeatedly:
You cannot Configure Python interpreter, because the following option in Settings does not exist in CLion:
Configure Python interpreter
Settings
I built the modified plugin using the following quick steps:
Run tests in mypy-pycharm/src/test
mypy-pycharm/build/libs/mypy-pycharm-0.14.0.jar
Fill in the Path to Mypy executable:
You should now have the mypy plugin working:
mypy
Related issues/PRs:
Step 1: Are you in the right place?
Step 2: Describe your environment
0.14.0
CLion 2022.3.1 build #CL-223.8214.51
0.991
Step 3: Describe the problem:
CLion cannot use the plugin, because the following code block can't grab the Python SDK (maybe because CLion doesn't have a concept of a Python SDK?). Simply removing the following block
https://github.com/leinardi/mypy-pycharm/blob/26299d03651b45f8721ea36b8d538be7a020b501/src/main/java/com/leinardi/pycharm/mypy/mpapi/MypyRunner.java#L159-L176
enables compilation and functionality of the plugin for CLion (you have to explicitly give
Path to Mypy executable
in the settings).Steps to reproduce:
Download the plugin https://github.com/leinardi/mypy-pycharm/releases/download/0.14.0/mypy-plugin-0.14.0.zip
Install the plugin from disk in CLion, pointing to the
.zip
file downloaded aboveExplicitly invoke the UI's
▷
(Check Current File
)Observed Results:
This pops up repeatedly:
You cannot
Configure Python interpreter
, because the following option inSettings
does not exist in CLion:I built the modified plugin using the following quick steps:
Run tests in mypy-pycharm/src/test
. The plugin should be built inmypy-pycharm/build/libs/mypy-pycharm-0.14.0.jar
Fill in the
Path to Mypy executable
:You should now have the
mypy
plugin working: