You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sbt creates a default project, the project name is derived by using a rather complex algorithm that involve the containing directory name, a number of suffixes, the string "root", and so on. That makes it very difficult to guess whether, by looking at the list of projects, a given project is the default one or not. For instance, if the project is checked out into two directories that have different names, the default project name may change.
At present dbuild uses a heuristic to try and guess whether a project is the default one, in order to let the user refer to it by a conventional name even though within sbt its actual name may vary. This approach works in many cases, but it is not very satisfactory.
expectation
As a feature request, it would be useful to have a new flag in the project description, which gets set in case the project was automatically generated and received its name automatically. There is currently no certain way to identify the default project post facto.
notes
The related code in sbt involves defaultID and autoID, in sbt/internal/Load.scala.
The text was updated successfully, but these errors were encountered:
My description was not adequately clear. The line that you refer to allows one to identify the root project; however, there is no way to determine whether the name of the project was explicitly chosen by the user, in which case within dbuild we can refer to the root project by its proper name, or rather whether the root project received an automatically assigned name by default, in which case the name may morph and within dbuild there would be no way to refer to it by using a fixed name. A flag would be needed to determine whether the root project received its name automatically or not.
problem
When sbt creates a default project, the project name is derived by using a rather complex algorithm that involve the containing directory name, a number of suffixes, the string "root", and so on. That makes it very difficult to guess whether, by looking at the list of projects, a given project is the default one or not. For instance, if the project is checked out into two directories that have different names, the default project name may change.
At present dbuild uses a heuristic to try and guess whether a project is the default one, in order to let the user refer to it by a conventional name even though within sbt its actual name may vary. This approach works in many cases, but it is not very satisfactory.
expectation
As a feature request, it would be useful to have a new flag in the project description, which gets set in case the project was automatically generated and received its name automatically. There is currently no certain way to identify the default project post facto.
notes
The related code in sbt involves
defaultID
andautoID
, insbt/internal/Load.scala
.The text was updated successfully, but these errors were encountered: