scala-hamsters / hamsters

A mini Scala utility library
Apache License 2.0
291 stars 23 forks source link

Generate Validation.result up to 22 parameters #23

Closed loicdescotte closed 7 years ago

loicdescotte commented 7 years ago

See https://github.com/scala-hamsters/hamsters/blob/master/src/main/scala/io/github/hamsters/Validation.scala#L43-L90

Usage : https://github.com/scala-hamsters/hamsters/blob/master/src/test/scala/ValidationSpec.scala#L31-L44

dgouyette commented 7 years ago

It's seems there is a problem with a dependency : https://repo1.maven.org/maven2/org/scalameta/paradise_2.11.11/3.0.0-M8/paradise_2.11.11-3.0.0-M8.jar I was able with a clean repository to build the project :

[info] Updating {file:/Users/dgouyette/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Loading project definition from /Users/dgouyette/sources/scala/hamsters/project
[info] Updating {file:/Users/dgouyette/sources/scala/hamsters/project/}hamsters-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to hamsters (in build file:/Users/dgouyette/sources/scala/hamsters/)
> clean-files
[info] * /Users/dgouyette/sources/scala/hamsters/lib_managed
[info] * /Users/dgouyette/sources/scala/hamsters/target
> compile
[info] Updating {file:/Users/dgouyette/sources/scala/hamsters/}macros...
[info] Resolving jline#jline;2.14.3 ...
[info] downloading https://repo1.maven.org/maven2/org/scalameta/scalameta_2.11/1.7.0/scalameta_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#scalameta_2.11;1.7.0!scalameta_2.11.jar (199ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/common_2.11/1.7.0/common_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#common_2.11;1.7.0!common_2.11.jar (1479ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/dialects_2.11/1.7.0/dialects_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#dialects_2.11;1.7.0!dialects_2.11.jar (212ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/parsers_2.11/1.7.0/parsers_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#parsers_2.11;1.7.0!parsers_2.11.jar (1748ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/quasiquotes_2.11/1.7.0/quasiquotes_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#quasiquotes_2.11;1.7.0!quasiquotes_2.11.jar (589ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/tokenizers_2.11/1.7.0/tokenizers_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#tokenizers_2.11;1.7.0!tokenizers_2.11.jar (308ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/transversers_2.11/1.7.0/transversers_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#transversers_2.11;1.7.0!transversers_2.11.jar (302ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/trees_2.11/1.7.0/trees_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#trees_2.11;1.7.0!trees_2.11.jar (5025ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/inline_2.11/1.7.0/inline_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#inline_2.11;1.7.0!inline_2.11.jar (106ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/semantic_2.11/1.7.0/semantic_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#semantic_2.11;1.7.0!semantic_2.11.jar (586ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/inputs_2.11/1.7.0/inputs_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#inputs_2.11;1.7.0!inputs_2.11.jar (193ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/tokens_2.11/1.7.0/tokens_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#tokens_2.11;1.7.0!tokens_2.11.jar (819ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/io_2.11/1.7.0/io_2.11-1.7.0.jar ...
[info]  [SUCCESSFUL ] org.scalameta#io_2.11;1.7.0!io_2.11.jar (191ms)
[info] downloading https://repo1.maven.org/maven2/org/scalameta/paradise_2.11.11/3.0.0-M8/paradise_2.11.11-3.0.0-M8.jar ...
[info]  [SUCCESSFUL ] org.scalameta#paradise_2.11.11;3.0.0-M8!paradise_2.11.11.jar (19328ms)
[info] Done updating.
[info] Updating {file:/Users/dgouyette/sources/scala/hamsters/}root...
[info] Resolving jline#jline;2.14.3 ...
[info] Done updating. 
dgouyette commented 7 years ago

Fixed. 2.11.8 Cross version was incompatible with scala meta.

loicdescotte commented 7 years ago

Thanks! You rock ;)