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

Format moves lines on every format call in an invalid schema #193

Closed
carmenberndt opened this issue May 28, 2020 · 1 comment
Closed

Format moves lines on every format call in an invalid schema #193

carmenberndt opened this issue May 28, 2020 · 1 comment
Assignees
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. tech/engines Issue for tech Engines. topic: formatting
Milestone

Comments

@carmenberndt
Copy link
Contributor

carmenberndt commented May 28, 2020

Formatting this:
beforeFormat

leads to
afterFormat

and for every added character after test this shifts the line above again:

addcharacter

@carmenberndt carmenberndt added kind/bug A reported bug. tech/engines Issue for tech Engines. topic: formatting labels May 28, 2020
@janpio janpio added this to the Beta 7 milestone May 28, 2020
@janpio janpio added the bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. label May 28, 2020
@carmenberndt
Copy link
Contributor Author

carmenberndt commented May 28, 2020

This is the schema I used:

datasource db {
  provider               = "postgresql"
  url                    = env("POSTGRESQL_URL")
  // provider = "sqlite"
  // url      = "file:dev.db" 
}
generator photon {
  provider = "prisma-client-js"
}
model Post {
  id   Int      @default(autoincrement()) @id
  tags String[] test
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. tech/engines Issue for tech Engines. topic: formatting
Projects
None yet
Development

No branches or pull requests

3 participants