Giter VIP home page Giter VIP logo

Comments (8)

hrszpuk avatar hrszpuk commented on June 12, 2024

Solution

There are a couple of fixes that need to be done.

  1. Instead of crashing, if the fields are not filled rectx should notify the user that they need to be filled.
  2. Template syntax need to be updated so you can "label" a directory/file so during generation rectx automatically adds the "labelled" folders/files into the appropriate config fields. It may be a good idea to implement a field keyword that lets the template to define the values in the config pre-generation. This would also make the templates more powerful.
  3. rectx build/run searches/assumes where stuff is. This isn't a great idea on it's own because if it doesn't know where things are then it could easily assume the wrong things and error. However, if the project.rectx config provides the template name, rectx could look up the template name and (given that solution 2 is implemented) we can find the build/source/main/etc that way.

from rectx.

Khhs167 avatar Khhs167 commented on June 12, 2024

I don't really know how rectx works, but couldn't you possibly default to making a "build" or "bin" directory when building, and just include all files in the project directory and sub directories. Perhaps ignore the "build"/"bin" dir when scanning for .rct files?

Once again, I'm not the expert

from rectx.

hrszpuk avatar hrszpuk commented on June 12, 2024

Thanks for the suggestion @Khhs167 😄.

Rectx generates project files, but it doesn't restrict the user to a specific project layout/structure. To do this, rectx uses a template which specifies how the project should be generated and a project config to specify where everything is. However, currently, the template does not specify where to find all of the ".rct" files or where to build the executable, so the project config does not specify where anything is. Since rectx build uses the project config to find the appropriate directories it causes a crash because the values in the config are not specified.

Unfortunately, I cannot generate a default folder for the executable because rectx doesn't even know where the source folder is! I would like to avoid generating default folders/files for the most part as the information exists for rectx to use just not available where it was expecting it to be available.

from rectx.

hrszpuk avatar hrszpuk commented on June 12, 2024

Ultimately, this bug is due to shortsightedness in template syntax. I should be able to get it patched in no time 😎.

from rectx.

github-actions avatar github-actions commented on June 12, 2024

Due to a lack of activity, this issue has been deemed stale. If this level of activity continues for a further 5 days this issues will be closed.

from rectx.

github-actions avatar github-actions commented on June 12, 2024

This issue has been closed due to a lack of activity!

from rectx.

github-actions avatar github-actions commented on June 12, 2024

Due to a lack of activity, this issue has been deemed stale. If this level of activity continues for a further 5 days this issues will be closed.

from rectx.

github-actions avatar github-actions commented on June 12, 2024

This issue has been closed due to a lack of activity!

from rectx.

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.