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

Stuck on "GroovyLint is analyzing code" #157

Closed
kjr6721 opened this issue Jun 14, 2022 · 12 comments · Fixed by #159
Closed

Stuck on "GroovyLint is analyzing code" #157

kjr6721 opened this issue Jun 14, 2022 · 12 comments · Fixed by #159

Comments

@kjr6721
Copy link

kjr6721 commented Jun 14, 2022

Hello, thanks for making this extension!
I am trying to use it (and it works great on some of my files) but on two it is stuck on this message:
[{
"resource": ****,
"owner": "GroovyLint0",
"code": "GroovyLintWaiting",
"severity": 2,
"message": "GroovyLint is analyzing code...",
"source": "GroovyLint",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 1
}]

Any idea why this is happening on only some files and how I can fix it?

@verheyenkoen
Copy link

Same issue. Any progress?

@nvuillam
Copy link
Owner

nvuillam commented Aug 8, 2022

Hello
Please can you share what you see in VsCode tab "Output", category GrooyvLint ?

@kjr6721
Copy link
Author

kjr6721 commented Aug 8, 2022

Start analyzing file:///<File_Path>/<File_Name>.groovy
Completed analyzing file:///<File_Path>/<File_Name> in 1712 ms

@verheyenkoen
Copy link

Same here (bit faster though):

Start analyzing file:///Users/verheyenkoen/Projects/ugent/tools/groovy-linter/script.groovy
Completed analyzing file:///Users/verheyenkoen/Projects/ugent/tools/groovy-linter/script.groovy in 332 ms

@nvuillam
Copy link
Owner

nvuillam commented Aug 8, 2022

Would it be possible to share the groovy files you try to analyze so I can try to reproduce the problem locally ?

@kjr6721
Copy link
Author

kjr6721 commented Aug 8, 2022

Unfortunately I am unable to share the files

@verheyenkoen
Copy link

I'll email you the problematic script. It was the first file I opened upon installing on a cleanly installed laptop that caused this so I figured it was an installation problem but now I've opened a few more and then it works.

@nvuillam
Copy link
Owner

nvuillam commented Aug 8, 2022

thanks to @verheyenkoen 's script, I succeeded to reproduce.
The issue that that diagnostics are well sent to VsCode extension, but they are not displayed like with the other files, so the previous "fake" diagnostic saying that the lint is in progress is not replaced by the real errors

I investigate...

@nvuillam
Copy link
Owner

nvuillam commented Aug 8, 2022

Fixed it in v1.9.1 :) (you'll need to reload VsCode once the patch is automatically installed)

image

@verheyenkoen @kjr6721 please let me know if it's now ok on your side :)

If it is, don't hesitate to rate the extension -> https://marketplace.visualstudio.com/items?itemName=NicolasVuillamy.vscode-groovy-lint

@verheyenkoen
Copy link

@nvuillam That fixed it for me. Great work. Thanks very much!

@nvuillam
Copy link
Owner

nvuillam commented Aug 9, 2022

Thanks for your feedback:)

@shalev123d
Copy link

shalev123d commented Sep 21, 2023

Hi :) I Currently have this on the latest version as well, nothing on the output panel other than "Start analyzing file"

Edit -
Tried to downgrade to 1.9.1, and now getting -
CodeNarcServer was not running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants