Giter Club home page Giter Club logo

Comments (10)

yuchdev avatar yuchdev commented on August 10, 2024 1

Okay, let's try out

from code_generator.

yuchdev avatar yuchdev commented on August 10, 2024

@tcitbiint3 I don't quite understand, what does it mean "incompatible changes"?
Would you extend the example, please?

from code_generator.

yuchdev avatar yuchdev commented on August 10, 2024

By the way, could you change the string to python -m pip install code-generation?
For uniform pip use

from code_generator.

tcitbiint3 avatar tcitbiint3 commented on August 10, 2024

@tcitbiint3 I don't quite understand, what does it mean "incompatible changes"? Would you extend the example, please?

Yes, changes which influence the output of the example or changes which change a function header in a incompatible way, e.g. when defining a parameter mandatory which was optional before, so that the execution of the examples is not possible with the version behind pip install. Using the current version of the repository will test the current version, which makes more sense or am I wrong?

In case of PR #17, in which the example was extended, and the current "python -m pip install code-generation", a new version has to be pushed to pip in order to get Actions pipeline without errors.

from code_generator.

yuchdev avatar yuchdev commented on August 10, 2024

"which change a function header in a incompatible way, e.g. when defining a parameter mandatory which was optional before" yeah, I met such inconveniences before.
For that exact case, package user can define the exact version of the package in the requirements.txt
code-generation==2.1.1
I think, we can let this minor issue exist, until such incompatibility explicitly happen
And we can merge the PR

from code_generator.

yuchdev avatar yuchdev commented on August 10, 2024

BTW, we have an assertion after the merge
AssertionError: Lists differ: [] != ['class.cpp']

from code_generator.

tcitbiint3 avatar tcitbiint3 commented on August 10, 2024

Yes, this is because of the test execution with v2.1.1 instead of the version of the PR. in the PR, the tests are changed in order to test the changes properly. Therefore pip install code-generation was removed in the PR.

from code_generator.

yuchdev avatar yuchdev commented on August 10, 2024

I fixed it with my package release script.
It handles the installation, reinstallation and dev mode of PIP packages.
It's funny I made it and forgot about it:)
Now it works just fine

from code_generator.

tcitbiint3 avatar tcitbiint3 commented on August 10, 2024

This looks like the best solution! Thanks!

from code_generator.

yuchdev avatar yuchdev commented on August 10, 2024

@tcitbiint3
Sorry to bother you, if you're busy, you can safely ignore my request.
But could you provide a couple of real-world examples of C++ code generation?
Unless it is under some proprietary license.
My use of the library is under a commercial license, unfortunately.

I want to move the library to another level and include support for other languages.
For that, I need documentation and examples for each of them.
Again, if you find it easy. You already contributed a lot to the project.

from code_generator.

Related Issues (12)

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.