You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing the same behavior described in #328, but the cause is not because of multiple projects for the same files as it was deemed there. It seems to be something specifically around the resources target type.
I can work around by making the configs target use their own BUILD file/project. This does seem to be an actual issue because (in this case) all files exist in exactly one target. The junit_tests are included to show it something about resource bundles because it uses the same relative structure and does not have the same issue. The highlighting issue in this example will be in source.scala.
You can see the result of the confusion in loading b/c the project window shows that the root of the project is claimed to be "test_configs resources root", where it should be "test_lib source root". It's like it doesn't notice that the configs target is limited to a subdirectory.
Note about repro: A refresh will "fix" the issue after removing the resources section, but a refresh will not always repro after adding it. A full restart of IntelliJ is often required to consistently repro. There is some constellation that can get it to repro without restarting, but it is not clear to me what it is.
The text was updated successfully, but these errors were encountered:
I'm assuming it's because the path to the resources in the resulting jar will be rooted at the project root. I'm assuming this is a source of some ambiguity in the purpose of the project root.
For my use case this is undesirable and the requirement to create the build file within the resources folder remains even without intellij. Though it's no longer my use case, I'm not sure that it's an invalid one, but I'll defer to the maintainers to see if there is any improvement desired.
I'm seeing the same behavior described in #328, but the cause is not because of multiple projects for the same files as it was deemed there. It seems to be something specifically around the resources target type.
For instance, if I have a folder structure like:
My project works fine with the following targets:
But if I add the following target it breaks as previous described:
I can work around by making the configs target use their own BUILD file/project. This does seem to be an actual issue because (in this case) all files exist in exactly one target. The junit_tests are included to show it something about resource bundles because it uses the same relative structure and does not have the same issue. The highlighting issue in this example will be in source.scala.
You can see the result of the confusion in loading b/c the project window shows that the root of the project is claimed to be "test_configs resources root", where it should be "test_lib source root". It's like it doesn't notice that the configs target is limited to a subdirectory.
Note about repro: A refresh will "fix" the issue after removing the resources section, but a refresh will not always repro after adding it. A full restart of IntelliJ is often required to consistently repro. There is some constellation that can get it to repro without restarting, but it is not clear to me what it is.
The text was updated successfully, but these errors were encountered: