wallabyjs/console-ninja

[Bug]: Extension not working even though i have the project running

Closed this issue · 2 comments

What happened?

I was expecting Console ninja outputs to happen but instead nothing happened.

Version

v1.0.358

CLI command to start your dev tool

yarn dev

Steps to reproduce (or sample repo)

i have a vite project on and i just run yarn dev. but i get this

Console Ninja is waiting for vite to start. Console Ninja has successfully integrated with vite found in your project dependencies, but has not connected to a running instance of it yet.

What to do next
You may now start/restart vite.
If you have tried the steps above but the extension still doesn't work as expected, you may:

and i already have restarted vite and i have the page running

Log output

23:48:58.060 info host ------------ starting ------------
23:48:58.077 info extension host process output: port:[57984]
23:48:58.077 info extension 
23:48:58.086 info host client connected: extension { address: '127.0.0.1', family: 'IPv4', port: 57984 }
23:48:58.175 info host worker Starting Host Worker...
23:48:58.207 info host starting host: {"extensionFolder":"c:\\Users\\ruan_\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.358","runtimeHookFile":"c:\\Users\\ruan_\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.358\\out\\runtimeHook\\tracer.js","globalErrorHandlerFile":"c:\\Users\\ruan_\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.358\\out\\runtimeHook\\errorHandler.js","networkLoggingHandlerFile":"c:\\Users\\ruan_\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.358\\out\\runtimeHook\\networkLoggingHandler.js","filesToInstrument":[{"path":"d:\\personal dev stuff\\vicionline-website\\src\\pages\\error\\error.tsx","reason":"search"},{"path":"d:\\Personal Dev Stuff\\ViciOnline-Website\\src\\pages\\error\\error.tsx","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":"Beside File","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","RUAN-PC","192.168.0.163","192.168.56.1","172.19.192.1"],"host":"127.0.0.1","forcedStart":true,"startTime":1725936537874}
23:48:58.226 info host starting tools discovery and integration
23:48:58.230 info host looking for tools to patch
23:48:58.323 info host found 3 tool file(s) to patch
23:48:58.325 info host patching c:\Users\ruan_\.vscode\extensions\ritwickdey.liveserver-5.7.9\node_modules\live-server\index.js
23:48:58.325 info host patching d:\personal dev stuff\vicionline-website\node_modules\vite\bin\vite.js
23:48:58.392 info host Host's startup and patch time: 518 ms
23:48:58.393 info host completed tools discovery and integration
23:48:58.399 ERR! host uncaught exception: No clients connected

Unfortunately we can't reproduce the issue and a sample vite project is working for us as expected.

Please try:

  • run and share the output from running: yarn info vite -A in your project's root/
  • run npm run dev instead of yarn to see if it helps.
  • close VS Code, delete node modules folder, install node modules, open VS Code, run vite and check if Ninja is connecting.

If nothing from suggested above helps, please share a sample repo where we can reproduce the issue.

Yea sorry i was kind of unaware the community version had that 2months~~ish delay with vite versions and i was using the last one, downgraded to 5.0 and it worked. Thanks!