Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java classes of dependencies aren't loaded when they're open in the workspace #539

Closed
sungshik opened this issue Dec 4, 2024 · 1 comment

Comments

@sungshik
Copy link
Contributor

sungshik commented Dec 4, 2024

Scope (branches)

Problem

Background

Situation

  • Projects p and q are open in the workspace.
  • p has a dependency on q (declared in its POM)
  • p, q ∉ {rascal, rascal-lsp}
  • A REPL is created in p.

Expected

Both the Rascal modules and the Java classes of q should be loaded from the version in the workspace.

Actual

  • ✔️ The Rascal modules of q are loaded from the version in the workspace.
  • ⛔ The Java classes of q aren't loaded at all (not from any version).

Preliminary analysis

  • Only the target folder of p is on the classpath of the REPL, but not the target folder of q.
  • If q isn't open in the workspace, then its Java classes are loaded from the version in the local Maven repository (declared in its POM), as expected.
@sungshik sungshik changed the title Which versions of projects are loaded in the REPL? -- Java classes of dependencies aren't loaded when they're open in the workspace Java classes of dependencies aren't loaded when they're open in the workspace Dec 4, 2024
@sungshik
Copy link
Contributor Author

sungshik commented Dec 9, 2024

Fixed in usethesource/rascal#2094

@sungshik sungshik closed this as completed Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant