-
Notifications
You must be signed in to change notification settings - Fork 1k
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?]: yarn rw console
hangs for 10 seconds when typing 'db'
#8817
Comments
Hey @kalaracey thanks for opening the issue! I can reproduce this behaviour on our test project so it's definitely happening. Looking at the git history it looks like this command hasn't had much attention for a long time. I wasn't on the team when this was created so don't have any specific insight to offer at the moment. I can do my best to try and help you out if there's anything specific you come across. A little notice since you said you'd be interested in working on this - which is awesome btw! The team is trying to focus on a few important milestones for our next epoch so we might not be able to be as responsive to this issue as we would like to be. I'll still try to make sure we get back to you though! |
I've been running into this. Sharing some debug info I found today - if you paste something that goes past the "db", the console doesn't hang, e.g. |
Additionally, when you open a console, as long as you do not start with
Additionally, even using |
I am also seeing this, however it doesn't seem to resolve itself even after waiting 10 seconds. Pasting directly into the terminal works and prefixing with |
The console isn't getting much use, so we likely won't get to investigating this anytime soon. But please keep commenting and/or reacting to posts to indicate interest in this issue to keep it on our radar |
It should be caused by this one: prisma/prisma#18292 Mind if I make a PR @Tobbe ? |
@ymc9 Please do! 👍 |
…sole to hang (#9623) The related Prisma issue: prisma/prisma#18292 It basically causes all kinds of Node REPLs that use PrismaClient to hang when users type the variable name that holds the client. Adding a workaround as suggested in the Prisma thread. Fixes #8817
…sole to hang (#9623) The related Prisma issue: prisma/prisma#18292 It basically causes all kinds of Node REPLs that use PrismaClient to hang when users type the variable name that holds the client. Adding a workaround as suggested in the Prisma thread. Fixes #8817
What's not working?
I am going through the tutorial and I have gotten to the part where you begin to use
yarn rw console
. However, when I typedb.
(i.e. the beginning ofdb.post.findMany(...)
) the console hangs for five to ten seconds atdb
. If I backspace from e.g.db.post
to the 'd' character, it will similarly hang atdb
before backspacing through 'b' for five to ten seconds.Perhaps there is some sort of autocomplete that is blocking the thread.
How do we reproduce the bug?
Then set up the
SESSION_SECRET
in.env
.Finally, open
yarn rw console
and attempt to typedb.post.findMany()
.What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: