Giter Club home page Giter Club logo

Comments (11)

georghinkel avatar georghinkel commented on August 15, 2024

Hi,

yeah, there have been a range of problems attached to include the execution of text templates into the build process. Unfortunately, these problems are not really solved yet, so that I am thinking about checking the generated code files into the repository in order to avoid those problems.

As a reason, the path to the text templating tools are no longer agnostic of Visual Studio. Rather, as you see at the path you posted, the path depends on the Visual Studio version (and even edition) you use.

Best,

Georg

from nmf.

locsius avatar locsius commented on August 15, 2024

Right on - thanks for the info. Nice product!

from nmf.

georghinkel avatar georghinkel commented on August 15, 2024

Just of curiosity: Can you tell me what you are using NMF for and in particular which parts of it? Only the model representation or also the incrementalization system, the transformation engine or even the synchronization engine?

from nmf.

locsius avatar locsius commented on August 15, 2024

from nmf.

georghinkel avatar georghinkel commented on August 15, 2024

Hi,

yes, I have seen TouchCore. It is not too long ago that we had Jörg Kienzle as a guest researcher in our group. Would be very nice to be able to use it as an editor for NMF, because NMF itself currently does not have an editor at all.

For the purpose, I guess the effort to do that will depend on whether the resulting model should be executable alone or to be extended with custom logic or not. The current code generator in NMF basically does not add any executable behavior except for things implied by the metamodel structure (e.g. to implement bidirectional references and compositions, but also to implement notifications). However, the code generator is actually available as a library and gives you a fully modifiable code model and a trace how metamodel elements have been transformed.

Because you asked, the most interesting use cases for me are those that really use NMFs ability to execute model transformations or analyses in an incremental manner by creating a dynamic dependency graph.

Best,

Georg

from nmf.

mcintyre321 avatar mcintyre321 commented on August 15, 2024

I'm having a problem where the t4s are being run by VS, including the TestGenerationSettings.t4 file which is an import for other templates.

That TestGenerationSettings.t4 doesn't run as a standalone T4 template.

from nmf.

locsius avatar locsius commented on August 15, 2024

from nmf.

georghinkel avatar georghinkel commented on August 15, 2024

@mcintyre321 What is the problem that the TestGenerationSettings.t4 does not run as a standalone T4 template?

from nmf.

mcintyre321 avatar mcintyre321 commented on August 15, 2024

You get this when you download and build in a standard VS2017 instance:

image

I think it's because VS by default tries to run all transforms on build, including the shared logic one, which isn't a self contained, runnable template.

from nmf.

georghinkel avatar georghinkel commented on August 15, 2024

Hm, I recently also had to setup a new VS 2017 as I changed my machine. However, I cannot reproduce this issue.

The only thing that I can imagine: I vaguely remember that somebody said that the DSL tools (which I have installed locally) are changing some things in the T4 engine. You could try this. It is installable simply through the VS installer, but you have to look for it in the single components list, it is not included in a workflow.

from nmf.

georghinkel avatar georghinkel commented on August 15, 2024

Closing as cannot reproduce

from nmf.

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.