8000 Doctor exit status is failure (non-zero) when output indicates everything is OK · Issue #437 · jenv/jenv · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Doctor exit status is failure (non-zero) when output indicates everything is OK #437
Open
@binkley

Description

@binkley

An example of jenv doctor with non-0 (failure) exit code when the output says OK for all steps.
I have a Bash prompt hook that outputs non-0 exit status:

$ jenv doctor
[OK]    No JAVA_HOME set
[OK]    Java binaries in path are jenv shims
[OK]    Jenv is correctly loaded
(Exit 1) command jenv "$command" "$@"

I do not use the export plugin as jEnv works out-of-the-box for me without setting JAVA_HOME, so the "OK" on the first line makes sense.

Everything seems to function correctly:

  • My local use of the JVM is good in directories with a .java-version file
  • My use of the global settings works
  • Running jenv doctor in an alien directory (/tmp) works

Yet in all cases, jenv doctor exits with a failure status.

Reference: https://github.com/binkley/modern-java-practices/wiki/The-JDK#jenv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0