wallabyjs / console-ninja

Repository for Console Ninja questions and issues
https://console-ninja.com
Other
385 stars 22 forks source link

[Bug]: Why console ninja not cu #321

Closed nalfin closed 4 months ago

nalfin commented 4 months ago

What happened?

I've been looking for a solution to solve why my ninja console isn't running in vs code, and have done the suggested solutions but they don't work at all.

here is the last trace.log of my ninja console. and what makes it not work? and what should I do?

Version

v1.0.330

CLI command to start your dev tool

npm run dev

Steps to reproduce (or sample repo)

https://github.com/nalfin/pembukuan-ts-1.0

Log output

06:15:01.471 info host ------------ starting ------------
06:15:01.484 info extension host process output: port:[56551]
06:15:01.484 info extension 
06:15:01.493 info host client connected: extension { address: '127.0.0.1', family: 'IPv4', port: 56551 }
06:15:01.540 info host starting host: {"extensionFolder":"/Users/zainalarifin/.vscode/extensions/wallabyjs.console-ninja-1.0.330","runtimeHookFile":"/Users/zainalarifin/.vscode/extensions/wallabyjs.console-ninja-1.0.330/out/runtimeHook/tracer.js","globalErrorHandlerFile":"/Users/zainalarifin/.vscode/extensions/wallabyjs.console-ninja-1.0.330/out/runtimeHook/errorHandler.js","networkLoggingHandlerFile":"/Users/zainalarifin/.vscode/extensions/wallabyjs.console-ninja-1.0.330/out/runtimeHook/networkLoggingHandler.js","filesToInstrument":[{"path":"/volumes/desain/turi squad/crud/pembukuan 17-an 2024/pembukuan-ts-1.0/src/pages/auth/login.tsx","autoLogPoints":[{"range":{"startLine":81,"endLine":81,"startColumn":0,"endColumn":0}}],"reason":"autoLogPoints"},{"path":"/Volumes/DESAIN/TURI SQUAD/CRUD/PEMBUKUAN 17-an 2024/pembukuan-ts-1.0/src/pages/index.tsx","reason":"open"},{"path":"/Volumes/DESAIN/TURI SQUAD/CRUD/PEMBUKUAN 17-an 2024/pembukuan-ts-1.0/src/pages/auth/login.tsx","reason":"open"},{"path":"/Volumes/DESAIN/TURI SQUAD/CRUD/PEMBUKUAN 17-an 2024/pembukuan-ts-1.0/src/pages/dashboard/index.tsx","reason":"open"},{"path":"/Volumes/DESAIN/TURI SQUAD/CRUD/PEMBUKUAN 17-an 2024/pembukuan-ts-1.0/src/middleware.ts","reason":"open"}],"debug":false,"config":{"dateTimeFormat":"HH:mm:ss.SSS","dateTimeDisplayMode":"Absolute","installBinToPath":true,"openLinksInEditor":true,"maxLogViewerEntries":15000,"showWelcomeMessageInTools":true,"fontSize":10,"autoClearLogViewerOnFileChanges":true,"outputMode":"In View","captureFunctions":false,"searchUrl":"https://www.google.com/search?q={query}","enableProFeatures":false,"toolsToAutoPatch":["vite","angular","jest","webpack","next.js","nest.js","cypress","http-server","serve","live-server","nuxt","remix","qwik","hydrogen","serverless","astro","live-server-extension","live-preview-extension"],"showErrors":true,"showLogsOnlyFromOpenedFiles":false,"showLogsFromLogPointsOnly":false,"showLogsFromMultipleRunningToolsTogether":false,"predictiveLoggingEnabled":true,"allowConsoleLogToTriggerPredictions":false,"showNetworkRequests":true},"allowedHosts":["localhost","127.0.0.1","example.cypress.io","Zainals-iMac-Pro.local","192.168.0.105"],"host":"127.0.0.1","forcedStart":true,"startTime":1721776501141}
06:15:01.560 info host starting tools discovery and integration
06:15:01.567 info host looking for tools to patch
06:15:01.659 info host worker Starting Host Worker...
06:15:03.042 info host found 4 tool file(s) to patch
06:15:03.043 info host patching /Users/zainalarifin/.vscode/extensions/ritwickdey.liveserver-5.7.9/node_modules/live-server/index.js
06:15:03.044 info host patching /Users/zainalarifin/.vscode/extensions/ms-vscode.live-server-0.4.14/out/extension.js
06:15:03.047 info host patching /volumes/desain/turi squad/crud/pembukuan 17-an 2024/pembukuan-ts-1.0/node_modules/next/dist/compiled/webpack/bundle5.js
06:15:03.048 info host patching /volumes/desain/turi squad/crud/pembukuan 17-an 2024/pembukuan-ts-1.0/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js
06:15:03.222 WARN host could not modify /volumes/desain/turi squad/crud/pembukuan 17-an 2024/pembukuan-ts-1.0/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js file
06:15:03.237 WARN host could not modify /volumes/desain/turi squad/crud/pembukuan 17-an 2024/pembukuan-ts-1.0/node_modules/next/dist/compiled/webpack/bundle5.js file
06:15:03.238 info host Host's startup and patch time: 2097 ms
06:15:03.238 info host completed tools discovery and integration
06:15:03.240 ERR! host uncaught exception: No clients connected
smcenlly commented 4 months ago

Thanks for the sample repo. It's working for us:

image

This is what we did:

  1. Clone your repo
  2. Install dependencies with npm install
  3. Start your project with npm run dev
  4. Open the project URL using the localhost link

Your log file indicates that Console Ninja could not modify some node_modules folders that it needs to patch in order to operate:

06:15:03.222 WARN host could not modify /volumes/desain/turi squad/crud/pembukuan 17-an 2024/pembukuan-ts-1.0/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js file
06:15:03.237 WARN host could not modify /volumes/desain/turi squad/crud/pembukuan 17-an 2024/pembukuan-ts-1.0/node_modules/next/dist/compiled/webpack/bundle5.js file

Could you please try to clone your project and follow our steps to reproduce in a folder within your home directory? e.g. /Users/zainalarifin/temp/pembukuan?

I'm assuming that there's something environmental that is not allowing Console Ninja to write to the /volumes/desain/turi squad/crud/pembukuan 17-an 2024... directory.

nalfin commented 4 months ago

Cool! Thanks

smcenlly commented 4 months ago

@nalfin - did you fix your problem?