Search code examples
pycharm

PyCharm: The project at ... uses a non-standard layout and cannot be attached to this project


I have the latest version of PyCharm installed (2017.1). Everything works well except when I try to open two projects in the same window. I get this popup after hitting OK in the Open Project dialogue (which gives you the option to Open in a new window or Open in current window).

enter image description here

I tried the fix mentioned here (which is really stupid anyway). Also tried throwing a *.iml file in the ./idea directory, but it gave me this:

5/4/17
5:11 PM Load Settings
                Cannot load settings from file '/home/brandon/Downloads/chalice/.idea/chalice.iml': content truncated
                File content will be recreated

Again, it doesn't matter which project I want to open, so replace chalice with *. Opening single *.py files is fine, but I can't open projects.

Anyone have a solution so I can get back to writing Python? :D


EDIT: So now I've downloaded the latest version PyCharm and re-installed it. Now I can't even create a new project without this popup coming up.

What's going on here ???


Solution

  • As mentioned by norok2, for Pycharm 2019.1, first open the project in a new window.

    Afterward, try to attach it to the existing window.