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

CodeNarcServer was not running after install #224

Closed
lightheaded opened this issue Apr 16, 2024 · 5 comments
Closed

CodeNarcServer was not running after install #224

lightheaded opened this issue Apr 16, 2024 · 5 comments

Comments

@lightheaded
Copy link

Hi!

Here's my env:

openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode)
~ node --version
v18.18.2
~ sw_vers
ProductName:		macOS
ProductVersion:		14.4.1
BuildVersion:		23E224

I installed the latest extension on VSCode Version: 1.88.0 (Universal) and opening any Groovy file, I get an error:

Start analyzing file:///<path>/Jenkinsfile
Unable to start CodeNarc server: {"status":1,"stdout":"","stderr":"","childJavaProcess":{"_events":{},"_eventsCount":2,"_closesNeeded":1,"_closesGot":1,"connected":false,"signalCode":null,"exitCode":1,"killed":false,"spawnfile":"java","_handle":null,"spawnargs":["java","-Xms256m","-Xmx2048m","-jar","/Users/<user>/.vscode/extensions/nicolasvuillamy.vscode-groovy-lint-3.2.3/server/node_modules/npm-groovy-lint/lib/java/CodeNarcServer.jar","--server"],"pid":49367,"stdin":null,"stdout":null,"stderr":null,"stdio":[null,null,null]}}
["--server"]
GroovyLint: Error running CodeNarc: 

===========================================================================
===========================================================================
npm-groovy-lint error: Fatal error while calling CodeNarc
Reason: unknown

undefined
If you still have an error, post an issue to get help: https://github.com/nvuillam/vscode-groovy-lint/issues
===========================================================================
===========================================================================
CodeNarcServer was not running
Start analyzing file:///<path>/Jenkinsfile
Unable to start CodeNarc server: {"status":1,"stdout":"","stderr":"","childJavaProcess":{"_events":{},"_eventsCount":2,"_closesNeeded":1,"_closesGot":1,"connected":false,"signalCode":null,"exitCode":1,"killed":false,"spawnfile":"java","_handle":null,"spawnargs":["java","-Xms256m","-Xmx2048m","-jar","/Users/<user>/.vscode/extensions/nicolasvuillamy.vscode-groovy-lint-3.2.3/server/node_modules/npm-groovy-lint/lib/java/CodeNarcServer.jar","--server"],"pid":50395,"stdin":null,"stdout":null,"stderr":null,"stdio":[null,null,null]}}
["--server"]
GroovyLint: Error running CodeNarc: 

===========================================================================
===========================================================================
npm-groovy-lint error: Fatal error while calling CodeNarc
Reason: unknown

undefined
If you still have an error, post an issue to get help: https://github.com/nvuillam/vscode-groovy-lint/issues
===========================================================================
===========================================================================
CodeNarcServer was not running
CodeNarcServer was not running
CodeNarcServer was not running
CodeNarcServer was not running
Start analyzing file:///<path>/Jenkinsfile
Unable to start CodeNarc server: {"status":1,"stdout":"","stderr":"","childJavaProcess":{"_events":{},"_eventsCount":2,"_closesNeeded":1,"_closesGot":1,"connected":false,"signalCode":null,"exitCode":1,"killed":false,"spawnfile":"java","_handle":null,"spawnargs":["java","-Xms256m","-Xmx2048m","-jar","/Users/<user>/.vscode/extensions/nicolasvuillamy.vscode-groovy-lint-3.2.3/server/node_modules/npm-groovy-lint/lib/java/CodeNarcServer.jar","--server"],"pid":52336,"stdin":null,"stdout":null,"stderr":null,"stdio":[null,null,null]}}
["--server"]
GroovyLint: Error running CodeNarc: 

===========================================================================
===========================================================================
npm-groovy-lint error: Fatal error while calling CodeNarc
Reason: unknown

undefined
If you still have an error, post an issue to get help: https://github.com/nvuillam/vscode-groovy-lint/issues
===========================================================================
===========================================================================
Start analyzing file:///<path>/Jenkinsfile
/Users/<user>/.vscode/extensions/nicolasvuillamy.vscode-groovy-lint-3.2.3/server/node_modules/npm-groovy-lint/lib/analytics.js:41
                resolve();
                ^

