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

no such command `enable-plugin' #129

Open
rachelwilson opened this issue Feb 10, 2016 · 7 comments
Open

no such command `enable-plugin' #129

rachelwilson opened this issue Feb 10, 2016 · 7 comments

Comments

@rachelwilson
Copy link

jenv doesnt allow me to set the enable the plugins. I'm getting the following error:

$ jenv enable-plugin sbt
jenv: no such command `enable-plugin'

although it is listed as a valid command in the list of available commands

$ jenv commands
...
disable-plugin
...
enable-plugin
...
@ctran
Copy link

ctran commented Feb 15, 2016

You may want to specify your version and your machine OS.

@pixelbacon
Copy link

Same issue. OSX 10.11.4

@arthurlbrjc
Copy link

Same issue. Ubuntu 16.04, jenv 0.4.3-14-g15104a3

@themnd
Copy link

themnd commented Jan 23, 2017

I have the same issue on mac os x when running an ansible script.
It does not happen when running manually from the terminal.

jenv doctor says:

[OK]	No JAVA_HOME set
[OK]	Java binaries in path are jenv shims
[OK]	Jenv is correctly loaded

jenv commands list 'enable-plugin' and 'disable-plugin'

@gcuisinier
Copy link
Collaborator

Indeed, I've never tested in a tools like ansible.

To work in a interactive shell, you have to add :

eval "$(jenv init -)"
in you .bashrc / .zshrc

Maybe, this line is never executed in a ansible scope.

@themnd
Copy link

themnd commented Jan 23, 2017

You are right!

This task will now work:

- name: enable jenv plugins
  shell: eval "$(jenv init -)" && jenv enable-plugin {{ item }}
  with_items: "{{ jenv_plugins }}"

Many thanks.

harry-jk added a commit to harry-jk/jenv that referenced this issue Apr 14, 2019
@tjnycum
Copy link

tjnycum commented Nov 3, 2022

Still happening in jenv 0.5.5 on Ubuntu 22.04.

Please keep in mind that README.md suggests new users use this command to install the export plugin. Is there another way to install a plugin?

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

7 participants