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
GroovyLint: Unable to start CodeNarc Server [MacOS] #16
Comments
I never had anything Apple in my life... sorry i've not tested on it, but I can try to add Mac on the CircleCi job ^^ I think the issue is related to the CLI package npm-groovy-lint, which is embedded in the extension Please could you clone https://github.com/nvuillam/npm-groovy-lint then run
Then send me the log ? Thanks !
Just node >12 is necessary, as the runner embed jdeploy, who installs java if it is missing, and a few groovy release jars , so Groovy doesn't even needs to be installed :) |
EDIT: Original log seems a short summary - I now ran 2020-04-06T20_50_44_054Z-debug.log Log is attached, thanks for checking this! |
I apologize, I forgot that when you use npm-groovy-lint locally, you need to build the jdeploy bundle to be able to run it. The good order is :
Please can you try again ? Your test.out.zip should contain what i need to investigate (else tomorrow i'll borrow my girlfriend's macbook 😁 ) Note: I updated contribute instructions thanks to your remarks :) |
Thanks! I ran the following now:
And attached: test2.zip 🙏 |
Ok, so the good news is that most of the tests are passing
The bad news is that there is an execution error because of some permissions issue, and i know few about permission issues on MAC 😨
Can you try to add exec rights and try again ? or if the previous line did not work: I'll get my girlfriend's macbook today to try to reproduce |
After
test3.zip |
The thanks are for you, I really appreciate your time so the package can run on every platform :) I tried to build my first mac based CircleCI build, but it's not available on free plan :'( |
Thanks, at first it was down to 68 passing, but another |
Ok, that means that with your config, the CodeNarc Server can not be launched, but direct call to CodeNarc class is working ( but as it loads all jars at each call, it must be dramatically slow ) To avoid that, I use a tiny httpServer ( https://github.com/nvuillam/npm-groovy-lint/blob/master/groovy/src/main/com/nvuillam/CodeNarcServer.groovy ) so jars remain loaded, and only the first call has bad performances I detected the same issue with Linux on CircleCI builds , so there is some permission to manage somewhere for Linux & Mac ... What if you try |
|
Yes, it seems like a known Linux/macOS (aka OSX) issue - found these issues now:
I haven't installed the last 2 - should I? |
The related JARS are all embedded, no need to do more than npm install npm-groovy-lint -g :) |
Fix nvuillam/vscode-groovy-lint#16 - CodeNarcServer: use default InetSocketAddress instead of netAddress.localHost loopback value - CodeNarcServer: use multi-thread instead of single thread - Include Class-Path in MANIFEST instead of -cp argument - Fix jar compilation folder error - Activate KillServer test
Just released v0.7.0 containing npm-groovy-lint v4.0.0 :) |
Thank you so much for this quick fix! There's still something left - resembles #6 - LMK if we should continue there:
EDIT: (Only) the last error seems to repeat after visiting the file again (without changes - no new linting), if it may help you pinpoint the issue ;-) |
I created a new issue with your description :) I'll try to see how we can activate debug logs so we can have more complete info to investigate :) |
Hi, using version 0.6.3 on MacOS 10.15.4 with the following tool versions:
I'm getting this output message right after starting to lint:
I'd like to make it work please (and see if it may improve the linting & formatting performance...) - could you please help?
Thanks for publishing this promising extension! It'd be great if you could list all the required dependencies before installation please :)
The text was updated successfully, but these errors were encountered: