Tools: ๐Ÿ› project-rome/@internal/core/server/WorkerManager.ts:323:5 internalError/fatal INTERNAL

Created on 8 Sep 2020  ยท  4Comments  ยท  Source: rome/tools


In VSCode, it throws fatal errors when I try to save a file: project-rome/@internal/core/server/WorkerManager.ts:323:5 internalError/fatal INTERNAL.

Environment

$ rome rage --summary

Environment Variables
  Object {
    COLORFGBG: "15;0"
    COLORTERM: "truecolor"
    LANG: "en_US.UTF-8"
    TERM: "xterm-256color"
    TERM_PROGRAM: "iTerm.app"
  }

User Config
  unset

Rome Version
  10.0.4-beta

Node Version
  12.18.3

Platform
  darwin x64 19.6.0

Terminal Features
  Object {
    background: "dark"
    colorDepth: 24
    columns: 247
    cursor: true
    hyperlinks: true
    isTTY: true
    unicode: true
  }

Client Flags
  Object {
    clientName: "cli"
    cwd: "/Users/josephspurrier/godev/mithril-template"
    realCwd: "/Users/josephspurrier/godev/mithril-template"
    silent: false
  }

Server Status
  Object {
    projects: Array [
      Object {id: 0}
      Object {id: 1}
    ]
    server: Object {
      heapTotal: 140_189_696
      pid: 55_531
      uptime: 1.353742743
    }
    workers: Array [
      Object {
        astCacheSize: 0
        heapTotal: 140_189_696
        ownedBytes: 0
        ownedFileCount: 0
        pid: 55_531
        uptime: 1.353627016
      }
    ]
  }

Steps To Reproduce


  1. Clone this repository: https://github.com/josephspurrier/mithril-template
  2. CD to the repo
  3. Run: npm install -g rome and npm install -S rome.
  4. Install the VSCode extension
  5. Open VSCode
  6. Open the src/index.ts
  7. Paste in a bunch of newlines somewhere and hit Save.
  8. View the Output -> Rome tab:
Discovered Rome path /Users/josephspurrier/godev/mithril-template/node_modules/rome/bin/rome/index.js
Opened: /Users/josephspurrier/godev/mithril-template/src/index.ts
! Worker 4 has not responded for 5s seconds. It is unlikely to become responsive. Currently
  processing:

 project-rome/@internal/core/common/file-handlers/index.ts:97:8 internalError/request โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

  ร— No file handler found for
    '/Users/josephspurrier/godev/mithril-template/node_modules/fsevents/fsevents.node'

   1. ___R$project$rome$$internal$core$common$file$handlers$index_ts$getFileHandlerFromPathAssert
      (project-rome/@internal/core/common/file-handlers/index.ts:97:8)
   2. ___R$project$rome$$internal$core$worker$Worker_ts$default.parse (
      project-rome/@internal/core/worker/Worker.ts:416:20)
   3. parse (project-rome/@internal/core/worker/WorkerAPI.ts:238:15)
   4. ___R$project$rome$$internal$diagnostics$wrap_ts$catchDiagnostics (
      project-rome/@internal/diagnostics/wrap.ts:29:22)
   5. ___R$project$rome$$internal$core$worker$WorkerAPI_ts$default.analyzeDependencies (
      project-rome/@internal/core/worker/WorkerAPI.ts:237:28)
   6. analyzeDependencies (project-rome/@internal/core/worker/Worker.ts:214:19)
   7. ___R$project$rome$$internal$events$BridgeEvent_ts$default.call (
      project-rome/@internal/events/Event.ts:75:4)
   8. ___R$project$rome$$internal$events$BridgeEvent_ts$default.dispatchRequest (
      project-rome/@internal/events/BridgeEvent.ts:97:15)
   9. ___R$project$rome$$internal$core$common$bridges$WorkerBridge_ts$default.handleMessageRequest
       (project-rome/@internal/events/Bridge.ts:517:16)
  10. ___R$project$rome$$internal$core$common$bridges$WorkerBridge_ts$default.handleMessage (
      project-rome/@internal/events/Bridge.ts:467:9)
  11. process.handleMessage (project-rome/@internal/events/bridgeCreators.ts:286:10)
  12. process.emit (events.js:203:12)
  13. emit (internal/child_process.js:876:11)
  14. process.processTicksAndRejections (internal/process/task_queues.js:77:10)

  i Error occurred while requesting analyzeDependencies for
    mithril-template/fsevents/fsevents.node

 worker 1 project-rome/@internal/core/server/WorkerManager.ts:323:5 internalError/fatal  INTERNAL
