Prisma: Comments in schema's `datasource` block fail with `Error: Schema parsing error: Unexpected token. Expected one of: End of block ("}"), alphanumeric identifier`

Created on 23 Mar 2020  路  1Comment  路  Source: prisma/prisma

Prisma CLI Version   : [email protected]
Current platform     : darwin
Query Engine         : prisma e33c54faa0d656a9dd22546696753591a9c6d9d0 (at /Users/j42/.npm/_npx/1558/lib/node_modules/prisma2/query-engine-darwin)
Migration Engine     : migration-engine-cli e33c54faa0d656a9dd22546696753591a9c6d9d0 (at /Users/j42/.npm/_npx/1558/lib/node_modules/prisma2/migration-engine-darwin)
Introspection Engine : introspection-core e33c54faa0d656a9dd22546696753591a9c6d9d0 (at /Users/j42/.npm/_npx/1558/lib/node_modules/prisma2/introspection-engine-darwin)

The comment in the datasource block fails at validation:
Screen Shot 2020-03-23 at 14 02 28

schema.prisma

datasource db {
    provider = "postgresql"
    // Like, postgresql://user:password@localhost:5432/database/schema
    url      = "***"
}

With preview 23 it was working

npx [email protected] validate --schema=./schema.datasource.comment.prisma
The schema at /Users/j42/Dev/testinstall/schema.datasource.comment.prisma is valid 馃殌
bu1-repro-available kinregression

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings