I have an issue that IntelliJ fails to resolve sass mixins and variables.
Our structure got more complicated recently and the quality of life editing scss files is really affected. The structure is as follows:
Main project (Java project)
|- main-code-dir (this is a sub-sub-module)
|- separate-theme-dir (same structure as main-code-dir and is a sub-sub-module)
|- separate-theme-dir1 (same structure as main-code-dir and is a sub-sub-module)
In main.scss we include other scss files from shared-code-dir and sass can handle this. If I open _component.scss and try to use any variable defined in variables/_color-variables.scss or any mixin defined in mixins/_layout.scss IntelliJ shows the errors "Cannot find mixin" and "Cannot find variables" respecitvely.
I tried setting the shared-code-dir as Resources root or Source root but nothing makes IntelliJ recognize the other sass files.
The structure is so configured and there's no chance to change it, but would be great to somehow be able to give a hint to the sass where the code is so it can be resolved correctly.
Is there any way to do this with my structure?