Closed GoogleCodeExporter closed 9 years ago
Hello Mike,
Indeed, Leiningen support in the current version is automatically added under
the following conditions:
- the project has a project.clj file at its root
I have made changes, soon to be released, to this, because other people were
also harmed by the current behavior. On the master branch the conditions are
now more restrictive:
- the project has project.clj, of course
- there is currently no Java (JDT) nature
So if a project has a pre-existing maven nature, which also implies a JDT
nature, Leiningen nature will not be triggered anymore, and thus the java build
path will not be reset.
Still, there's the case for projects just cloned from github, and having both a
pom.xml and a project.clj file.
For those, it will depend on how one imports them: if the project is imported
as a "generic project", then the Leiningen nature addition will be triggered.
However, if the project is imported via the maven importer, then maven/JDT
support will be created first, and I expect leiningen nature to not be
triggered, then.
Does it seem ok, or can you find holes in the reasoning?
Original comment by laurent....@gmail.com
on 20 Oct 2014 at 8:46
Hi Laurent, That reasoning sounds sound. Apologies if I have been repeating a
previously known issue.
Perhaps it would be good to also have some feature to explicitly turn on / off
the Leiningen nature? That would be useful for the project import case in the
(quite likely?) attempt that a new user does the import using the wrong method.
Original comment by mike.r.anderson.13@gmail.com
on 20 Oct 2014 at 8:51
Original comment by laurent....@gmail.com
on 20 Oct 2014 at 8:58
Please do not apologize, feedback is and will always be welcome ! Nevermind if
there are some duplicates some times. This would rather denote that the problem
has been there for too long, so I may argue it's even good to help me
prioritize stuff :-) !
You're right, there's no feature for turning leiningen nature off. This would
help. It would just remove the leiningen nature, not the java nature, thus it
would not enter in some kind of loop (the java nature would prevent the
leiningen nature to be automatically re-added).
I will change the summary of the issue to reflect this new goal.
Original comment by laurent....@gmail.com
on 20 Oct 2014 at 9:03
Original comment by laurent....@gmail.com
on 20 Oct 2014 at 10:39
Original issue reported on code.google.com by
mike.r.anderson.13@gmail.com
on 20 Oct 2014 at 8:34