A new Grails language server for any LSP editor (Neovim, VS Code, Helix, Emacs): GORM finders, GSP pages, conventions
I've built a language server for Groovy and Grails, so you can get real Grails support outside IntelliJ. It compiles your code with your project's own Groovy and Grails jars, in one class loader per module, so it sees what Grails adds at compile time:
Controllers, services, domain classes, and taglibs get Grails's members, and
def bookServiceis typed as the service.GORM dynamic finders complete step by step, with their types, an explanation on hover, and a warning when GORM would reject them. Criteria and
whereblocks work too.View, template, layout, controller, and action names in strings complete, and go to definition jumps to their target.
GSP pages go through Grails's own
GroovyPageParserand get compiled, so${ }expressions show errors, completion, and hover, with model variables typed from the controllers.Go to definition and hover reach into library sources, both the jars' and the JDK's.
I did this to cater to my new job's demands, but also as an experiment in agentic coding, to see how far I could push existing LLM models in creating something functional in a domain that I do not have mastery in.
It started as a fork of groovy-language-server. It supports Groovy 2.5 to 6 and Grails 4 to 8. The tests run on a Grails 4 and a Grails 7 fixture project, and I measured it on five public projects from Grails 4 to 8. The README has setups for Neovim, VS Code, Helix, Emacs, and Zed, and Neovim users also get a plugin, grails.nvim.
Let me know what you think! If it fails on your project, an issue with your Grails and Groovy versions helps the most.
See also the discussion here https://github.com/apache/grails-core/discussions/13546
