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

prisma2 dev hangs after creating SQLite database #641

Closed
janpio opened this issue Sep 30, 2019 · 7 comments
Closed

prisma2 dev hangs after creating SQLite database #641

janpio opened this issue Sep 30, 2019 · 7 comments
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug.
Milestone

Comments

@janpio
Copy link
Member

janpio commented Sep 30, 2019

(prisma2@2.0.0-preview-13.1, binary version: 14576370b55d5152d9cb90f4f509bfa56760dbbd)

prisma2 init foo with Blank project > SQLite > Confirm > JavaScript > Demo script successfully creates project. After cd .. into the folder, when you run prisma2 dev you first get this, which is nice:

C:\Users\Jan\Documents\throwaway\hotfix2>prisma2 dev
You are trying to run prisma2 dev for Sqlite database dev.db.
A database with that name doesn't exist at file:dev.db.
Do you want to create the database?

┌─ Database options ─────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                                                                    │
│ > Yes            Create new Sqlite database dev.db                                                                 │
│   No             Don't create the database                                                                         │
│                                                                                                                    │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

image

Unfortunately upon selecting "Yes", the text goes away and it just hangs with a blinking cursor:

cursor_blinking

There also doesn't seem to be a way out of there besides killing the terminal that is running this, Ctrl+C does nothing.

(This has to be confirmed to not be a Windows only or problem)

@divyenduz divyenduz added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. bug/2-confirmed Bug has been reproduced and confirmed. and removed bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. labels Sep 30, 2019
@divyenduz
Copy link
Contributor

I can reproduce this with SQLite but not with MySQL.

@janpio
Copy link
Member Author

janpio commented Oct 2, 2019

Same problem still exists in 2.0.0-preview-13.2.

Identical problem exists for Blank project > SQLite > Confirm > JavaScript > Just the Prisma schema - so all the Blank project SQLite flows seem broken right now.

(Is does not affect the starter projects afaik)

@jferrettiboke
Copy link

I can confirm this on Windows 10 with 2.0.0-preview-13.2.

@janpio

This comment has been minimized.

@janpio
Copy link
Member Author

janpio commented Oct 7, 2019

This was fixed in 2.0.0-preview013.3 which is now available.

@janpio janpio closed this as completed Oct 7, 2019
@MarvinAmador7
Copy link

This still exists in prisma2@2.0.0-preview013.3, binary version: 2b78c35cf302bf80ae5aaa863c5eee0d09541f83

Following the tutorial from https://github.com/prisma/prisma2/blob/master/docs/tutorial.md using a PostGres DB from digital ocean

@janpio
Copy link
Member Author

janpio commented Oct 7, 2019

Please create a new issues @MarvinAmador7, we did not look into digital ocean and postgres here. Thanks! (Possible there is already an issue about that, I vaguely remember something about DO and creating databases not being possible...)

@janpio janpio modified the milestones: Preview 14, Preview 13 Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug.
Projects
None yet
Development

No branches or pull requests

4 participants