Skip to content

prisma2 dev hangs after creating SQLite database #641

Closed

Description

@janpio

([email protected], 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)

Activity

  1. added
    bug/0-unknown
    kind/bug
    bug/2-confirmed
    and removed
    bug/0-unknown
    on Sep 30, 2019
  2. divyenduz commented on Sep 30, 2019

    @divyenduz

    I can reproduce this with SQLite but not with MySQL.

  3. janpio commented on Oct 2, 2019

    @janpio
    ContributorAuthor

    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)

  4. jferrettiboke commented on Oct 2, 2019

    @jferrettiboke

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

  5. janpio commented on Oct 7, 2019

    @janpio
    Author
  6. added this to the Preview 14 milestone on Oct 7, 2019
  7. janpio commented on Oct 7, 2019

    @janpio
    ContributorAuthor

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

  8. MarvinAmador7 commented on Oct 7, 2019

    @MarvinAmador7

    This still exists in [email protected], binary version: 2b78c35cf302bf80ae5aaa863c5eee0d09541f83

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

  9. janpio commented on Oct 7, 2019

    @janpio
    ContributorAuthor

    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...)

  10. modified the milestones: Preview 14, Preview 13 on Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/2-confirmedkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions