Skip to content

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

Open

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

  1. janrabek commented on Feb 14, 2026

    @janrabek

    I can confirm the same issue with VSCode Extension version 31.5.0.

    I'm using

    datasource db {
    provider = "postgresql"
    }

    Without it I get errors for all the String[] fields in entities

  2. Abdullah-dev0 commented on Feb 24, 2026

    @Abdullah-dev0

    I can confirm the same issue with VSCode Extension version 31.5.0.

    I'm using

    datasource db {
    provider = "postgresql"
    }

    Without it I get errors for all the String[] fields in entities

  3. webdiego commented on Mar 9, 2026

    @webdiego

    Disable the extension and enable it solve the problem

  4. nandalalshukla commented on Apr 17, 2026

    @nandalalshukla

    i am getting this error, i tried disabling, enabling, uninstalling, installing but it still appears.

  5. ViniciusSorgetz commented on Apr 20, 2026

    @ViniciusSorgetz

    Same issue with me, I removed the url prop from schema.prisma 'cause it was deprecated, but now the code fails

  6. Gabriel-Mariano commented on Jun 7, 2026

    @Gabriel-Mariano

    (That solved it for me)
    I needed to update my vscode to Version: 1.123.0 (Universal). After that, I uninstalled and installed the extension(prisma) again.

  7. kiboflaglet commented on Jul 14, 2026

    @kiboflaglet

    update the Prisma extension to 31.11.0, and reload the window, you're welcome!

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