Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in VS Code #481

Open
4 tasks done
JonnyBurger opened this issue Oct 12, 2024 · 2 comments
Open
4 tasks done

Crash in VS Code #481

JonnyBurger opened this issue Oct 12, 2024 · 2 comments
Labels
🙊 open/needs-repro This needs a reproduction 🤞 phase/open Post is being triaged manually

Comments

@JonnyBurger
Copy link

JonnyBurger commented Oct 12, 2024

Initial checklist

Affected packages and versions

1.8.11

Link to runnable example

No response

Steps to reproduce

Open a MDX in VS Code

Expected behavior

No Crash

Actual behavior

[Info  - 10:27:07] Connection to server got closed. Server will restart.
true
/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:41833
  const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression;
                                                    ^

TypeError: Cannot read properties of undefined (reading '0')
    at convertConfigFileToObject (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:41833:53)
    at parseOwnConfigOfJsonSourceFile (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:42667:16)
    at parseConfig (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:42566:97)
    at parseJsonConfigFileContentWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:42294:24)
    at Object.parseJsonSourceFileConfigFileContent (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:42263:18)
    at a (/Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:897:19013)
    at /Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:897:18633
    at $fe (/Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:85:5357)
    at d (/Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:85:12248)
    at S (/Users/jonathanburger/.vscode/extensions/unifiedjs.vscode-mdx-1.8.11/out/language-server.js:85:12018)

Affected runtime and version

code --version: 1.94.0 d78a74bcdfad14d5d3b1b782f87255d802b57511 arm64

Affected package manager and version

No response

Affected OS and version

No response

Build and bundle tools

Docusaurus

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Oct 12, 2024
@remcohaszing
Copy link
Member

Please provide a repo to reproduce the issue.

@remcohaszing remcohaszing added the 🙊 open/needs-repro This needs a reproduction label Oct 17, 2024
Copy link
Contributor

Hi! Thanks for taking the time to contribute! This has been marked by a maintainer as needing a reproduction: It’s not yet clear whether this is a problem. Here are a couple tips:

  • Thoroughly document how to reproduce the problem, in steps or with code
  • Don’t link to your complete project: make the repro as tiny as possible, preferrably with only the problematic project in question
  • Make sure you’re on the latest versions of projects (and node/npm/yarn!)
  • The best issue report is a failing test proving it

Thanks,
— bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙊 open/needs-repro This needs a reproduction 🤞 phase/open Post is being triaged manually
Development

No branches or pull requests

2 participants