GithubHelp home page GithubHelp logo

giter8.g8's People

Contributors

aoiroaoino avatar dependabot[bot] avatar eed3si9n avatar foundweekends-bot[bot] avatar jiminhsieh avatar jrudolph avatar phdoerfler avatar wsargent avatar xuwei-k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

giter8.g8's Issues

g8 foundweekends/giter8.g8 does not produce a working SBT project

Hello,
I tried creating a g8 template repo using :
g8 foundweekends/giter8.g8

I used the default values for all parameters. However, when I
cd my-template-project
and I try running sbt I get the following error:

[info] Loading global plugins from /Users/emil.dafinov/.sbt/0.13/plugins
[info] Loading project definition from /Users/emil.dafinov/my-template-project/project
/Users/emil.dafinov/my-template-project/build.sbt:8: error: not found: value g8Test
      val _ = (g8Test in Test).toTask("").value
               ^
sbt.compiler.EvalException: Type error in expression
[error] sbt.compiler.EvalException: Type error in expression
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

Giter8 version: 0.10.0

Substitution for $package$ in directory name doesn't work for Windows

I'm trying to use functionality described at http://www.foundweekends.org/giter8/template.html in which a directory is named $package$. It seems to work for Linux, but it doesn't for Windows. It may be that backslashes get into the path and are misinterpreted as escape characters. Here are the steps, approximately:

> sbt new foundweekends/giter8.g8
> cd my-template-project
> cd src/main/g8
> cd src/main
> mkdir resources
> mkdir resources/$package$ # do this from the gui
> cp scala/Stub.scala resources/$package$ # do this from the gui
> cd ../..
# Add "package = one.two.three" to default.properties
> cd ../../..
> sbt
sbt:My Template Project> g8

[error] stack trace is suppressed; run last Compile / g8 for the full output
[error] (Compile / g8) org.stringtemplate.v4.compiler.STException: relative: src\main\resources\$package$\Stub.scala, toPath: D:\Users\kwa\Documents\MyData\Projects\my-template-project\target\g8, An unexpected error occurred while processing the template. Check that all literal '$' are properly escaped with '\$'
[error] Total time: 0 s, completed Aug 9, 2021 11:08:11 AM

[error] org.stringtemplate.v4.compiler.STException: relative: src\main\resources\$package$\Stub.scala, toPath: D:\Users\kwa\Documents\MyData\Projects\my-template-project\target\g8, An unexpected error occurred while processing the template. Check that all literal '$' are properly escaped with '\$'
[error]         at giter8.G8$.expandPath(g8.scala:229)
[error]         at giter8.G8$.$anonfun$apply$2(g8.scala:99)
[error]         at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:293)
[error]         at scala.collection.Iterator.foreach(Iterator.scala:943)
[error]         at scala.collection.Iterator.foreach$(Iterator.scala:943)
[error]         at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
[error]         at scala.collection.IterableLike.foreach(IterableLike.scala:74)
[error]         at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
[error]         at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
[error]         at scala.collection.TraversableLike.flatMap(TraversableLike.scala:293)
[error]         at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:290)
[error]         at scala.collection.AbstractTraversable.flatMap(Traversable.scala:108)
[error]         at giter8.G8$.apply(g8.scala:97)
[error]         at giter8.Giter8Plugin$.$anonfun$baseGiter8Settings$1(Giter8Plugin.scala:56)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error]         at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error]         at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error]         at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error]         at sbt.Execute.work(Execute.scala:291)
[error]         at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error]         at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error]         at java.lang.Thread.run(Thread.java:748)
[error] (Compile / g8) org.stringtemplate.v4.compiler.STException: relative: src\main\resources\$package$\Stub.scala, toPath: D:\Users\kwa\Documents\MyData\Projects\my-template-project\target\g8, An unexpected error occurred while processing the template. Check that all literal '$' are properly escaped with '\$'

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.