#The Astro VS Code extension has started crashing

16 messages ยท Page 1 of 1 (latest)

ancient creek
#

New behavior that happened after I booted up VS Code recently after not having used it for a while.

The Astro Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Terminal output attached.

edgy swift
#

The Astro compiler failed to parse one of your file in an unexpected way

#

If you could share your project, I'd be able to help debug

ancient creek
#

I figured as much after reading the issues on Github. Makes the extension crash in a highly unhelpful way. Could be as simple as an unbalanced quote. I cannot share the project, unfortunately.

#

Thank you for your kind offer.

#

I'm going to check out old commits in Git until it goes away. Best strategy I got ๐Ÿ™‚

edgy swift
#

Unfortunate, like I said in the unbalanced quote issue, we very rarely have crashes in that specific part so it doesn't handle errors very well, I'll try to find some time to make it more helpful and not crash until the upstream issue is fixed

ancient creek
#

Thank you. That'd be fantastic. If it could spit out the offending string would help a lot ๐Ÿ™‚

edgy swift
#

Probably wouldn't be able to do the string, but it could at least do the filename

ancient creek
#

Seems the extension is a bit less forgiving now. The syntax issues were checked in since April and the previous versions of the extension didn't crash then.

#

Cases like is is when it's good to have git bisect ๐Ÿ™‚

#

Missing end quote: <Redirect url="/new-url />

#

๐Ÿ˜„

edgy swift
#

Yeah, in 2.0 of the extension, we generally made the extension more "correct" which did fix a lot of problems, but also is a bit more strict

ancient creek
#

I was never a fan of the whole W3C compliance movement at the turn of the millennium and XHTML. Still isn't. HTML5 was the nail in the coffin for that kind of absolutism. Humans make mistakes. Software needs to tolerate us ๐Ÿ™‚

#

Thank you for a fantastic extension nonetheless and I hope you can make it produce slightly more useful error messages in the future ๐Ÿ™‚