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 [email protected] #422

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

Error "unable to resolve class Library" with [email protected] #422

geoffswift opened this issue Aug 30, 2024 · 15 comments

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.

Copy link

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

@joshzcold
Copy link

Bump. Don't close please

@ajs139
Copy link

ajs139 commented Oct 13, 2024

Same issue, using 15.0.0.

@matt-undo
Copy link

Yes, this issue prevents us from using a newer version. Please fix! Thank you!

@nvuillam
Copy link
Owner

I know I know... that's hard to find time these days ^^

Anyone is welcome to try bia a PR :)

Copy link

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

@moni-gomspace
Copy link

I still would like to see this issue resolved

@yermulnik
Copy link

yermulnik commented Nov 18, 2024

Running npm-groovy-lint via https://github.com/super-linter/super-linter bundle which has upgraded it to 15.0.2 yesterday and now we're hitting the below:

    0     error    Unknown parsing error: "/github/workspace/ami_build/Jenkinsfile: 2: unable to resolve class Library for annotation
   @ line 2, column 1.
     @Library('shared-library') _
     ^
  "  NglParseError

@alexanderbazhenoff
Copy link

Is there any way to disable them via groovylintrc.json?

ferrarimarco added a commit to super-linter/super-linter that referenced this issue Nov 27, 2024
ferrarimarco added a commit to super-linter/super-linter that referenced this issue Nov 27, 2024
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