xmake-idea icon indicating copy to clipboard operation
xmake-idea copied to clipboard

Installing xMake breaks Python projects in Pycharm

Open the-moog opened this issue 3 years ago • 6 comments

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 -D parameter 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-moog avatar Dec 09 '21 13:12 the-moog

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.

waruqi avatar Dec 09 '21 14:12 waruqi

Which version of Pycharm are you using ? Professional or Community ?

TNtube avatar Dec 09 '21 14:12 TNtube

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.

TNtube avatar Dec 09 '21 14:12 TNtube

Which version of Pycharm are you using ? Professional or Community ?

Professional

the-moog avatar Dec 09 '21 15:12 the-moog

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?

the-moog avatar Dec 09 '21 15:12 the-moog

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.

TNtube avatar Dec 09 '21 15:12 TNtube