Closed Icexist closed 6 months ago
In version 1.8.0-1.8.5 there was a bug that caused the language server to ignore the plugins
field. So it defaulted to ["remark-frontmatter", "remark-gfm"]
. That’s why this worked for you kind of by accident.
You should specify "remark-math"
, because it adds support for parsing the math syntax, but not "rehype-katex"
, as this only transforms the AST.
Do you have all those plugins installed in /home/xxxx/project
? In other words: Does /home/xxxx/project/node_modules/remark-frontmatter
exist and can you import remark-frontmatter
from /home/xxxx/project/some-script.mjs
? with the following contents:
import 'remark-frontmatter'
Hi! Thanks for taking the time to contribute! This has been marked by a maintainer as needing more info. It’s not clear yet whether this is an issue. Here are a couple tips:
Thanks, — bb
Verify that those (and more) are in node_modules:
I'm running Docusaurus, so i'm not fully clear on how to test the .mjs file, but these extensions work just fine in Docusaurus.
Still have the same problems after removing rehype-katex
- the extension can't find the modules.
Here's a fresh repository that shows the issue for me: https://github.com/Icexist/mdx-ext-debug
There is a file docs\test.mdx
that triggers the issue.
As a note, that repo was created on MacOS and showed the issue in VSCode there, so this isn't limited to Windows.
Thanks for the reproduction. I’m able to reproduce this on Linux too.
Hi! This was marked as ready to be worked on! Note that while this is ready to be worked on, nothing is said about priority: it may take a while for this to be solved.
Is this something you can and want to work on?
Team: please use the area/*
(to describe the scope of the change), platform/*
(if this is related to a specific one), and semver/*
and type/*
labels to annotate this. If this is first-timers friendly, add good first issue
and if this could use help, add help wanted
.
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
This was fixed in version 1.8.7 :tada:
Initial checklist
Affected packages and versions
v1.8.6
Link to runnable example
No response
Steps to reproduce
When using the MDX plugin in VSCode, set the tsconfig.json file to have any number of plugins and try to open an mdx file.
It works just fine with the 1.8.5 version (installed via "install other version" in vscode)
my
tsconfig.json
file:Expected behavior
MDX should work as expected.
Actual behavior
The MDX plugin crashes:
Runtime
No response
Package manager
No response
OS
Windows 10, running VSCode remote in a WSL2 instance. MDX plugin runs on the WSL instance.
Build and bundle tools
No response