xmake-idea
xmake-idea copied to clipboard
Installing xMake breaks Python projects in Pycharm
Note: If you use the fuzzy expressions such as 'can't use/no effect/problem/error', but don't give any relevant auxiliary information according to the template below, this issue will be not replied.
Describe the bug
Install Xmake Open existing project Right click runnable python file in the Project panel Run 'untitled' is suggested, and the file is not run.
Disable xMake and restart Normal Pycharm behaviour returns
Expected behavior
Installing xMake should have no effect on projects that don't use xMake (including all previous projects) xMake should be enabled on a per-project basis.
Error output
No errors reported
If it is a xmake related compilation problem, please add the
-v -Dparameter and give the detailed compilation output information.
Related Environment
Windows 10 Pycharm 2021.2.3 Please provide compiling and running environment information:
- xmake version: 1.1.0
- os: Windows 10
- target platform: WSL2
Additional context
Add any other context about the problem here.
The compatibility of the idea plugin is very poor. I don't have much time to maintain this plugin. You can download the source code and debug it yourself. When I have time, I will also look at it.
Which version of Pycharm are you using ? Professional or Community ?
Ok, I managed to reproduce this behavior in my version of Pycharm. The solution is simple, at the top right of Pycharm, click on the 'Unnamed', and click on the 'Edit configurations...' option. From there, create a classic configuration with the python template for your project, and save your changes. From there, you should be able to run your python script in the classic way.
Which version of Pycharm are you using ? Professional or Community ?
Professional
Ok, I managed to reproduce this behavior in my version of Pycharm. The solution is simple, at the top right of Pycharm, click on the 'Unnamed', and click on the 'Edit configurations...' option. From there, create a classic configuration with the python template for your project, and save your changes. From there, you should be able to run your python script in the classic way.
Is that permanent or everything you open a project?
If you open a project not created with pycharm, you'll have to do this process again. If the project is created with a pycharm template, this is automatically done.