Skip to content

[cli] PMD's start script fails if PMD_HOME is set #5705

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

Closed
adangel opened this issue Apr 25, 2025 · 0 comments · Fixed by #5744
Closed

[cli] PMD's start script fails if PMD_HOME is set #5705

adangel opened this issue Apr 25, 2025 · 0 comments · Fixed by #5744
Labels
a:bug PMD crashes or fails to analyse a file.
Milestone

Comments

@adangel
Copy link
Member

adangel commented Apr 25, 2025

Affects PMD Version: 7.13.0

Description:

If the environment variable PMD_HOME is set, then the script fails to start pmd with the following error:

Couldn't determine PMD_HOME path. Script location [] does not exist

Related to #5623.

Reason for the docker build job failure -> https://github.com/pmd/docker/actions/runs/14660567613

Steps to reproduce:

$ export PMD_HOME=/path/to/pmd
$ /path/to/pmd/bin/pmd --version
Couldn't determine PMD_HOME path. Script location [] does not exist
@adangel adangel added the a:bug PMD crashes or fails to analyse a file. label Apr 25, 2025
adangel added a commit to pmd/docker that referenced this issue Apr 25, 2025
@adangel adangel added this to the 7.14.0 milestone Apr 25, 2025
adangel added a commit to adangel/pmd-examples that referenced this issue Apr 25, 2025
adangel added a commit to pmd/pmd-examples that referenced this issue Apr 25, 2025
* Bump PMD from 7.12.0 to 7.13.0

* Don't export PMD_HOME (see pmd/pmd#5705)
adangel added a commit to adangel/pmd that referenced this issue May 30, 2025
adangel added a commit to adangel/pmd that referenced this issue May 30, 2025
adangel added a commit to pmd/docker that referenced this issue Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug PMD crashes or fails to analyse a file.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant