Giter Club home page Giter Club logo

Comments (6)

nic-vo avatar nic-vo commented on July 17, 2024 2

I have the same issue. Wasn't related to any extension; error is caused by VSCode's internal TypeScript server, I think.

Potential workaround: lock TypeScript to anything up to 5.4.3, then restart VSCode.

This problem has popped up in a few of my repos when opened in VSCode. Common features for all those problematic repos:

  • Yarn PnP w/ @yarnpkg/sdks vscode
  • Next.js
  • TailwindCSS
  • React
  • TypeScript

As mentioned above, I found that locking TypeScript to 5.4.3, re-running @yarnpkg/sdks vscode, and restarting VSCode fixed the issue for me in all problematic repos. Luckily, none of the improvements / fixes from 5.4.4 & 5.4.5 impact my use case, but YMMV. Technically, I didn't check if the error persisted without re-running @yarnpkg/sdks vscode, so this doesn't distinguish if the error comes from TypeScript alone or TypeScript + yarn's PnP SDK

from vscode.

mattjs avatar mattjs commented on July 17, 2024 1

Yep, I'm using [email protected]. Everything was working with the setup for some weeks and then stopped.

from vscode.

mjbvz avatar mjbvz commented on July 17, 2024 1

Thanks. This is caused by yarn. Relevant upstream issue: yarnpkg/berry#6270

from vscode.

mjbvz avatar mjbvz commented on July 17, 2024

@mattjs Are you using yarn?

from vscode.

mattjs avatar mattjs commented on July 17, 2024

Heres the error log and the detailed one

2024-05-27 10:10:24.122 [info] Starting TS Server
2024-05-27 10:10:24.122 [info] Using tsserver from: /Users/mattjs/personal/metapod/.yarn/sdks/typescript/lib/tsserver.js
2024-05-27 10:10:24.122 [info] <syntax> Forking...
2024-05-27 10:10:24.122 [info] <syntax> Starting...
2024-05-27 10:10:24.122 [info] <semantic> Forking...
2024-05-27 10:10:24.122 [info] <semantic> Starting...
2024-05-27 10:10:24.302 [error] TSServer exited. Code: 1. Signal: null
Info 0    [10:12:41.982] Starting TS Server
Info 1    [10:12:41.982] Version: 5.4.5
Info 2    [10:12:41.982] Arguments: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/mattjs/personal/metapod/.yarn/sdks/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/rt/lgkklv896c3bkzwx9zb0kwzm0000gn/T/vscode-typescript501/e1329c237ffbcb4c796c/tscancellation-057189836a3a0f7ca237.tmp* --logVerbosity verbose --logFile /Users/mattjs/Library/Application Support/Code/logs/20240526T193704/window1/exthost/vscode.typescript-language-features/tsserver-log-OKrjsj/tsserver.log --locale en --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc
Info 3    [10:12:41.982] Platform: darwin NodeVersion: v18.18.2 CaseSensitive: true
Info 4    [10:12:41.982] ServerMode: undefined hasUnknownServerMode: undefined
Info 5    [10:12:41.984] Binding...
Info 6    [10:12:41.985] FileWatcher:: Added:: WatchInfo: /Users/mattjs/personal/metapod/.pnp.cjs 250 undefined WatchType: Config file

from vscode.

nic-vo avatar nic-vo commented on July 17, 2024

Ah yes, FWIW I was using Yarn 4.1.x - 4.2.2 for all the problematic repos

from vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.