Giter Site home page Giter Site logo

Comments (9)

CaseyHillers avatar CaseyHillers commented on June 2, 2024 3

I was able to work around this in my project by manually overriding from protobuf 2 to 3 by adding the following to my pubspec.yaml:

dependency_overrides:
  protobuf: ^3.0.0

from protobuf.dart.

wheeOs avatar wheeOs commented on June 2, 2024 1

@sigurdm
ah ... I was trying to do it via flutter pub global activate [email protected] instead 🤦🏻‍♂️
Thanks for pointing that out!

from protobuf.dart.

wheeOs avatar wheeOs commented on June 2, 2024

for the time being, is there any possibility to use an older version of protoc_plugin? I couldn't figure out how to activate the plugin globally with a specific version other than the latest.

from protobuf.dart.

wheeOs avatar wheeOs commented on June 2, 2024

@CaseyHillers thank you for sharing this! Finally a workaround.. that fixed it!

from protobuf.dart.

sigurdm avatar sigurdm commented on June 2, 2024

@wheeOs

I couldn't figure out how to activate the plugin globally with a specific version other than the latest.

For next time:

$ dart pub global activate --help
Make a package's executables globally available.

Usage: dart pub global activate <package> [version-constraint]

So for example:

> dart pub global activate protoc_plugin 20.0.1

Will install v. 20.0.1

from protobuf.dart.

sigurdm avatar sigurdm commented on June 2, 2024

ah ... I was trying to do it via flutter pub global activate [email protected] instead 🤦🏻‍♂️

Yeah, that would also make sense given the new pub add syntax.

from protobuf.dart.

JeromeChezExfo avatar JeromeChezExfo commented on June 2, 2024

I have the exact same issue on Ubuntu 22.04.3 with libprotoc 3.12.4 and protoc_plugin 21.1.1. I also tried with protoc_plugin 20.0.1 as mentioned above but this didn't help.

How did you figure which version of protoc_plugin was compatible with libprotoc on your end?

from protobuf.dart.

mw66 avatar mw66 commented on June 2, 2024

Ubuntu 22.04.3

dart pub global activate protoc_plugin 20.0.1

worked for me.

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