Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Console Ninja is waiting for runtime events. Console ninja does not display inline logging next to my console logs. #282

Open
KBaldwin2 opened this issue Apr 5, 2024 · 4 comments
Labels

Comments

@KBaldwin2
Copy link

What happened?

When running my next.js application console ninja is turned on and displays the message "Console Ninja is waiting for runtime events. Console Ninja has started with next.js and is now waiting for some runtime logs or errors." But does not display results from any log in my project. When running the app I can see the logs in the console so I know the event is being triggered.

image

image
image

Version

v1.0.297

Steps to reproduce (or sample repo)

  1. Install Console Ninja
  2. Run next.js project

Log output

07:49:25.047 info extension stopping host
07:49:25.863 info host ------------ starting ------------
07:49:25.923 info extension host process output: port:[59401]
07:49:25.924 info extension 
07:49:26.009 info host client connected: extension { address: '127.0.0.1', family: 'IPv4', port: 59401 }
07:49:26.531 info host worker Starting Host Worker...
07:49:27.642 info host starting host: {"extensionFolder":"c:\\Users\\kbaldwin\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.297","runtimeHookFile":"c:\\Users\\kbaldwin\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.297\\out\\runtimeHook\\tracer.js","globalErrorHandlerFile":"c:\\Users\\kbaldwin\\.vscode\\extensions\\wallabyjs.console-ninja-1.0.297\\out\\runtimeHook\\errorHandler.js","filesToInstrument":[{"path":"c:\\users\\kbaldwin\\desktop\\goodtoshow\\src\\app\\api\\webhooks\\stripe\\price-record.ts","reason":"search"},{"path":"c:\\users\\kbaldwin\\desktop\\goodtoshow\\src\\app\\api\\webhooks\\stripe\\route.ts","reason":"search"},{"path":"c:\\users\\kbaldwin\\desktop\\goodtoshow\\src\\app\\api\\webhooks\\sms\\listing-code\\route.ts","reason":"search"},{"path":"c:\\users\\kbaldwin\\desktop\\goodtoshow\\src\\app\\api\\webhooks\\sms\\conditionally-sold-expired\\route.ts","reason":"search"},{"path":"c:\\users\\kbaldwin\\desktop\\goodtoshow\\src\\app\\api\\webhooks\\sms\\confirm-showing\\route.ts","reason":"search"},{"path":"c:\\users\\kbaldwin\\desktop\\goodtoshow\\src\\app\\(dashboard)\\error.tsx","reason":"search"},{"path":"c:\\users\\kbaldwin\\desktop\\goodtoshow\\src\\app\\api\\trpc\\[trpc]\\route.ts","reason":"search"},{"path":"c:\\users\\kbaldwin\\desktop\\goodtoshow\\src\\app\\(dashboard)\\listings\\listings-view.scene.tsx","reason":"search"},{"path":"c:\\users\\kbaldwin\\desktop\\goodtoshow\\src\\app\\(dashboard)\\listings\\create\\components\\listing-form.tsx","reason":"search"},{"path":"c:\\Users\\kbaldwin\\Desktop\\goodtoshow\\src\\app\\(dashboard)\\listings\\listings-view.scene.tsx","reason":"open"},{"path":"c:\\Users\\kbaldwin\\Desktop\\goodtoshow\\.eslintrc.cjs","reason":"open"}],"debug":false,"config":{"dateTimeFormat":"HH:mm:ss.SSS","dateTimeDisplayMode":"Absolute","installBinToPath":true,"openLinksInEditor":true,"maxLogViewerEntries":15000,"fontSize":10,"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","remix","qwik","hydrogen","serverless","live-server-extension"],"showErrors":true,"showLogsOnlyFromOpenedFiles":false,"showLogsFromLogPointsOnly":false,"showLogsFromMultipleRunningToolsTogether":false,"predictiveLoggingEnabled":true,"allowConsoleLogToTriggerPredictions":false},"allowedHosts":["localhost","127.0.0.1","example.cypress.io","KB-XPS15","192.168.99.6","10.0.0.119","172.26.80.1"],"host":"127.0.0.1","forcedStart":true,"startTime":1712324965052}
07:49:27.663 info host starting tools discovery and integration
07:49:27.699 info host looking for tools to patch
07:49:28.073 info host found 3 tool file(s) to patch
07:49:28.074 info host patching c:\Users\kbaldwin\.vscode\extensions\ritwickdey.liveserver-5.7.9\node_modules\live-server\index.js
07:49:28.077 info host patching c:\users\kbaldwin\desktop\goodtoshow\node_modules\next\dist\compiled\webpack\bundle5.js
07:49:28.077 info host patching c:\users\kbaldwin\desktop\goodtoshow\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
07:49:28.188 info host Host's startup and patch time: 3136 ms
07:49:28.189 info host completed tools discovery and integration
07:51:29.088 info host client connected: buildHook { address: '127.0.0.1', family: 'IPv4', port: 59401 }
07:51:28.696 info buildHook-20436 installing build hook for next.js at c:\users\kbaldwin\desktop\goodtoshow, node v20.11.1
07:51:28.714 info buildHook-20436 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, remix, qwik, hydrogen, serverless, live-server-extension, node
07:51:28.714 info buildHook-20436 running tools: next.js
07:51:28.887 info buildHook-20436 installing fs interceptor
07:51:29.133 info buildHook-20436 file processed (stat): 1 log points, error handler: false
07:51:29.154 info buildHook-20436 file processed (stat): 3 log points, error handler: false
07:51:29.166 info buildHook-20436 file processed (stat): 0 log points, error handler: false
07:51:29.188 info buildHook-20436 file processed (stat): 0 log points, error handler: false
07:51:29.193 info buildHook-20436 file processed (stat): 0 log points, error handler: false
07:51:29.204 info buildHook-20436 file processed (stat): 0 log points, error handler: false
07:51:29.210 info buildHook-20436 file processed (stat): 0 log points, error handler: false
07:51:29.237 info buildHook-20436 file processed (stat): 2 log points, error handler: false
07:51:29.279 info buildHook-20436 file processed (stat): 1 log points, error handler: false
07:51:29.289 info buildHook-20436 file processed (stat): 0 log points, error handler: false
07:51:29.289 info buildHook-20436 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, remix, qwik, hydrogen, serverless, live-server-extension, node
07:51:29.289 info buildHook-20436 running tools: next.js
07:51:31.854 info host client connected: buildHook { address: '127.0.0.1', family: 'IPv4', port: 59401 }
07:51:31.764 info buildHook-10384 installing build hook for next.js at c:\users\kbaldwin\desktop\goodtoshow, node v20.11.1
07:51:31.777 info buildHook-10384 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, remix, qwik, hydrogen, serverless, live-server-extension, node
07:51:31.777 info buildHook-10384 running tools: next.js
07:51:31.779 info buildHook-10384 installing fs interceptor
07:51:31.900 info buildHook-10384 file processed (stat): 1 log points, error handler: false
07:51:31.919 info buildHook-10384 file processed (stat): 3 log points, error handler: false
07:51:31.930 info buildHook-10384 file processed (stat): 0 log points, error handler: false
07:51:31.953 info buildHook-10384 file processed (stat): 0 log points, error handler: false
07:51:31.957 info buildHook-10384 file processed (stat): 0 log points, error handler: false
07:51:31.969 info buildHook-10384 file processed (stat): 0 log points, error handler: false
07:51:31.974 info buildHook-10384 file processed (stat): 0 log points, error handler: false
07:51:32.000 info buildHook-10384 file processed (stat): 2 log points, error handler: false
07:51:32.038 info buildHook-10384 file processed (stat): 1 log points, error handler: false
07:51:32.048 info buildHook-10384 file processed (stat): 0 log points, error handler: false
07:51:32.048 info buildHook-10384 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, remix, qwik, hydrogen, serverless, live-server-extension, node
07:51:32.048 info buildHook-10384 running tools: next.js
@smcenlly
Copy link
Member

smcenlly commented Apr 8, 2024

We've made some changes to Console Ninja that we think may fix your problem.

Can you please update to Console Ninja v1.0.298 and let us know if it works for you?

@KBaldwin2
Copy link
Author

I updated it and it did not help. Still just says it is waiting for runtime events
image

@mearleycf
Copy link

I am having the exact same issue FYI, and I'm on version 1.0.307 of console ninja.

@smcenlly
Copy link
Member

Are you running your dev script with the --turbo flag? The flag is not yet supported by Console Ninja.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants