Closed kche309 closed 2 years ago
It is caused by loading wrong version of lphy (1.3) if it exists in the Gradle local repo. I will investigate the Gradle functions in the build further:
After the investigation, I realise it needs to use the strictly version declaration, by simply adding two "!" will solve this problem. When using the previous declaration (no !), the default behaviour is picking up any available highest version first, so that 1.3.0 (existing in your Gradle local repo) was used instead of 1.2.0.
api("io.github.linguaphylo:lphy:1.2.0!!")
In addition, it should use api
in phylonco-lphy build, and delete implementation("io.github.linguaphylo:lphy:1.2.0")
from phylonco-lphybeast build, because api
will pass it to phylonco-lphybeast by using implementation(project(":phylonco-lphy"))
.
I do not think it is a bug now, just the usage of Gradle dependencies. @kche309 I suggest to keep as it is, but I will add the comments in lphy1.3 branch. If anyone wants the old version, they can change this in their local machine.
Running LPhyStudio 1.2.0 from IntelliJ and trying to load a script produces a class not found error
Caused by: java.lang.ClassNotFoundException: lphy.util.IOUtils
.LPhyStudio was run using two methods:
runLPhyStudio
gradle tasklphystudio.app.LinguaPhyloStudio
When selecting a script from examples (File -> Examples) and loading a new script (File -> Open script) produces thelphy.util.IOUtils
error message.