Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

.ensime is too old #53

Closed
songpeng opened this Issue Jun 13, 2017 · 6 comments

Comments

Projects
None yet
2 participants

Hi,
I recently tried many times to use ensime in Java under builder Maven. (sbt is only used for scala in my situation, and many people use maven to maintain java project)
OS: Mac OS 10.12.5
Emacs version: 25.2, mac port

  1. I can generate .ensime with mvn ensime:generate

  2. But when I run M-x ensime, it said my .ensime is too old. I use the default set up in ensime.org for maven, i.e., add .m2/settings.xml for ensime-maven. I see the version is 1.1.1, which is the newest one in maven. So I am indeed confused.

  3. sbt work fine with ensime in my computer.

  4. Minor:
    The ensime.org document for maven says:
    This plugin does not currently document how to use the Developer Version of ENSIME Please get involved at https://github.com/ensime/ensime-maven
    But when I enter that site, there is no document. The readme.md relink to the previous one.
    Also, the version for ensime-maven is 1.1.0, not the newest, and not consistent with the version for ensime:scalariform in the same page.

Thanks.
Songpeng

Contributor

amanjpro commented Jun 14, 2017

Thanks for filing this issue, I am a little bit busy, but will try to find some time to fix this. I am currently not using ENSIME + maven, as we have finally migrated to SBT :)

Hi, amanjpro,
Thanks for your reply. I am now using meghanada for java in Emacs, which is small and easy to use. Since you have migrerated to SBT, I will learn it and use it under scala in my situation. Ensime seems to be a cool tool~
Thanks.
Songpeng

@songpeng songpeng closed this Jun 15, 2017

Contributor

amanjpro commented Jun 16, 2017

I would rather reopen this issue, so people won't be mislead thinking that it is fixed

@amanjpro amanjpro reopened this Jun 16, 2017

Contributor

amanjpro commented Sep 3, 2017

Can you test the latest version of ensime-maven (1.2.0) and see if it fixes the bug?

Contributor

amanjpro commented Sep 5, 2017

The bug should have been fixed now

@amanjpro amanjpro closed this Sep 5, 2017

songpeng commented Sep 13, 2017 edited

Hi, @amanjpro
Thanks a lot for your updates. I try ensime-maven 1.2.0 for java. It's OK to open ensime.
But I find:

  1. if add ensime settings in ~/.m2/setting.xml as the website mentions
<build>
  <pluginGroups>
    <pluginGroup>org.ensime.maven.plugins</pluginGroup>
  </pluginGroups>
</build>

it doesn't work (still use 1.1.1, maybe I have to delete other files? I'm not familiar with mvn). I have to add ensime info in the pom file,

<build>
<plugins>
  <plugin>
    <groupId>org.ensime.maven.plugins</groupId>
    <artifactId>ensime-maven</artifactId>
    <version>1.2.0</version>
  </plugin>
</plugins>
</build>

in that way I have to break the pom file that our team maintains.
2. In my project, I have multiple sub projects. I only add ensime settings in the parent pom. And it only scan my parent structure.

Anyway, thanks a lot for your information. I now use meghanada, and it works OK though a little slow. And it doesn't need me to change my pom.
I now use ensime for scala, and it works well under sbt builder.
That's my recent tries.
Songpeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment