valentinnodan / mdx-intellij-plugin

MIT License
8 stars 2 forks source link

I can't type changes in my file #11

Closed afharo closed 3 years ago

afharo commented 3 years ago

When I enabled the plugin in the latest version of WebStorm, it worked as expected.

Then I restarted it and the file stayed in the loading spinner forever.

image

I disabled the plugin, the file loads. I enable it, highlighting works but I can't type (for some reason I can delete to the right but not to the left) 🤷

Details about my installation:

WebStorm 2020.3.2
Build #WS-203.7148.54, built on January 25, 2021
Runtime version: 11.0.9.1+11-b1145.77 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7
GC: ParNew, ConcurrentMarkSweep
Memory: 8083M
Cores: 16
Registry: typescript.service.node.arguments=--max_old_space_size=9216
Non-Bundled Plugins: com.vecheslav.darculaDarkerTheme, org.toml.lang, ru.adelf.idea.dotenv, org.asciidoctor.intellij.asciidoc

MDX version installed: 1.1

prigara commented 3 years ago

Could you please share the IDE logs (menu Help - Collect Logs)? Thanks!

afharo commented 3 years ago

Sure thing! Here they are! Thank you!

webstorm-logs-20210202-143442.zip

prigara commented 3 years ago

Thanks! There's a bunch of exceptions related to Markdown. Any chance you can share your MDX file?

afharo commented 3 years ago

I think I can share this file (I'm getting errors in it as well)

docsSyntax.mdx.zip

Thanks again!

anstarovoyt commented 3 years ago

Simplified example:

* <DocLink />
* <DocLink />
anstarovoyt commented 3 years ago

the problem here is that the tag AST element was extended to the next line, while the parent element (list item) is a one-line only element.