GithubHelp home page GithubHelp logo

Comments (10)

medz avatar medz commented on May 28, 2024

@Rodsevich You try to rerun the dart run orm generate command to fix the problem.

from prisma-dart.

Rodsevich avatar Rodsevich commented on May 28, 2024

yeah, I ran:

dart pub get
dart run orm generate
dart run build_runner build --delete-conflicting-outputs

I had to edit the code to

final _i2.Engine engine = _i2.BinaryEngine(
      logEmitter: _i2.PrismaLogEmitter([]),

to have the project built

from prisma-dart.

medz avatar medz commented on May 28, 2024

@Rodsevich
image
Can you provide a minimal reproduction example? I created a new Dart project and then used your command steps and still haven't found the problem.

from prisma-dart.

Rodsevich avatar Rodsevich commented on May 28, 2024

Our schema.prisma begins with:

generator client {
  provider        = "prisma-client-dart"
  previewFeatures = ["interactiveTransactions"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL_WITH_SCHEMA")
}

model Entity {

from prisma-dart.

medz avatar medz commented on May 28, 2024
2.mov

from prisma-dart.

Rodsevich avatar Rodsevich commented on May 28, 2024

https://pastebin.com/73SS2sJB
This is the schema.prisma we have. If the bug doesn't replicate with that, do you know a way I can get rid of it on the project?

from prisma-dart.

medz avatar medz commented on May 28, 2024

This problem doesn't seem to be related to the schema, you try to regenerate the client after changing the orm version to 2.3.1 in pubspec.yaml. I'll copy your schema and keep trying.

from prisma-dart.

medz avatar medz commented on May 28, 2024

I copied your schema to try. There were no problems either. Can I see the contents of your pubspec.yaml?

from prisma-dart.

Rodsevich avatar Rodsevich commented on May 28, 2024

Sure!
https://pastebin.com/EVCXTXUC

from prisma-dart.

medz avatar medz commented on May 28, 2024

Sorry, I still haven't found the bug. Prisma Client's logging field generation does not depend on schema, but this feature does confirm inclusion in version 2.3.1.

I suspected a Schema issue at first, after testing it wasn't. Then I suspected a dependency conflict or something, and found that it wasn't. Got it to work without issue on my computer as well as in the docker container.

This may require you to help debug:

  1. Remove the orm dependency (dart pub rmeove orm) from your project and re-depend on it (dart pub add orm), if the bug still exists, try 2.
  2. Create a new Dart project that depends on the orm package. Then generate the client whether the problem still exists. If this bug persists, please run dart --version and report the output to me. I will find the same version information for a targeted fork test.

from prisma-dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.