Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing xMake breaks Python projects in Pycharm #14

Open
the-moog opened this issue Dec 9, 2021 · 6 comments
Open

Installing xMake breaks Python projects in Pycharm #14

the-moog opened this issue Dec 9, 2021 · 6 comments
Labels

Comments

@the-moog
Copy link

the-moog commented Dec 9, 2021

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 the-moog added the bug label Dec 9, 2021
@waruqi
Copy link
Member

waruqi commented Dec 9, 2021

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.

@TNtube
Copy link

TNtube commented Dec 9, 2021

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

@TNtube
Copy link

TNtube commented Dec 9, 2021

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.

@the-moog
Copy link
Author

the-moog commented Dec 9, 2021

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

Professional

@the-moog
Copy link
Author

the-moog commented Dec 9, 2021

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?

@TNtube
Copy link

TNtube commented Dec 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants