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

IO::getResource is not rooted #1989

Open
jurgenvinju opened this issue Jun 28, 2024 · 0 comments
Open

IO::getResource is not rooted #1989

jurgenvinju opened this issue Jun 28, 2024 · 0 comments
Labels

Comments

@jurgenvinju
Copy link
Member

Describe the bug

rascal>getResource("salix/demo/shop/test.css")
|std:///IO.rsc|(7029,2,<129,56>,<129,58>): IO("salix/demo/shop/test.css found more than once: {|mvn://org.rascalmpl!salix-core!0.2.3/src/main/rascal/salix/demo/shop/test.css|,|mvn://org.rascalmpl!salix-core!0.2.3/salix/demo/shop/test.css|}")
	at getResource(|std:///IO.rsc|(5881,1158,<103,0>,<131,1>))
	at $shell$(|prompt:///|(0,40,<1,0>,<1,40>)ok

The file occurs twice indeed:

  • once at the root
  • once nested under src

But getResources is not supposed to go searching through the entire jar, imo. That's wasteful, especially since we always know what the file is we are searching for, just not in which jar file it is located currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant