Skip to content

Commit

Permalink
Mark generated/truffle as generated source dir in IntelliJ
Browse files Browse the repository at this point in the history
This fixes many "unknown symbol" errors in Java source files.
  • Loading branch information
translatenix authored and holzensp committed Feb 20, 2024
1 parent 50a006b commit 277f1e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkl-core/pkl-core.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ sourceSets {

idea {
module {
// mark src/main/antlr as source dir,
// and generated/antlr as generated source dir
sourceDirs = sourceDirs + files("src/main/antlr", "generated/antlr")
generatedSourceDirs = generatedSourceDirs + files("generated/antlr")
// mark src/main/antlr as source dir
// mark generated/antlr as generated source dir
// mark generated/truffle as generated source dir
sourceDirs = sourceDirs + files("src/main/antlr", "generated/antlr", "generated/truffle")
generatedSourceDirs = generatedSourceDirs + files("generated/antlr", "generated/truffle")
}
}

Expand Down

0 comments on commit 277f1e0

Please sign in to comment.