Skip to content

Argument "url" is missing in data source block "db".Prisma erronously reported on a prisma 7 project #1968

Description

@opensas

Bug description

in file schema.prisma I get the following error:

generator client {
  // error -> Argument "url" is missing in data source block "db".Prisma
  provider = "prisma-client"
}

datasource db {
  provider = "sqlserver"
}
Image

How to reproduce

# create sveltekit project
pnpx sv create encuestas

pnpm install prisma tsx --save-dev
pnpm install @prisma/client @prisma/adapter-mssql

create prisma/schema.prisma file

generator client {
// error -> Argument "url" is missing in data source block "db".Prisma
provider = "prisma-client"
}

datasource db {
provider = "sqlserver"
}


## Expected behavior

no error displayed

## Prisma information


## Environment & setup

<!-- In which environment does the problem occur -->

- OS: Linux xps 6.8.0-90-generic #91~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 15:20:45 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
- Editor: 
Version: 1.93.1
Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
Date: 2024-09-11T17:20:05.685Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Linux x64 6.8.0-90-generic


- Extension version: v6.7.0


Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions