Pycharm New Version

I had to resintall pycharm after a computer crash. Hence I now have the latest version.

I must say I am completely lost with the new display. I tried running a simple project, and it seems it can't even find the proper source root of the project  (import fails for packages inside project), and I don't see any option to configure this in an easy way. 

My project as an src folder (setup to be the root), and then inside the src, there are several sub-packages, the main file is at the root of the src folder.

How do you setup running an app correctly in this new version of pycharm ? 

Also: is there a way to get the previous version of pycharm that was working correctly ? mine was Pycharm 2023.1.6 Community Edition

0

Make sure that

Your src folder is explicitly marked as a Sources Root (right-click src → Mark Directory as → Sources Root).

Your Run Configuration is using the correct working directory (it should usually point to the project root, not src).

The correct Python interpreter is selected for the project (Settings → Python Interpreter).

If imports are failing, 90% of the time it’s either the source root not being marked correctly or the run configuration pointing to the wrong folder.

Geometry Dash Lite

0

In the new PyCharm, you need to explicitly mark your src folder as Sources Root (right-click src → Mark Directory as → Sources Root) and make sure your Run Configuration uses the correct working directory. Yes, you can download PyCharm 2023.1.6 Community Edition from JetBrains’ official Previous Versions archive if you prefer to go back.
Edited by bitlife a day ago

0

Yes, you can still download older versions of PyCharm, including 2023.1.6 Community Edition, from JetBrains’ official website under their previous releases section. That might be a good temporary solution if you need to get back to work quickly. That said, it might be worth fixing the configuration in the new version for long term use. Are you using a virtual environment or system interpreter in this project?

Edited by Drift Boss a day ago

0

请先登录再写评论。