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

Module x and x-test produce 2 unambiguous build targets x-test making plugin to fail get the information about the right build target at runtime #6

Open
olisikh opened this issue Jun 16, 2024 · 0 comments

Comments

@olisikh
Copy link
Owner

olisikh commented Jun 16, 2024

If a project has 2 modules like:
module
module-test

Then SBT/Metals would have the following build targets:

module           - build target for /module submodule
module-test      - build target for /module/src/test source set
module-test      - build target for /module-test submodule
module-test-test - build target for /module-test/src/test source set

Since there're 2 module-test build targets the command the following line might get the information about the wrong build target:

local metals_uri = string.format("metalsDecode:file://%s/%s.metals-buildtarget", path, project)

If metals returns the build target of module-test submodule and the tested file is located under module/src/test, the plugin would fail to confirm the source path and the test would not be executed

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