foundweekends / giter8.g8 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from n8han/giter8.g8
A template for Giter8 templates
This project forked from n8han/giter8.g8
A template for Giter8 templates
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
Reported by @djspiewak
$ sbt new sbt new foundweekends/giter8.g8
Exiting due to error in the template
File: /var/folders/7g/l96y5q310h90xsz109qqjpmc0000gn/T/giter8-85035081679909/src/main/g8/.travis.yml, 7:4: invalid character '-'
I'm trying to use functionality described at http://www.foundweekends.org/giter8/template.html in which a directory is named
> 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 '\$'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.