stimulus-lsp icon indicating copy to clipboard operation
stimulus-lsp copied to clipboard

Handle syntax errors when parsing controllers

Open marcoroth opened this issue 2 years ago • 1 comments

If the controllers in the users codebase have syntax errors they are currently just getting ignored.

We should add a diagnostic message to all files that couldn't be parsed by stimulus-parser

marcoroth avatar Oct 01 '23 18:10 marcoroth

stimulus-parser v0.0.8 now exposes a parseError field on controllerDefinition when encountering a syntax error while parsing a controller https://github.com/marcoroth/stimulus-parser/releases/tag/v0.0.8

marcoroth avatar Oct 02 '23 09:10 marcoroth