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

Task-scoped keys #202

Closed
eed3si9n opened this issue Sep 24, 2011 · 2 comments
Closed

Task-scoped keys #202

eed3si9n opened this issue Sep 24, 2011 · 2 comments

Comments

@eed3si9n
Copy link
Member

steps

> set test in Compile in compile := {}
> test
[error] Not a valid command: test (similar: set, last, exit)
[error] No such setting/task: {file:/Users/x/x/}default-b65acd/test
[error] test
[error]     ^

problems

  1. test:test is masked by compile:test(for compile).
  2. task-scoped keys cannot be discovered by tab completion.

expectations

  1. test:test runs.
  2. task-scoped keys are denoted project/config:task::key.
  3. compile:[tab] completes to compile::test.

note

I can work around problem 1 as follows in 0.10, but not in 0.11:

lazy val baseAssemblySettings: Seq[sbt.Project.Setting[_]] = Seq(
  test <<= test or (test in Test).identity,
  test in compile <<= (test in Test).identity,
)
@harrah
Copy link
Member

harrah commented Jan 9, 2012

Implemented in the parsing_changes branch:

https://github.com/harrah/xsbt/tree/parsing_changes

@harrah
Copy link
Member

harrah commented Jan 31, 2012

Included in the 0.12 branch.

@harrah harrah closed this as completed Jan 31, 2012
eed3si9n pushed a commit to eed3si9n/sbt that referenced this issue Apr 20, 2021
Remove double quotes around rtexport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants