File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
scala/src/com/google/idea/blaze/scala/sync Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -165,9 +165,17 @@ public void updateProjectStructure(
165165 // jar manifest for third party libraries. This breaks the Scala IntelliJ plugin in some ways.
166166 // This gets around that in the Bazel IntelliJ plugin, but doesn't fix the places the Scala
167167 // IntelliJ plugin checks that jars start with scala-library or similar.
168- String rulesJvmExternalPrefix = "header_" ;
169- if (libraryName .startsWith (rulesJvmExternalPrefix )) {
170- libraryName = libraryName .substring (rulesJvmExternalPrefix .length ());
168+ String rulesJvmExternalPrefixHeader = "header_" ;
169+ if (libraryName .startsWith (rulesJvmExternalPrefixHeader )) {
170+ libraryName = libraryName .substring (rulesJvmExternalPrefixHeader .length ());
171+ }
172+
173+ // Same issue as above, but for the prefix "processed_" instead of "header_"
174+ // TODO: we should figure out if we should be getting the header_ or processed_ jars
175+ // or if there's a way for us to get the jars without a prefix instead
176+ String rulesJvmExternalPrefixProcessed = "processed_" ;
177+ if (libraryName .startsWith (rulesJvmExternalPrefixProcessed )) {
178+ libraryName = libraryName .substring (rulesJvmExternalPrefixProcessed .length ());
171179 }
172180
173181 // Go find the highest version of all the Scala SDK deps in the project LibraryTable
You can’t perform that action at this time.
0 commit comments