You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to work on users in the DB from the console, so I start typing db.user.findMany()
As soon as I type the first dot after db, the console hangs (forever) with node using 99.9% CPU (I suppose it's trying to do something for autocomplete?)
I was originally on 2.0.8, just tried to upgrade to 2.0.10 and have the same result. I also tried on both an Intel and an ARM mac.
If I try to execute some simple command, eg 1+1, it works. If I try typing something with a dot, like test.something , it doesn't get stuck.
The app works well from the web; my DB is postgresql, and all other configuration is the default.
I also just found out that if I paste db.user.findMany() (instead of typing each letter) it works correctly.
Paste all your error logs here:
PASTE_HERE (leave the ``` marks)
Paste all relevant code snippets here:
db.user.findMany()
What are detailed steps to reproduce this?
blitz c
try to type (not copy and paste) db.user.findMany()
I can confirm this issue on my end. I'm on a fresh installation of Blitz (2.2.1), just switched to Postgres instead of Sqlite, added a few models and hit this issue. If I check Activity Monitor, I see that node process eats up 98% CPU.
The same as the author, if I copy-paste (not type) db.user.findMany(), it actually works. So it looks like the Blitz Console tries to fetch some db (meta-)data that makes it hang.
For people coming here after me. What helped me was not typing db, but instead await db and then you can proceed inputing your command and using the autocompletion. I'm not sure what the root of the problem is, but I hope this would unblock someone coming here with the same issue.
What is the problem?
I want to work on users in the DB from the console, so I start typing
db.user.findMany()
As soon as I type the first dot after db, the console hangs (forever) with node using 99.9% CPU (I suppose it's trying to do something for autocomplete?)
I was originally on 2.0.8, just tried to upgrade to 2.0.10 and have the same result. I also tried on both an Intel and an ARM mac.
If I try to execute some simple command, eg 1+1, it works. If I try typing something with a dot, like
test.something
, it doesn't get stuck.The app works well from the web; my DB is postgresql, and all other configuration is the default.
I also just found out that if I paste
db.user.findMany()
(instead of typing each letter) it works correctly.Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
db.user.findMany()
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response
The text was updated successfully, but these errors were encountered: