Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    scalarookie
    @scalarookie_twitter
    Hi all, I added Ensime as a global sbt plugin as described on ensime.org. However, there's no ensimeConfig command available in sbt. Has anyone experienced a similar issue?
    Amos Bird
    @amosbird
    Hello, I'm trying to use ensime in spark. I followed the official guide and ended up in org.ensime.EnsimePlugin$$anon$1: To ignore this error (i.e. you have multiple scala versions), customiseensimeIgnoreScalaMismatch` . I don't know what to do next.
    Amos Bird
    @amosbird

    ensime/ensime-emacs

    Amanj Sherwany
    @amanjpro
    Are you talking about ensime-maven? Have you tried the new version 0.0.6?
    Amos Bird
    @amosbird
    @amanjpro hmm, how can I tell which version i'm using?
    I just type ensimeConfig inside sbt
    Amanj Sherwany
    @amanjpro
    Ah, if it is inside sbt then this is not the right gitter channel, maybe you want to go ask in github.com/ensime/ensime-sbt
    This channel is all about ensime and maven integration
    @amosbird
    Amos Bird
    @amosbird
    oh
    hmm, there isn't a gitter channel for ensime-sbt
    Amanj Sherwany
    @amanjpro
    I don’t think so, maybe you want to open an issue querying your bug, and you can also ask about a gitter channel
    Danny Navarro
    @jdnavarro
    I'm trying ensime-maven for the first time and got this error when running mvn ensime:generate:
    [ERROR] Failed to execute goal org.ensime.maven.plugins:ensime-maven:1.1.1:generate (default-cli) on project tacUmbrella: Execution default-cli of goal org.ensime.maven.plugins:ensime-maven:1.1.1:generate failed. NullPointerException -> [Help 1]
    this error only happens in the project I'm trying to setup
    I tried it in Apache's Log4j Scala API and it works perfectly
    so I'm not sure where to start debugging
    does that error ring a bell?
    Amanj Sherwany
    @amanjpro
    Can you rerun the with -e option?
    And send me the error message?
    I'm realizing the project I'm working on is quite old
    and the problem might have to do with obsolete maven plugins
    this is the pom file of the project: https://github.com/gemini-hlsw/itac/blob/master/pom.xml
    Amanj Sherwany
    @amanjpro
    Thank you for your cooperation, I will look at the issue during the weekend
    Amanj Sherwany
    @amanjpro
    @jdnavarro I digged into the log you sent me, and apparently it is not from this plugin, but a tool that the plugin uses (namely this line throws an exception: http://git.eclipse.org/c/aether/aether-core.git/tree/aether-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRepositorySystem.java?h=1.0.x#n361) I am still unsure what causes it, maybe one of the dependencies is somehow malformed? (actually I couldn’t run ensime:generate at all, as maven couldn’t start for dependencies missing, which is abnormal)
    Danny Navarro
    @jdnavarro
    I'm pretty sure some of the dependencies are not needed, at some point we'll have to clean them up
    there are also smaller pom files in the subdirectories which give the same error
    so I'll try to find out the problematic dependency there
    Amanj Sherwany
    @amanjpro
    I will look at it too, please share your findings
    Andrew Gaydenko
    @gaydenko

    Hi! On ensime server starting (from emacs) I get

    You are using a .ensime file format that is no longer supported.
    You must upgrade your build tool or downgrade to ensime stable.
    See http://ensime.org/editors/emacs/install

    with

    <build>
      <pluginGroups>
        <pluginGroup>org.ensime.maven.plugins</pluginGroup>
      </pluginGroups>
    </build>

    in .m2/settings.xml. The thing is I can not switch ensime-emacs to stable branch (too many things to change/reconfigure).

    How to resolve? Is it possible to generate .ensime for ensime-server 2.0.x branch?

    Ben Spencer
    @dangerousben
    @gaydenko: from what I can tell, the problem is that the plugin doesn't add :ensime-server-version to .ensime
    adding :ensime-server-version "2.0.0-SNAPSHOT" manually (copied from a file generated by the sbt plugin) seems to work
    Andrew Gaydenko
    @gaydenko
    @dangerousben , thanks for the tip! It still doesn't work as far as there must be a step to set scala version on generation. Not sure where to set it.
    Ben Spencer
    @dangerousben
    fwiw I have a locally built version of the plugin and I'm running it as: mvn org.ensime.maven.plugins:ensime-maven:1.1.2-SNAPSHOT:generate
    jasondevans
    @jasondevans
    @gaydenko I managed to get maven working with the developer/unstable version of ensime, by building the latest maven plugin locally and running as @dangerousben mentioned above. I also had to build ensime-server locally as mvn:generate is unable to find and download the 2.0.0 SNAPSHOT version. Basically I built it with sbt publishM2 to publish to my local maven repository. Not sure if I'm missing something obvious such as pointing to the correct snapshot repository in settings.xml
    I also manually changed the scala version of both the maven plugin and the server before building, to match my project version (2.11 in my case), I'm not completely sure that's necessary however
    Ben Spencer
    @dangerousben
    afaik 2.0 snapshots aren't published anywhere, there are milestone releases though: https://mvnrepository.com/artifact/org.ensime/server_2.11
    jasondevans
    @jasondevans
    ah, that makes sense -- that means though that you can't just use the unstable version by, say installing the melpa version of the emacs client instead of melpa-stable (as I first thought) -- you'll have to build the server locally, or manually update the maven plugin to point to a milestone
    jasondevans
    @jasondevans
    Currently, ensime-maven plugin generates .ensime files with cyclic dependencies, which causes infinite recursion and stack overflow with scala projects with the latest ensime-server, on server startup. I created a PR for this here: ensime/ensime-maven#55. I'm not a maven plugin expert and am relatively new to ensime, so would love any feedback
    Amanj Sherwany
    @amanjpro
    Just released a new version of ensime-maven plugin
    it is versioned 1.2.0 and should be up tomorrow

    It has the following improvements:

    1- ensime/ensime-maven#54
    2- ensime/ensime-maven#55
    3- ensime/ensime-maven@5c3a0a3

    Thank you @dangerousben and @jasondevans for your contributions
    Amanj Sherwany
    @amanjpro
    The new version is already in maven-central.
    jasondevans
    @jasondevans
    great!
    Amanj Sherwany
    @amanjpro

    Just released ensime-maven 1.3.0 plugin, which should be available in 24 hours. It merges the following PRs:
    1- ensime/ensime-maven#58
    2- ensime/ensime-maven#56

    Thank you @jasondevans @kat-co

    Yash Yadavalli
    @yyadavalli
    Hey @aramesh117, reviewed #60. It should be pretty easy to add the other goals too. They are simple copy paste jobs.