Giter Club home page Giter Club logo

Comments (4)

matt-snow-deepsee avatar matt-snow-deepsee commented on June 20, 2024

@c-eberling did you ever get this working? I just reset my computer to factory settings and reinstalled everything, all to get the same error. My coworker has the same setup as far as we can tell and has had no issues.

from berry.

matt-snow-deepsee avatar matt-snow-deepsee commented on June 20, 2024

@c-eberling we found the solution that worked for us. it's a vscode setting called "typescript.tsserver.experimental.useVsCodeWatcher" that somehow got turned on by default, but didn't show up in the settings.json file. set it to false and reload your window. Hope this helps, and good luck.

from berry.

mjbvz avatar mjbvz commented on June 20, 2024

"typescript.tsserver.experimental.useVsCodeWatcher" that somehow got turned on by default,

VS Code turned this on as a default for all users on TS 5.4+. Since it's a new default, you won't see it in your settings json

For now you can turn the setting off in your user or workspace settings but the root cause is the yarn side and will need to be fixed here


Here's the exception that seems to cause the crash:

Error: Debug Failure. False expression: Should only call `IOSession.prototype.event` on an initialized IOSession
    at fail (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:4010:15)
    at Object.assert (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:4031:7)
    at IpcIOSession.event (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:497:32)
    at IpcIOSession.defaultEventHandler (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:189322:14)
    at _ProjectService.eventHandler (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:189225:83)
    at getOrCreateFileWatcher (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:184688:15)
    at Object.watchFile2 [as watchFile] (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:184657:12)
    at watchFile (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:122785:67)
    at Object.watchFile (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:122854:92)
    at createFileWatcherWithLogging (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:122827:44)
    at Object.watchFile (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:122804:283)
    at _ProjectService.watchPnpFile (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:187802:30)
    at new _ProjectService (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:184865:28)
    at new _Session (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/typescript.js:189254:27)
    at new IOSession (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:471:7)
    at new IpcIOSession (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:533:3)
    at startNodeSession (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:570:34)
    at start (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:630:3)
    at Object.<anonymous> (/Users/matb/projects/sandbox/.yarn/cache/typescript-patch-e22b0fdb7a-30879da4f4.zip/node_modules/typescript/lib/tsserver.js:647:1)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
    at require$$0.Module._extensions..js (/Users/matb/projects/sandbox/.pnp.cjs:8890:33)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at require$$0.Module._load (/Users/matb/projects/sandbox/.pnp.cjs:8735:31)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/Users/matb/projects/sandbox/.yarn/sdks/typescript/lib/tsserver.js:232:32)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:96:12)
    at node:internal/main/run_main_module:23:47'

from berry.

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.