Limit protocol & struct duplication search to current project section

Hi
I would like to have the same protocol name and package in different places in my repo. They will never be used at the same time or in the same app.

Is there a way to limit the search of duplicate protocols to either the pom file or the iml file? Or is there an other solution to achieve this?

1 Like

N.B. - this is IntelliJ specific.

I would also like this. My issue is with NPL migration tests. I keep the previous version of the NPL in a resource directory in my npl module. This means there is pretty much always an issue for me running unit tests in IntelliJ (I can run them via maven).

For anyone running into this issue - to get it to work I need to un-mark my test resources directory as a resources directory.

I get this error when I run via IntelliJ:

..
Testing started at 11:07 ...

.../npl/src/main/npl/.../project.npl: (16, 1) E0020: Attempt to redefine 'Project', already defined at 'file:.../npl/src/test/resources/engine/npl-2.0.0/.../project.npl:16'