Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Matthew de Detrich
    @mdedetrich
    Yeah I tried looking at it but it appears to be a bit convoluted
    There is a lot of custom DI in play, the important thing seems to be the classloader that is being used
    Matthew de Detrich
    @mdedetrich
    James Ward
    @jamesward
    yeah. sorry I'm not more helpful.
    Matthew de Detrich
    @mdedetrich
    No worries, think I will need someone from Play framework who knows more
    James Roper
    @jroper
    I know nothing.
    I've never used scala.js so I'm not aware of anything specific to it. My first suggestion would be try Classloader.getResources to see if that returns something different - for example, if there's a directory named /public/8582ad69409ecf661cc901a281d8a30c-client-fastopt.js on the classpath, that's gonna stuff everything up. check the actual contents of the file in the in the jar, make sure it's as expected.
    James Roper
    @jroper
    also try printing the URL returned by ClassLoader.getResource for the assets that are found, maybe they are coming from a location that you're not expecting (ie, perhaps the web-assets jar isn't actually on the classpath, it's just in the lib directory but your startup script isn't adding that jar to the classpath, while the scala.js resources are actually being bundled in another jar as well, and that's where the classloader is finding them).
    Matthew de Detrich
    @mdedetrich
    @jroper Thanks for the tips, will look into it tomorrow
    Matthew de Detrich
    @mdedetrich
    @jroper Just tried it, unfortunately that didn’t help
    Using getResources on ”public”,"public/client-fastopt.js” and "public/stylesheets/5f59caadb44c8d720a2a5d9fc948eed0-main.css” find the location (which is actually the same location of the .jar that I was unzipping before)
    Stuff like printResources("public/8582ad69409ecf661cc901a281d8a30c-client-fastopt.js”) still fails though
    So the web-assets jar is definitely on the class path
    i.e.
    element for public: jar:file:/var/folders/9l/z3wrf4_96cv3kzdg7lp65vr40000gn/T/sbt_5e295d02/target/e741039c/server_2.12-0.1-SNAPSHOT-web-assets.jar!/public
    I will make an issue on sbt-digest, someone else may be able to help diagnose this problem better
    Oh speak of the devil, I think I found the issue
    @nafg You there?
    Matthew de Detrich
    @mdedetrich
    Seems like its a bug with sbt-web
    Matthew de Detrich
    @mdedetrich
    @jroper So yeah seems like I have found the bug, sbt-digest is generating mappings incorrectly
    Matthew de Detrich
    @mdedetrich
    @jroper @nafg @jamesward I have fixed the bug, PR is at sbt/sbt-digest#29 containing an explanation
    @jroper Can you let me know when you publish a new version?
    James Ward
    @jamesward
    Nice work @mdedetrich!
    James Roper
    @jroper
    @mdedetrich Cutting a release right now.
    wifi here isn't good so hopefully it works
    @jamesward how's life?
    James Ward
    @jamesward
    You are still using wifi?!?
    All is good here. Had baby #2 two weeks ago. So that is fun. Back to work today.
    James Roper
    @jroper
    yeah, haven't switched to ethernet over quantum tunneling yet
    nice, congrats
    i'm in austin now for reactive summit
    James Ward
    @jamesward
    Oh nice! Have fun. Say hello to everyone for me.
    James Roper
    @jroper
    i've been on a sabatical from product development for the past few months, been doing consulting and working with actual production systems
    so crazy, people actually run this stuff to do useful things, who would have thought
    James Ward
    @jamesward
    Fun! Hopefully we cross paths somewhere soon. I get to see Sushila in Denver this weekend. :)
    James Roper
    @jroper
    i need an excuse to go back to colorado
    James Ward
    @jamesward
    yes you do. need to come mtn biking out here again!
    James Roper
    @jroper
    @mdedetrich [info] sbt-web/sbt-digest@1.1.4 was released
    James Ward
    @jamesward
    Awesome. Thanks @jroper for staying on top of all these little ancillary projects.
    Matthew de Detrich
    @mdedetrich
    @jroper Awesome, thanks a lot
    Sorry I didn’t know you were on holidays, enjoy your sabbatical!
    nafg
    @nafg
    @mdedetrich I think by sabbatical he meant that his job shifted temporarily from actual coding
    moritz bust
    @busti
    In an sbt-web project, where am I supposed to put the index.html file, when serving it as a resource?
    moritz bust
    @busti
    Nevermind, I just couldn't wrap my head around the folder structure.
    But I do have another question:
    Is there an sbt-web plugin that allows hot-reloading of changes to /public or /assets without restarting the server?
    Jules Ivanic
    @guizmaii

    Hi everyone,

    I really don’t understand this paragraph: https://github.com/sbt/sbt-web#packaging-and-publishing

    Can someone explain it to me ?
    I really don’t understand what (managedClasspath in Runtime) += (packageBin in Assets).value is for
    Mike Turchenkov
    @mclaudt

    Hi, @jroper et all!
    Could you please give us tiny tip, where to search for solution?

    [trace] Stack trace suppressed: run last mymegaproject/test:resolvedJSDependencies for the full output.
    [error] (mymegaproject/test:resolvedJSDependencies) org.scalajs.core.tools.jsdep.JSLibResolveException: Some references to JS libraries could not be resolved:
    [error] - Ambiguous reference to a JS library: react-dom-server.js
    [error]   Possible paths found on the classpath:
    [error]   - web-modules/test/webjars/lib/react/react-dom-server.js
    [error]   - META-INF/resources/webjars/react/15.6.1/react-dom-server.js

    I have implemented

    WebKeys.deduplicators := Seq(SbtWeb.selectFirstIdenticalFile)

    But it didn't help.