nix-community / nix-vscode-extensions

Nix expressions for VSCode and OpenVSX extensions [maintainers: @deemp, @AmeerTaweel]
MIT License
169 stars 9 forks source link

@parcel/watcher prebuild not found in nrwl.angular-console #40

Closed sarahec closed 11 months ago

sarahec commented 11 months ago

I'm attempting to get the nx console to work. The console opens, but then throws up error about its client not working. The console is inoperable after that.

Error: No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-linux-x64-glibc. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher.
    at Object.<anonymous> (/nix/store/hpxn0nksskra5x476x1dab5abpi5l706-vscode-extension-nrwl-angular-console-18.6.0/share/vscode/extensions/nrwl.angular-console/node_modules/@parcel/watcher/index.js:25:13)
    at Module._compile (node:internal/modules/cjs/loader:1188:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1243:10)
    at Module.load (node:internal/modules/cjs/loader:1058:32)
    at Module._load (node:internal/modules/cjs/loader:893:12)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1082:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/nix/store/hpxn0nksskra5x476x1dab5abpi5l706-vscode-extension-nrwl-angular-console-18.6.0/share/vscode/extensions/nrwl.angular-console/nxls/main.js:776:22675)
    at Module._compile (node:internal/modules/cjs/loader:1188:14)
[Error - 11:25:43 AM] The Nx Console Client server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 11:25:43 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 11:25:43 AM] Nx Console Client client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 11:25:43 AM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 

Installing a local or global copy of @parcel/watcher doesn't help. See also https://github.com/nrwl/nx-console/issues/1808

sarahec commented 11 months ago

Possibly a nixpkgs issue w/ nodePackages.parcel:

error: builder for '/nix/store/blvhwvc2mj55h4zrdcyyg5n50znvr52x-parcel-2.9.3.drv' failed with exit code 2;
       last 10 log lines:
       > ./parcel/node_modules/sshpk/bin/sshpk-conv: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/5275fpjjrr73q80qbsag4ajnpyps4d1y-nodejs-18.17.0/bin/node"
       > ./parcel/node_modules/sshpk/bin/sshpk-sign: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/5275fpjjrr73q80qbsag4ajnpyps4d1y-nodejs-18.17.0/bin/node"
       > ./parcel/node_modules/node-addon-api/tools/conversion.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/5275fpjjrr73q80qbsag4ajnpyps4d1y-nodejs-18.17.0/bin/node"
       > ./parcel/node_modules/@parcel/watcher/node_modules/node-addon-api/tools/conversion.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/5275fpjjrr73q80qbsag4ajnpyps4d1y-nodejs-18.17.0/bin/node"
       > ./parcel/node_modules/acorn/bin/acorn: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/5275fpjjrr73q80qbsag4ajnpyps4d1y-nodejs-18.17.0/bin/node"
       > ./parcel/node_modules/update-browserslist-db/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/5275fpjjrr73q80qbsag4ajnpyps4d1y-nodejs-18.17.0/bin/node"
       > ./parcel/node_modules/acorn-globals/node_modules/acorn/bin/acorn: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/5275fpjjrr73q80qbsag4ajnpyps4d1y-nodejs-18.17.0/bin/node"
       > ./parcel/lib/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/5275fpjjrr73q80qbsag4ajnpyps4d1y-nodejs-18.17.0/bin/node"
       > sed: can't read node_modules/node-gyp-build/bin.js: No such file or directory
       > /nix/store/rk3g4mxrs84bv1vanqnzpdkhm73ksr0z-stdenv-linux/setup: line 144: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/blvhwvc2mj55h4zrdcyyg5n50znvr52x-parcel-2.9.3.drv'.
deemp commented 11 months ago

@sarahec, please, provide a flake with a reproduction.

sarahec commented 11 months ago

I found the build result and confirmed that all the pieces are there, so this build is running correctly. I'm going to close this bug and follow up on the nx side.

sarahec commented 11 months ago

Closed, not a nix build problem.