-
Notifications
You must be signed in to change notification settings - Fork 949
Milestone
Description
I know this is likely a minor issue, but if a user overrides the default derived project name (i.e., sbt.Keys#name
), an invalid SBT command would be printed here:
sbt:scalac-profiling-root> scalac-profiling/evicted
[error] Expected ID character
[error] Not a valid command: scalac-profiling
[error] Expected project ID
[error] Expected configuration
[error] Expected ':'
[error] Expected key
[error] Not a valid key: scalac-profiling (similar: scalafmtConfig, scalacOptions)
[error] scalac-profiling/evicted
[error]
IIUC, this is because name
only affects the publishing artifacts' name and the display name in the SBT shell, and it cannot be used as a reference to the project in SBT shell. My quick attempt to workaround this has failed. Can you folks suggest anything here?
Originally posted by @danicheg in #8012 (comment)