nvuillam / npm-groovy-lint

Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files using command line
https://nvuillam.github.io/npm-groovy-lint/
MIT License
193 stars 61 forks source link

CodeNarcServer unexpected error: Parse Error: Invalid status code #374

Open guilcy opened 4 weeks ago

guilcy commented 4 weeks ago

Hello,

I encounter following error message when using npm-groovy-lint on a debian 12. err.log

As I am not familiar at all with node technology, I am stuck.

Software versions involved: root@486be283f05f:/home/jenkins# npm-groovy-lint --version GroovyLint: Successfully processed CodeNarc: CodeNarc version 3.3.0 npm-groovy-lint version 14.6.0

Embeds: CodeNarc version 3.3.0

root@486be283f05f:/home/jenkins# npm list -g /usr/local/lib ├── corepack@0.28.1 ├── n@9.2.3 ├── npm-groovy-lint@14.6.0 └── npm@10.7.0

openjdk 17.0.11 2024-04-16 OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9) OpenJDK 64-Bit Server VM Temurin-17.0.11+9 (build 17.0.11+9, mixed mode)

On another docker image with debian 11, with openjdk autoinstalled by npm-groovy-lint, with all above same version installed, I do not have the error.

Can you help to figure out the problem ?

Details of the debian 12 package installed: apt-list.log

Maybe that was not the right place to share this problem (I am even not sure it is a npm-groovy-lint bug), apologize in that case just tell me where I should ask for support.

guilcy commented 4 weeks ago

I forgot to mention that the execution continues and seems properly terminating with expected detection done. The command line used to reproduce the issue is: npm-groovy-lint -i '/.git/' -o test.html scripts/*/.groovy Following command line does not shows errors: npm-groovy-lint -i '/.git/' scripts/*/.groovy

It seems the error is triggered by the use of "-o test.html" or "-o test.xml" on the command line. run with "-o test.txt" or "-o test.json" does not cause the error message