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

Two copies of same plugin can prevent either of them from working #301

Closed
marick opened this issue Oct 22, 2011 · 2 comments
Closed

Two copies of same plugin can prevent either of them from working #301

marick opened this issue Oct 22, 2011 · 2 comments

Comments

@marick
Copy link
Contributor

marick commented Oct 22, 2011

To reproduce:

% lein plugin install lein-midje 1.0.3
% lein plugin install lein-midje 1.0.4
% lein midje
That's not a task. Use "lein help" to list all tasks.

Deleting either of them lets the task be found:

% lein plugin uninstall lein-midje 1.0.3
% lein midje
All claimed facts (0) have been confirmed.

You can find the project I used at http://exampler.com/tmp/scratch.zip

@technomancy
Copy link
Owner

Thanks; will definitely get this fixed for the next version.

@technomancy
Copy link
Owner

This is caused by line 60 of bin/lein, but I'm not sure how to fix it. Need a hand from someone who's better at shell scripting.

Basically it's trying to remove duplicates, but the problem is that it steps through all user-level plugins and skips any of them that are detected as dupes. This would be fine if duplicates only occurred between user-level and dev-level plugins, but the user-level plugin list can include duplicates in itself. So when it sees lein-midje in there twice it doesn't let either entry through.

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

2 participants