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

JavaTokenKinds class is missing #3465

Closed
suren39 opened this issue Aug 17, 2021 · 1 comment
Closed

JavaTokenKinds class is missing #3465

suren39 opened this issue Aug 17, 2021 · 1 comment
Labels
a:question Request for information that doesn't necessarily entail changes to the code base

Comments

@suren39
Copy link

suren39 commented Aug 17, 2021

Affects PMD Version:
Project does not compile, missing following class
import net.sourceforge.pmd.lang.java.ast.JavaTokenKinds;

Make sure, to test with the latest PMD version.

Description:

A clear and concise description of what the bug is.

Exception Stacktrace:

# Copy-paste the stack trace here

Code Sample demonstrating the issue:


Steps to reproduce:

Please provide detailed steps for how we can reproduce the bug.

  1. ... (e.g. if you're using maven: mvn clean verify)
  2. ...

Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]

@suren39 suren39 added the a:bug PMD crashes or fails to analyse a file. label Aug 17, 2021
@adangel
Copy link
Member

adangel commented Aug 17, 2021

Unfortunately, you didn't give much context of what you are trying to do.

Since you are missing somehow the class "JavaTokenKinds", I assume, you are trying to compile pmd 7? (branch pmd/7.0.x).

Regardless of the version of PMD, the basic approach of how to build still holds true: See https://github.com/pmd/pmd/blob/master/BUILDING.md
See also https://github.com/pmd/pmd/wiki/Setup-IDE if you want to use a IDE.

If you run ./mvnw clean verify everything will simply work.

The class you are missing is generated - hence it is not in source control. After you have executed maven to build the project, you find the generated sources under pmd-java/target/generated-sources/javacc.

@oowekyala oowekyala added a:question Request for information that doesn't necessarily entail changes to the code base and removed a:bug PMD crashes or fails to analyse a file. labels Aug 24, 2021
@jsotuyod jsotuyod closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:question Request for information that doesn't necessarily entail changes to the code base
Projects
None yet
Development

No branches or pull requests

4 participants