GithubHelp home page GithubHelp logo

Comments (4)

performantdata avatar performantdata commented on August 19, 2024

I noticed this, too. The plugin seems to use the scripted plugin, but I don't yet understand how, or why it doesn't do its job. (Having difficulties getting sbt running in debug in IDEA.)

from giter8.

performantdata avatar performantdata commented on August 19, 2024

test does more if you first run Test / g8, which creates the src/sbt-test/template-name.g8/scripted directory, filled out with an instantiation of your template.

I'm not sure yet why this is necessary, since

scriptedDependencies := { val x = (Test / g8).value }

https://github.com/foundweekends/giter8/blob/v0.16.2/plugin/src/main/scala/Giter8Plugin.scala#L109-L111

scriptedDependencies has no description, so I suspect that it wasn't intended to be used this way.

from giter8.

performantdata avatar performantdata commented on August 19, 2024

I discovered that the scriptedDependencies that's defined in Giter8Plugin isn't being used; sbt test is using the one defined in ScriptedPlugin instead.

This seems to be resolved by using

.enablePlugins(Giter8Plugin)

instead of the .enablePlugins(ScriptedPlugin) that g8 foundweekends/giter8.g8 generates into build.sbtβ€”in fact, it works just as well to remove this line entirely. This also causes the sbt-scripted scenario to be generated in target/sbt-test/ instead of in src/sbt-test/, which seems more appropriate.

I haven't gotten a completely clean run yet, but that seems to be because of an error in my template. But the above so far seems to fix your issue.

from giter8.

TonioGela avatar TonioGela commented on August 19, 2024

@eed3si9n I think this issue requires some attention, as apparently now all the g8Test are no-ops. Following the findings of @performantdata, I've been able to determine that this has been introduced between sbt 1.9.6 and 1.9.7. Here's the diff.

from giter8.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.