TypeError: resolve is not a function
    at /Users/<user>/.vscode/extensions/nicolasvuillamy.vscode-groovy-lint-3.2.3/server/node_modules/npm-groovy-lint/lib/analytics.js:41:17
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.18.2
[Error - 15:00:06] Server process exited with code 1.
[Info  - 15:00:06] Connection to server got closed. Server will restart.
true
Start analyzing file:///<path>/Jenkinsfile
Unable to start CodeNarc server: {"status":1,"stdout":"","stderr":"","childJavaProcess":{"_events":{},"_eventsCount":2,"_closesNeeded":1,"_closesGot":1,"connected":false,"signalCode":null,"exitCode":1,"killed":false,"spawnfile":"java","_handle":null,"spawnargs":["java","-Xms256m","-Xmx2048m","-jar","/Users/<user>/.vscode/extensions/nicolasvuillamy.vscode-groovy-lint-3.2.3/server/node_modules/npm-groovy-lint/lib/java/CodeNarcServer.jar","--server"],"pid":52353,"stdin":null,"stdout":null,"stderr":null,"stdio":[null,null,null]}}
["--server"]
GroovyLint: Error running CodeNarc: 

===========================================================================
===========================================================================
npm-groovy-lint error: Fatal error while calling CodeNarc
Reason: unknown

undefined
If you still have an error, post an issue to get help: https://github.com/nvuillam/vscode-groovy-lint/issues
===========================================================================
===========================================================================

Any help would be appreciated. I hear only good things about this plugin.

@nvuillam
Copy link
Owner

Please can you try to install npm-groovy-lint ( npm i npm-groovy-lint -g ) and run it at the root of your repo , and post logs here ?

@lightheaded
Copy link
Author

Sure:

> npm i npm-groovy-lint -g

added 91 packages in 4s

6 packages are looking for funding
  run `npm fund` for details
Reshimming asdf nodejs...
>  npm-groovy-lint Jenkinsfile 
Unable to start CodeNarc server: {"status":1,"stdout":"","stderr":"","childJavaProcess":{"_events":{},"_eventsCount":2,"_closesNeeded":1,"_closesGot":1,"connected":false,"signalCode":null,"exitCode":1,"killed":false,"spawnfile":"java","_handle":null,"spawnargs":["java","-Xms256m","-Xmx2048m","-jar","/Users/tom/.asdf/installs/nodejs/18.18.2/lib/node_modules/npm-groovy-lint/lib/java/CodeNarcServer.jar","--server"],"pid":41318,"stdin":null,"stdout":null,"stderr":null,"stdio":[null,null,null]}}
["--server"]
GroovyLint: Error running CodeNarc:

@nvuillam
Copy link
Owner

nvuillam commented May 8, 2024

@lightheaded please can you check with the new version i released today ? :)

@lightheaded
Copy link
Author

Installed extension v3.3.1, also did npm i npm-groovy-lint -g again. The same problem:

CodeNarcServer was not running
Unable to start CodeNarc server: {"status":1,"stdout":"","stderr":"","childJavaProcess":{"_events":{},"_eventsCount":2,"_closesNeeded":1,"_closesGot":1,"connected":false,"signalCode":null,"exitCode":1,"killed":false,"spawnfile":"/Users/tom/.java-caller/jre/jdk-17.0.10+7-jre/Contents/Home/bin/java","_handle":null,"spawnargs":["/Users/tom/.java-caller/jre/jdk-17.0.10+7-jre/Contents/Home/bin/java","-Xms256m","-Xmx2048m","-jar","/Users/tom/.vscode/extensions/nicolasvuillamy.vscode-groovy-lint-3.3.1/server/node_modules/npm-groovy-lint/lib/java/CodeNarcServer.jar","--server"],"pid":57735,"stdin":null,"stdout":null,"stderr":null,"stdio":[null,null,null]}}
["--server"]
GroovyLint: Error running CodeNarc: 

===========================================================================
===========================================================================
npm-groovy-lint error: Fatal error while calling CodeNarc
Reason: unknown

undefined
If you still have an error, post an issue to get help: https://github.com/nvuillam/vscode-groovy-lint/issues
===========================================================================
===========================================================================
CodeNarcServer was not running
CodeNarcServer was not running
CodeNarcServer was not running
CodeNarcServer was not running

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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants