#VSCode addon is misbehaving completely

12 messages · Page 1 of 1 (latest)

tall drum
#

Hi! I recently found out about Astro and started experimenting with it. However, I can't get the VSCode addon to work properly.

Some of the problems:

  • Syntax highlighting is off. Random stuff are highlighted incorrectly (see screenshot)
  • Errors are being shown at random positions throughout the file, unrelated to the line marked.
  • Actual errors are not reported or marked.
  • I'm getting no Intellisense at all. Imports are not detected, constants defined in the frontmatter aren't detected, etc.

I assume I'm doing something wrong, but I'm not even sure where to begin. Has anyone else encounter the same issues? What can I do about this?

#

Another thing I noticed: the addon's output is spitting an error like this every time I save .astro files:

Successfully initialized! 🚀
Error: Could not find source file: 'd:/Programming/Web/astro-test/src/components/Navbar.astro.__script0.ts'.
cold mauve
#

Which version of the extension are you using?

tall drum
#

0.29.7, which I believe is the latest

cold mauve
#

Ah, so the pre release beta

tall drum
#

Ah, I see. Apologies, I didn't realize it was a beta version. I just installed what showed up in vscode

#

What version should I use, then?

cold mauve
#

You should have a button to switch between the pre release and the normal release

#

On the extension page

tall drum
#

I also tried downloading the .vsix file manually and installing, but the same thing happens