Giter Site home page Giter Site logo

Comments (8)

sigiesec avatar sigiesec commented on June 9, 2024

Please include a (minimalized) IDL file that triggers the error.

from service-idl.

sebastianhaberey avatar sebastianhaberey commented on June 9, 2024

The following IDL generates ok but throws the above error on compilation of the Java module:

module foo
{
    struct ComplexPower
    {
        double p_MW;
        double q_Mvar;
    };
}

from service-idl.

sigiesec avatar sigiesec commented on June 9, 2024

Reproduced this here: https://ci.bop-dev.de/job/cab/job/BF/job/serviceidl-integrationtests/job/sigiesec%252Fadd-test-case-with-underscore/2/

from service-idl.

sigiesec avatar sigiesec commented on June 9, 2024

This is due to assumptions of the Protobuf Compiler on naming conventions. Cf. https://developers.google.com/protocol-buffers/docs/javatutorial:

Notice how these accessor methods use camel-case naming, even though the .proto file uses lowercase-with-underscores. This transformation is done automatically by the protocol buffer compiler so that the generated classes match standard Java style conventions.

from service-idl.

sigiesec avatar sigiesec commented on June 9, 2024

com.google.common.base.CaseFormat can be used for converting

from service-idl.

sigiesec avatar sigiesec commented on June 9, 2024

See also #90

Note that the names in your example do not follow any common naming convention (camelCase, PascalCase, lower_snake_case, UPPER_SNAKE_CASE). This might be impossible to support properly, even if we allow using SnakeCase in the IDL file.

I will try to fix this anyway.

from service-idl.

sigiesec avatar sigiesec commented on June 9, 2024

Fixed by #96

from service-idl.

sigiesec avatar sigiesec commented on June 9, 2024

There are still some issues, e.g. with the BTC.GA.FieldLink test case.

from service-idl.

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.