nvuillam / vscode-groovy-lint

VSCode extension to lint , correct and format groovy and Jenkinsfile
https://nvuillam.github.io/vscode-groovy-lint/
MIT License
69 stars 18 forks source link

unable to resolve class groovy.json.JsonSlurper @ line 1, column 1. #248

Closed LmG7119 closed 1 week ago

LmG7119 commented 1 month ago

I have a test Groovy code and it runs but Lint is complaining that it can't resolve import. Any idea?

import groovy.json.JsonSlurper

jTest = '[{"key":"value", "key2":"value2"}]'
jsonParser = new JsonSlurper()
jsonObject = jsonParser.parseText(jTest)

println jsonObject.key
println jsonObject.key2
github-actions[bot] commented 3 weeks ago

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.