IC2 is opening the CustomLabels file that is within a different project.

Issue #2291 resolved
Mike Wannamaker created an issue

I have this:

And then at the same level as “project_tracker” directory I have this:

These are the same git repo, but they are different IntelliJ projects, cuz they are different directories of the full project.

I have both the projects open in IntelliJ.

If I’m in the project on the bottom and I click a label to go to definition it opens the CustomLabels file from the project directory correctly.

When I’m in the top one, in a class and I cmd-click the label to go to the label definition, it should take me to the CustomLabels file in the top picture.  But it doesn’t it actually opens the CustomLabels that is within the bottom picture.

And I get this if I try to edit it.

IC2 opens the correct one in the one project, but the other project it doesn’t.

Shutting down the project and reopening it didn’t solve the issue.

Invalidating caches and restarting did not solve it either.

I looked and the module only has sources from within it’s own project, nothing referenced outside.

I’ve searched all files in directory for other folder name “project_tracker_devpush” and nothing found.

Comments (4)

  1. Scott Wells repo owner

    Mike, in the situation where this happens, do the two projects happen to have a module with the same name? That would actually explain what’s happening, but I want to see if your use case supports that assertion to ensure that my fix would resolve the issue for you.

  2. Log in to comment