FATAL  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

  ร— Process unexpectedly exit

  1. ChildProcess.<anonymous> (project-rome/@internal/core/server/WorkerManager.ts:323:5)
  2. Object.onceWrapper (events.js:291:19)
  3. ChildProcess.emit (events.js:203:12)
  4. Process.onexit (internal/child_process.js:272:11)

  ! Rome exited as this error could not be handled and resulted in a fatal error. Please report if
    necessary.

 worker 2 project-rome/@internal/core/server/WorkerManager.ts:323:5 internalError/fatal  INTERNAL
FATAL  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

  ร— Process unexpectedly exit

  1. ChildProcess.<anonymous> (project-rome/@internal/core/server/WorkerManager.ts:323:5)
  2. Object.onceWrapper (events.js:291:19)
  3. ChildProcess.emit (events.js:203:12)
  4. Process.onexit (internal/child_process.js:272:11)

  ! Rome exited as this error could not be handled and resulted in a fatal error. Please report if
    necessary.

 worker 3 project-rome/@internal/core/server/WorkerManager.ts:323:5 internalError/fatal  INTERNAL
FATAL  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

  ร— Process unexpectedly exit

  1. ChildProcess.<anonymous> (project-rome/@internal/core/server/WorkerManager.ts:323:5)
  2. Object.onceWrapper (events.js:291:19)
  3. ChildProcess.emit (events.js:203:12)
  4. Process.onexit (internal/child_process.js:272:11)

  ! Rome exited as this error could not be handled and resulted in a fatal error. Please report if
    necessary.

 worker 4 project-rome/@internal/core/server/WorkerManager.ts:323:5 internalError/fatal  INTERNAL
FATAL  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

  ร— Process unexpectedly exit

  1. ChildProcess.<anonymous> (project-rome/@internal/core/server/WorkerManager.ts:323:5)
  2. Object.onceWrapper (events.js:291:19)
  3. ChildProcess.emit (events.js:203:12)
  4. Process.onexit (internal/child_process.js:272:11)

  ! Rome exited as this error could not be handled and resulted in a fatal error. Please report if
    necessary.


Expected Results

I expected it to autoformat on save. It does show lint errors though.

image

unconfirmed

All 4 comments

Hi @josephspurrier , we strongly suggest to not install rome globally.

About the issue, have you tried to run npx rome init first? Or having a valid configuration? The issue is clear and I know how to fix it (there's a .node file in your deps that rome doesn't know how to handle), it's strange though that rome tries to work on your node modules.

Ah npx rome init, that's how you get it to run without being installed ;-) Do you have a common pitfalls page or wiki to help with troubleshooting (I'm just going to start deleting files until I get it to work)?

Awesome work by the way, this is what the ecosystem needs.

We don't unfortunately, but we are working on reviewing the documentation as we made some wrong assumptions when we wrote them.

It looks like removing the webpack.config.json file fixes this error: https://github.com/josephspurrier/mithril-template/blob/master/webpack.config.js.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kelbie picture Kelbie  ยท  4Comments

jamiebuilds picture jamiebuilds  ยท  5Comments

VictorHom picture VictorHom  ยท  3Comments

ghost picture ghost  ยท  5Comments

yoshixmk picture yoshixmk  ยท  4Comments