tricktron / frege-gradle-plugin

Gradle plugin for compiling Frege projects
2 stars 1 forks source link

Repl should also set up all source dependencies #16

Closed tricktron closed 2 years ago

tricktron commented 2 years ago

Currently, the replFrege task does not compile and put the files in mainSourceDir on the classpath. This leads to the problem that you need to manually load all local dependencies in the correct order into the Repl using the :l <dep1.fr>, :l <dep2.fr and so on.

We can solve this issue if we compile every source dependency using the compileFrege task and just exclude the one file that we want to load into the Repl from the classpath. If we don't exclude it, we run into the shadowing problem and can't reuse the reload command :r.