Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Nikolai Obedin
    @dancingrobot84
    You need IDEA version 14.1 and later + latest Scala plugin (currently 1.14.5)
    Josh Suereth
    @jsuereth
    k, i'll upgrade :) I'm like the slowest upgrader ever
    Nikolai Obedin
    @dancingrobot84
    One more thing: I did not test it on windows, only linux and mac
    Knowing windows, I predict that it won't even work there
    So, Linux is recommended
    Liara
    @kiritsuku
    Is it possible to get a list of the aggregated project refs on the client (or at least on the sbt cmd)?
    basically, I need to get sbt.ProjectDefinition.aggregate
    Liara
    @kiritsuku
    I got access to the aggregated projects: It can be accessed through MinimalProjectStructure.dependencies.foreach(_.aggregate)
    Josh Suereth
    @jsuereth
    interesting
    Josh Suereth
    @jsuereth
    Aggregation is such an odd concept, in practice. You can actualyl disable it per-task (FYI)
    Liara
    @kiritsuku
    Is it safe to run tests on the client that reload the sbt files? Generally, I want to test the behavior with different sbt test projects, but want to avoid to restart the server for every test - that would just take too much time.
    Josh Suereth
    @jsuereth
    reload should be ok
    Liara
    @kiritsuku
    ok, I'll try it out. If it doesn't work you are doomed to answer my questions.
    Liara
    @kiritsuku
    Btw, is there the plan that the default sbt runner connects automatically with a server if one is running? Right now we still need a separate one, don't we?
    Josh Suereth
    @jsuereth
    yes
    And the plan is for that to be default in sbt 1.0, but there's a decent amount of work to do in "readline" protocol before that can happen
    Liara
    @kiritsuku
    ok
    Liara
    @kiritsuku
    Another question regarding "sbt project import" in Eclipse/any client: Right now we already have sbteclipse. Redeveloping its functionality in Eclipse takes some time - therefore we were thinking about the best way to get its functionality in Eclipse. One thought includes to add sbteclipse as a plugin to the server without the need to specify it in the sbt build files. Is this at all possible?
    @dancingrobot84 What are your plans on this? Do you plan to reimplement the functionality of sbt-idea or do you not want to include any project import wizard at all to your sbt integration?
    Liara
    @kiritsuku
    One large problem I see on reimplementing the project import on the client side is that it makes configuration noticeable harder. Right now users can specify any configuration in their sbt build files. In Eclipse they would have to use an (ugly) GUI integration that needs to be reconfigured every time it is used.
    In case we don't want to include a cache for the project configuration of course (which would be even more work).
    Josh Suereth
    @jsuereth
    @sschaef what would be the mechanism of live updates to the project? Always reloading the configuration?
    I.e. I change a small build.sbt setting, will that leading to sbteclipse (which downloads sources and can take a long time) or something slightly faster?
    For intellij, I don't use sbt-idea anymore
    You're right that the code should be shared/repeatable.
    As for adding the plugin dynamically.... Right now you can only do that via a project/eclipse.sbt file and then a releoad....
    Turns out dynamic loading of plugins is quite tricksy
    Liara
    @kiritsuku
    If we would rely on sbteclipse, yes I guess the easiest thing is to just rerun it and therefore recreate all configuration files. If we don't rely on sbteclipse, I don't see how this can speed up a reload operation. We still have to wait until everything is completed.
    But when you say that it is difficult to do dynamic loading of plugins it doesn't make much sense anyway to think further about this solution.
    Nikolai Obedin
    @dancingrobot84
    This message was deleted
    Nikolai Obedin
    @dancingrobot84

    @sschaef I've already reimplemented most of sbt-idea's functions in my extension.

    I guess that to solve the problem with configuration you could mix both approaches. That's how we do in Intellij Scala plugin. We created SBT plugin for extra settings (sbt-ide-settings), like what projects to skip or what directories to exclude. This plugin contains setting keys only, no real logic. When project is being imported we search for these keys and if they're present read them and perform appropriate actions.

    Liara
    @kiritsuku
    I already thought about the double side approach - it is probably the way where to go. Shouldn't be very difficult, since we can just copy the settings from sbteclipse or shrink down sbteclipse in functionality once Scala IDEs sbt integration is working.
    Liara
    @kiritsuku
    Hey Josh, the Scala IDE team is attending to ScalaDays next week, I hope we find some time to say hello. Also if time works out we would like to report back our current experience with sbt server and talk about future developments and possible improvements
    Josh Suereth
    @jsuereth
    Yeah, that's be awesome
    I'm trying to release 0.3.5 right now :)
    But yeah, we shoudl catch up. I'm in amsterdam now, so just ping me when you're in and rested
    Liara
    @kiritsuku
    alright
    Aravindh Sridharan
    @hardvain
    @all: I am planning to start a online tutorial for scala. I want a feature where the user able to edit & compile code snippets from browser like what a fiddle. I also want the ability for the user to see the compile time output (like what activator does), intermediate code generated etc. Which is a suitable library to do this? I looked at sbt-launcher but I am not sure if that is exactly the tool I want. Any pointers will be helpul
    PanAeon
    @PanAeon
    @hardvain have you looked at http://www.scala-js-fiddle.com/ ?
    Martin Ring
    @martinring
    hey @all. I am currently building sbt support for visual studio code and have been playing around with sbtrc. It seems like there is not much activity here anymore. Is this project still alive?
    Josh Suereth
    @jsuereth
    @martinring Well, it's still the best place I think, but the future is largely in @eed3si9n 's hands. We migrated investment of time into modularization over server, and there's agood bit of issues still in scala pickling which make this project interesting
    Graham Pople
    @programmatix
    Is there a way of using sbt-remote-control from IntelliJ to kick off a build? I'm using sbt for both scalajs and scala-on-android, and having to alt-tab to my sbt window a million times a day to start a build is getting old...
    Josh Suereth
    @jsuereth
    Not sure intellij uses sbt-remote-control....
    Graham Pople
    @programmatix
    Nah it doesn't, I was wondering if someone had jerry-rigged something. Alternatively, can I use sbt-remote-control from the command line? If so I can make IntelliJ call a shell script or something.
    Josh Suereth
    @jsuereth
    Command line is still pretty flaky
    Unfortunately....
    Last I hacked, still had some issues where, for some reason, we lost control of jline/input
    Probably a concurrency bug, but couldn't isolate it
    Graham Pople
    @programmatix
    Ok, no probs - just thought I'd check where things were. I don't have any time to contribute to the project, sorry, so I'll live with the alt-tabbing.
    If I did want to have a play with command line, are there any docs or wiki on this?