usethesource / rascal-maven-plugin

The Maven plugin for Rascal checking, compilation, testing, code generation applications integration and documentation generation.
2 stars 2 forks source link

|lib://rascal-tutor|.ls produces contents of `|lib://rascal|` instead while running the tutor #14

Closed jurgenvinju closed 1 year ago

jurgenvinju commented 1 year ago
[INFO] Ls of lib://rascal-tutor/:
[INFO]  |lib://rascal-tutor/.api_description|
[INFO]  |lib://rascal-tutor/.options|
[INFO]  |lib://rascal-tutor/Boolean.rsc|
[INFO]  |lib://rascal-tutor/CDC-1.0_Foundation-1.0.profile|
[INFO]  |lib://rascal-tutor/CDC-1.1_Foundation-1.1.profile|
[INFO]  |lib://rascal-tutor/Content.rsc|
[INFO]  |lib://rascal-tutor/DateTime.rsc|
[INFO]  |lib://rascal-tutor/Exception.rsc|
[INFO]  |lib://rascal-tutor/Grammar.rsc|
[INFO]  |lib://rascal-tutor/IO.rsc|

I printed here the array produced by URIResolverRegistry.getInstance().list(...)

This leads up to that:

[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< org.rascalmpl:clair >-------------------------
[INFO] Building clair 0.9.0-RC3-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- rascal-maven-plugin:0.19.0-SNAPSHOT:tutor (default-cli) @ clair ---
[INFO] configuring paths
[INFO]  registered source location: |file:///Users/jurgenv/git/clair/src/|
[INFO] checking if any files need compilation
INFO: detected |lib://rascal| at |jar+file:///Users/jurgenv/.m2/repository/org/rascalmpl/rascal/0.32.0-RC2-SNAPSHOT/rascal-0.32.0-RC2-SNAPSHOT.jar!/|
INFO: detected |lib://rascal-tutor| at |jar+file:///Users/jurgenv/.m2/repository/org/rascalmpl/rascal-tutor/0.11.1-SNAPSHOT/rascal-tutor-0.11.1-SNAPSHOT.jar!/|
INFO: detected |lib://typepal| at |jar+file:///Users/jurgenv/.m2/repository/org/rascalmpl/typepal/0.7.6/typepal-0.7.6.jar!/|
INFO: detected |lib://rascal-core| at |jar+file:///Users/jurgenv/.m2/repository/org/rascalmpl/rascal-core/0.7.6/rascal-core-0.7.6.jar!/|
[INFO]  registered library location: |jar+file:///Users/jurgenv/.m2/repository/org/rascalmpl/rascal/0.32.0-RC1/rascal-0.32.0-RC1.jar!/|
[INFO] Paths have been configured: srcs:      [|file:///Users/jurgenv/git/clair/src/|]
ignores:   []
libs:      [|jar+file:///Users/jurgenv/.m2/repository/org/rascalmpl/rascal/0.32.0-RC1/rascal-0.32.0-RC1.jar!/|]
bin:       |file:///Users/jurgenv/git/clair/target/classes/docs|
classpath: [|file:///Users/jurgenv/.m2/repository/org/rascalmpl/rascal/0.32.0-RC2-SNAPSHOT/rascal-0.32.0-RC2-SNAPSHOT.jar|]
loaders:   [|file:///Users/jurgenv/git/clair/target/classes|,|file:///Users/jurgenv/.m2/repository/junit/junit/4.13.1/junit-4.13.1.jar|,|file:///Users/jurgenv/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar|,|file:///Users/jurgenv/.m2/repository/org/rascalmpl/rascal/0.32.0-RC1/rascal-0.32.0-RC1.jar|,|file:///Users/jurgenv/.m2/repository/org/rascalmpl/rascal-cdt-repackaged/0.2.0/rascal-cdt-repackaged-0.2.0.jar|]

[INFO] start loading the compiler
[INFO]  rascal module path addition: |lib://rascal-tutor|
[INFO]  rascal module path addition: |lib://rascal|
[INFO]  rascal module path addition: |std:///|
[WARNING] could not resolve Compiler module?
[INFO] Ls of lib://rascal-tutor/:
[INFO]  |lib://rascal-tutor/.api_description|
[INFO]  |lib://rascal-tutor/.options|
[INFO]  |lib://rascal-tutor/Boolean.rsc|
[INFO]  |lib://rascal-tutor/CDC-1.0_Foundation-1.0.profile|
[INFO]  |lib://rascal-tutor/CDC-1.1_Foundation-1.1.profile|
[INFO]  |lib://rascal-tutor/Content.rsc|
[INFO]  |lib://rascal-tutor/DateTime.rsc|
[INFO]  |lib://rascal-tutor/Exception.rsc|
[INFO]  |lib://rascal-tutor/Grammar.rsc|
[INFO]  |lib://rascal-tutor/IO.rsc|
[INFO]  |lib://rascal-tutor/J2SE-1.2.profile|
[INFO]  |lib://rascal-tutor/J2SE-1.3.profile|
[INFO]  |lib://rascal-tutor/J2SE-1.4.profile|
[INFO]  |lib://rascal-tutor/J2SE-1.5.profile|
[INFO]  |lib://rascal-tutor/JRE-1.1.profile|
[INFO]  |lib://rascal-tutor/JavaSE-1.6.profile|
[INFO]  |lib://rascal-tutor/JavaSE-1.7.profile|
[INFO]  |lib://rascal-tutor/JavaSE-1.8.profile|
[INFO]  |lib://rascal-tutor/JavaSE-9.profile|
[INFO]  |lib://rascal-tutor/JavaSE_compact1-1.8.profile|
[INFO]  |lib://rascal-tutor/JavaSE_compact2-1.8.profile|
[INFO]  |lib://rascal-tutor/JavaSE_compact3-1.8.profile|
[INFO]  |lib://rascal-tutor/LICENSE|
[INFO]  |lib://rascal-tutor/LICENSE-junit.txt|
[INFO]  |lib://rascal-tutor/LICENSE.txt|
[INFO]  |lib://rascal-tutor/List.rsc|
[INFO]  |lib://rascal-tutor/ListRelation.rsc|
[INFO]  |lib://rascal-tutor/Location.rsc|
[INFO]  |lib://rascal-tutor/META-INF|
[INFO]  |lib://rascal-tutor/Map.rsc|
jurgenvinju commented 1 year ago
[INFO] logical rascal-tutor points to: |jar+file:///Users/jurgenv/.m2/repository/org/rascalmpl/rascal/0.32.0-RC1/rascal-0.32.0-RC1.jar!/|

So there is some logical resolver pointing to the wrong jar file.. wt..