Creating new projects and opening projects always open folders on a different project

已回答

I love editing with Pycharm. It is far and away the best editor I have experienced for python. However, I am having some problems with project management.

Creating a project from existing source: So I want to select a root directory where I have organized my source. I choose open and select the root directory of this project.  It creates the project, but for some reason it does not use the directory that I selected as a content root.  That's odd.  Instead, it opens a directory from another project.  For instance, I selected c:\pycharmtest to start a new project.  After creating the project, the only folder shown in the project sidebar is I:\udpTesting.  (That is a folder I have used in Pycharm for another project, but I do not want this new project to have any relation to the old project)

So I go to file->settings and configure the content roots.  I remove I:\udpTesting and add c:\pycharmtest.  Now the folder c:\pycharmtest does show up in the sidebar, but it is shown like this:  c:\pycharmtest [udpTesting] .  What does this mean?  This project has absolutely nothing to do with the project "udpTesting".

I have tried invalidating the cache and restarting, but the same process happens.  If I now try to create a project in the directory c:\pycharmtest2, then it starts up with a content root of c:\pycharmtest [udpTesting]

Opening Projects.  Now if I go back and try to open the first project at c:\pycharmtest, and select open in current window and add to opened projects, then I get the message saying "The project at C:\pycharmtest uses a non-standard layout and cannot be attached to this project. Would you like to open it in a new window?"

But this is the project that I just created above.  How could it be a non-standard layout?

Other times when I have tried to add a project to the same window, it never shows up in the project list.

What am I doing wrong?

0

Hi Dwcarr! Could you please remove ProjectModuleManager component configuration from project.default.xml in the application config directory (https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs). Has it helped?

This is a known problem caused by PY-23930 I believe.

0
Avatar
Permanently deleted user

I am getting the same message using version 2017.3.4 :(

0

请先登录再写评论。