Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    eugene yokota
    @eed3si9n
    thanks for the contribution
    drocsid
    @drocsid
    Happy to help!
    Sergey Morgunov
    @ihostage
    Very happy, that my contribution needs someone except me :smile:
    drocsid
    @drocsid

    Before I start reading and trial / error experiments regarding testing the http4s template and setting parameters, are there any examples of a g8 template that includes testing of the template itself and parameters? Also any idea about logging? When I run g8test for a given project, all I see is

    Running http4s-g8 / scripted
    [success] Total time: 38 s, completed May 12, 2020, 2:27:19 AM
    sbt:http4s-g8> [info] shutting down sbt server

    I saw some mention of scripted tests in sbt from the link and could probably run through some trial and error but thought I'd see if anyone has template testing examples...

    eugene yokota
    @eed3si9n
    I think that's supplying scala_version from Travis CI
    drocsid
    @drocsid
    @eed3si9n I'm still sightly confused but some of the other search results show scripts key which I think might make sense within the sbt context.
    Thanks
    Eric K Richardson
    @ekrich
    @eed3si9n Does gitter8 need to be 0.13.x for the build itself for version 0.11 plugin? scala-seed.g8 uses that as one of your examples.
    eugene yokota
    @eed3si9n
    as long as the template is not complicated it should be ok
    Eric K Richardson
    @ekrich
    It is very simple, just was wondering if there was an upgrade.
    Just downloading the world :smile:
    eugene yokota
    @eed3si9n
    oh you mean sbt 0.13?
    I don't think that's necessary
    Eric K Richardson
    @ekrich
    I opened the project in VSCode, actually the scala-seed uses CI and everything - not sure I am that ambitious.
    eugene yokota
    @eed3si9n
    how bad can it be?
    try bumping it latest sbt 1.x and see if PR runs
    Eric K Richardson
    @ekrich
    If it is not 0.13 then it looks for the 2.12_0.11 plugin. No big deal at all. I am working on the Scala Native seed, was just looking at Seth's work. He has 0.13.18 so I'm pretty darn sure he is correct.
    eugene yokota
    @eed3si9n
    Eric K Richardson
    @ekrich
    The whole g8 thing is super useful. Oh gosh thanks. That can just be copied.
    eugene yokota
    @eed3si9n
    Eric K Richardson
    @ekrich
    I already had one so I skipped that part but the template is old so prior to that I am sure. Thanks, nice chatting with you - you start something and you can always do better and it always takes longer.
    Eric K Richardson
    @ekrich
    Needed to change http -> https on the resolver.
    Eric K Richardson
    @ekrich
    Once I change the plugin to version 0.12 then sbt 1.3.10 works. I used the build with the scripted and that works great too. I did get this.
    Erics-MacBook-Pro:workspace eric$  g8 file://scala-native.g8/ --name=sng8-test --force
    log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
    log4j:ERROR The class "org.apache.log4j.Appender" was loaded by 
    log4j:ERROR [java.net.URLClassLoader@1d8d30f7] whereas object of type 
    log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [java.net.URLClassLoader@58372a00].
    log4j:ERROR Could not instantiate appender named "stderr".
    
    Template applied in /Users/eric/workspace/./sng8-test
    When I do sbt run in the generated project - works fine.
    eugene yokota
    @eed3si9n
    cool
    Eric K Richardson
    @ekrich
    What do you think that log4j thing is?
    eugene yokota
    @eed3si9n
    I think I've seen them too
    Eric K Richardson
    @ekrich
    Do I need to put in an issue for the http-> https?
    eugene yokota
    @eed3si9n
    sure
    I'm not quite sure what the log things are
    Eric K Richardson
    @ekrich
    Ok, I think lightbend changed to https on the repos?
    eugene yokota
    @eed3si9n
    I'm guessing that different parts of the app claim various pieces of slf4j
    most repos have been going https
    recently toolings started to deprecate http
    recently Lightbend announced that it would drop HTTP endpoints
    so did most other public repos now
    Eric K Richardson
    @ekrich
    Darn, for foundweekends, 64 open issues - that seems like lostweekends.
    :smile:
    eugene yokota
    @eed3si9n
    Eric K Richardson
    @ekrich
    Interestingly, when I run g8Test I see clang and such running but no output from the scripted but it succeeds so I am guessing it is running the app but no output is coming through.
    eugene yokota
    @eed3si9n
    you can turn off log buffering to see what's up
    Eric K Richardson
    @ekrich
    Is this correct Keys.test in Test in scala-seed it is test in Test.
    Oh yeah, I forgot about that.
    So many things.
    eugene yokota
    @eed3si9n
    I forgot why Keys.test was needed but at some point there was some confusion because there was a class named test somewhere I think
    or a package named test
    Eric K Richardson
    @ekrich
    Does slash syntax help Test / test or is that the same?
    eugene yokota
    @eed3si9n
    you can try it