Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

project root dir is ignored when used with projectile #451

Closed
mbuczko opened this issue Oct 6, 2017 · 0 comments
Closed

project root dir is ignored when used with projectile #451

mbuczko opened this issue Oct 6, 2017 · 0 comments

Comments

@mbuczko
Copy link
Contributor

mbuczko commented Oct 6, 2017

This can be painful when clojure-mode is used together with projectile and cider. For certain operations (like jack-in to the REPL) cider tries to find a project root dir via clojure-project-dir and in most scenarios it works. The problem however appears when project uses few other build tools at the same time.

Imagine following directory structure:

/proj
|-> build.boot
|-> subproject_1
      |-> build.gradle

Projectile allows to customize a way how the project root dir is calculated and having build.gradle files ignored in this case it locates /proj root with build.boot inside correctly. Unfortunately, as clojure-project-dir doesn't use that "knowledge" it simply forces subproject_1 as a root dir (when called within this directory) and jack-in goes with gradle.

I prepared a simple PR which mitigates this problem. Please, take a look at it and accept if it makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant