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

Error "unable to resolve class Library" with npm-groovy-lint@15.0.1 #422

Open
geoffswift opened this issue Aug 30, 2024 · 6 comments
Open

Comments

@geoffswift
Copy link

Since 15.0.1 we see this error validating our Jenkins script:

Jenkinsfile.groovy
  0     error    Unknown parsing error: "Jenkinsfile.groovy: 1: unable to resolve class Library for annotation\n @ line 1, column 1.\n   @Library('ff-pipeline-lib@LKG') _\n   ^\n"  NglParseError

The problematic line of code looks like this:

  @Library('ff-pipeline-lib@LKG') _

I am using the "recommended-jenkinsfile" configuration.

I tried against these currently available versions:

15.0.0 - Good
15.0.1 - Bad
15.0.2 - Bad

@edwardtew
Copy link

I am also seeing this issue when using the latest code/container image

@dahorak
Copy link

dahorak commented Sep 2, 2024

We are facing the same issue.

@nvuillam
Copy link
Owner

nvuillam commented Sep 2, 2024

@geoffswift @edwardtew @dahorak Until we find a fix, you can try with --no-parse as workaround

@dahorak
Copy link

dahorak commented Sep 2, 2024

Thanks for your suggestion, we stick to the previous 15.0.0 version as a workaround.

@edwardtew
Copy link

We have pinned the version at 15.0.0 for now as well. Thanks for the suggestion @nvuillam

@Faisal-Bahoo
Copy link

Faisal-Bahoo commented Sep 12, 2024

We faced the same issue, but using version 15.0.0 served as a workaround for us.

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

5 participants