Code Monkey home page Code Monkey logo

Comments (4)

thesamet avatar thesamet commented on June 4, 2024

Hi @ianlintner , see this FAQ for why we chose not to have global options: https://scalapb.github.io/docs/faq#why-a-certain-customization-is-not-available-as-a-global-generator-parameter

Since you're aware this feature can be enabled for an entire package, what is the use case that isn't solved by this?

from scalapb.

ianlintner avatar ianlintner commented on June 4, 2024

I have an external protobuf library that is language agnostic that has a few dozen different namespaces without a shared root.

My scala project uses the external protobuf library now requires 20+ additional package configurations to match the pre 0.10.0 behavior.

Is there another solution to make a better developer experience when working with large proto libs?

from scalapb.

thesamet avatar thesamet commented on June 4, 2024

Would it work for you if there was a way to easily list all the top-level namespaces in package scoped options? Something like:

import "scalapb/scalapb.proto";

option (scalapb.options) = {
  scope: PACKAGE
  preserve_unknown_fields: false
  apply_to_packages: ["pkg1", "pkg2", "pkg3", ...]  # <-- new proposed feature
};

Out of curiosity, why not enable unknown fields for the Scala project? It may require changes if you used pattern matching, but other than that, I think it should be considered to enable it.

from scalapb.

thesamet avatar thesamet commented on June 4, 2024

Closing due to inactivity. Feel free to comment if the issue is still relevant.

from scalapb.

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.