Giter Club home page Giter Club logo

Comments (4)

paulkastel avatar paulkastel commented on June 20, 2024 10

Hi @glesica!
today I also came on this issue, and I figured out one conclusion: dcdg to not like anything related to code generation: It didn't work with project that had used any kind of annotation: auto_route, freezed, injectable, hive, json_annotation or package that generated translations: localizely. (so pretty popular and widely used packages from pub.dev). The moment I removed all of those dependencies from my code then dcdg correctly generated syntax for PlantUML.

Thats a bummer that it cant ignore *.g.dart or *.freezed.dart files.

This is related to whole bunch of issues here:
#55
#46 (comment)
#43
#41

And on stackoverflow:
https://stackoverflow.com/q/72679594/6229867

from dcdg.dart.

glesica avatar glesica commented on June 20, 2024

I'm not sure exactly why it's failing but I see that the freezed package requires a newer version of the analyzer package, so it's possible that is the problem.

from dcdg.dart.

AlexKenbo avatar AlexKenbo commented on June 20, 2024

I'm not sure exactly why it's failing but I see that the freezed package requires a newer version of the analyzer package, so it's possible that is the problem.

dcdg does not work with the new analyzer >=3.0.0 - but it is required for freezed to work.
And freezed is a structured package...
Can this be fixed?

Because tortuga depends on freezed ^2.0.2 which depends on analyzer >=3.0.0 <5.0.0, analyzer >=3.0.0 <5.0.0 is required. So, because tortuga depends on analyzer ^2.6.0, version solving failed. pub get failed (1; So, because tortuga depends on analyzer ^2.6.0, version solving failed.) exit code 1

from dcdg.dart.

glesica avatar glesica commented on June 20, 2024

I can try to bump the analyzer dependency, but then we also risk breaking things that depend on an older analyzer version.

from dcdg.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.