question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SBT should require a project/build.properties or some other mechanism to avoid assuming any directory is a valid project.

See original GitHub issue

This is more of a nice to have (and I don’t think there is an issue on this), but if you start SBT in a folder which isn’t a valid SBT project, SBT should either delete the target folder on shutdown, or not create it in the first place

The former I think is more realistic. This just came out because I always have a habit of starting SBT in the wrong place, and it always leaves behind target folders.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:3
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
SethTisuecommented, Jan 3, 2022

I wouldn’t mind if I had to answer a “are you sure (y/n)?” type prompt before being able to proceed as @mdedetrich describes.

Such a prompt could also suggest sbt new as an alternative, as per discussion at #6772

0reactions
mdedetrichcommented, Sep 1, 2015

On another note, there are SBT tasks from SBT plugins that are out there that don’t need a SBT project to be relevant. A good example is https://github.com/xerial/sbt-sonatype, which provides a sonatypeRelease task that promotes all of your current sonatype libraries from staging to release (this doesn’t need to be done in any relevant SBT project)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · sbt/sbt - GitHub
SBT should require a project/build.properties or some other mechanism to avoid assuming any directory is a valid project. Enhancement uncategorized Used for ...
Read more >
Specify different version of sbt for a subproject in multi-project?
I put build.properties with that version into its directory but it didn't change the version of sbt for this project. How do I...
Read more >
sbt Reference Manual — Combined Pages
To create an sbt project, you'll need to take these steps: ... From a different shell or in your file manager create in...
Read more >
sbt/sbt - Gitter
I am writing a SBT Plugin. and my goal is that both Scala 2.11 and Scala.212 projects should be able to use my...
Read more >
The basics of the build.sbt - Medium
Whenever you or someone on your team start the project, sbt will check the version in project/build.properties . (Both the directory project ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found