Julien-R44 / adonis-vscode-extension

💻 VSCode Extension for AdonisJS
https://marketplace.visualstudio.com/items?itemName=jripouteau.adonis-vscode-extension
MIT License
64 stars 5 forks source link

Error while fetching your routes ! (See output console for more details) #39

Open macro0000 opened 5 months ago

macro0000 commented 5 months ago

image

Error: Command failed with exit code 1: node --dns-result-order=ipv4first ace list:routes --json
node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at target._send (node:internal/child_process:879:20)
    at target.send (node:internal/child_process:752:19)
    at Application.notify (file:///D:/project-myself/server_wx_store/node_modules/.pnpm/@adonisjs+application@8.2.2_@adonisjs+config@5.0.2_@adonisjs+fold@10.1.2/node_modules/@adonisjs/application/build/chunk-WIOBO4NG.js:1171:15)
    at Application.start (file:///D:/project-myself/server_wx_store/node_modules/.pnpm/@adonisjs+application@8.2.2_@adonisjs+config@5.0.2_@adonisjs+fold@10.1.2/node_modules/@adonisjs/application/build/chunk-WIOBO4NG.js:1317:10)
    at async file:///D:/project-myself/server_wx_store/node_modules/.pnpm/@adonisjs+core@6.9.0_@adonisjs+assembler@7.6.1_@vinejs+vine@2.0.0/node_modules/@adonisjs/core/build/src/ignitor/ace.js:59:17
    at async #exec (file:///D:/project-myself/server_wx_store/node_modules/.pnpm/@poppinss+hooks@7.2.3/node_modules/@poppinss/hooks/build/index.js:77:24)
    at async Kernel.find (file:///D:/project-myself/server_wx_store/node_modules/.pnpm/@adonisjs+ace@13.0.0/node_modules/@adonisjs/ace/build/index.js:1728:5)
    at async #execMain (file:///D:/project-myself/server_wx_store/node_modules/.pnpm/@adonisjs+ace@13.0.0/node_modules/@adonisjs/ace/build/index.js:1450:23)
    at async AceProcess.handle (file:///D:/project-myself/server_wx_store/node_modules/.pnpm/@adonisjs+core@6.9.0_@adonisjs+assembler@7.6.1_@vinejs+vine@2.0.0/node_modules/@adonisjs/core/build/src/ignitor/ace.js:66:9)
Emitted 'error' event on process instance at:
    at node:internal/child_process:883:39
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
  errno: -4047,
  code: 'EPIPE',
  syscall: 'write'
}

Node.js v21.7.2
mattsimonis commented 3 months ago

Also running into this. Would love a fix.

mattsimonis commented 2 months ago

My issue ended up being a logger.info that weirdly only appears when the list:routes is run through this extension. So it threw off the JSON parsing because of a log at the tail.

ajayhada commented 1 month ago

Error: Command failed with exit code 1: node --dns-result-order=ipv4first ace list:routes --json

node:internal/modules/run_main:129 triggerUncaughtException( ^ Error: Failed to load native binding at Object. (c:\Projects\hello-world\node_modules\@swc\core\binding.js:333:11) at Module._compile (node:internal/modules/cjs/loader:1358:14) at Object..js (node:internal/modules/cjs/loader:1416:10) at Module.load (node:internal/modules/cjs/loader:1208:32) at Function._load (node:internal/modules/cjs/loader:1024:12) at Module.require (node:internal/modules/cjs/loader:1233:19) at require (node:internal/modules/helpers:179:18) at Object. (c:\Projects\hello-world\node_modules\@swc\core\index.js:49:17) at Module._compile (node:internal/modules/cjs/loader:1358:14) at Object..js (node:internal/modules/cjs/loader:1416:10) {

Error: Cannot find module './swc.win32-x64-msvc.node'
Require stack:
- c:\Projects\hello-world\node_modules\@swc\core\binding.js
- c:\Projects\hello-world\node_modules\@swc\core\index.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\transpilers\swc.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\index.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\esm.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\esm.mjs
    at Function.<anonymous> (node:internal/modules/cjs/loader:1145:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (c:\Projects\hello-world\node_modules\@cspotcode\source-map-support\source-map-support.js:811:30)
    at Function._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at requireNative (c:\Projects\hello-world\node_modules\@swc\core\binding.js:91:16)
    at Object.<anonymous> (c:\Projects\hello-world\node_modules\@swc\core\binding.js:306:17)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Object..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32),
Error: Cannot find module '@swc/core-win32-x64-msvc'
Require stack:
- c:\Projects\hello-world\node_modules\@swc\core\binding.js
- c:\Projects\hello-world\node_modules\@swc\core\index.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\transpilers\swc.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\index.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\esm.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\esm.mjs
    at Function.<anonymous> (node:internal/modules/cjs/loader:1145:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (c:\Projects\hello-world\node_modules\@cspotcode\source-map-support\source-map-support.js:811:30)
    at Function._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at requireNative (c:\Projects\hello-world\node_modules\@swc\core\binding.js:96:16)
    at Object.<anonymous> (c:\Projects\hello-world\node_modules\@swc\core\binding.js:306:17)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Object..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)

] }

Node.js v20.16.0

rbartholomay commented 1 month ago

I use the logger inside a preload file. And if this preload file will do some log output the extension can´t fetch the routes. The command node ace list:routes runs fine in the terminal!

Perhaps it´s an idea to disable the logger when the extension try to fetch the routes???

Bye, René