Comments (8)
Solution
There are a couple of fixes that need to be done.
- Instead of crashing, if the fields are not filled
rectx
should notify the user that they need to be filled. - 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.
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 theproject.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.
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.
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.
Ultimately, this bug is due to shortsightedness in template syntax. I should be able to get it patched in no time 😎.
from rectx.
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.
This issue has been closed due to a lack of activity!
from rectx.
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.
This issue has been closed due to a lack of activity!
from rectx.
Related Issues (20)
- Project manager config management sub-module for custom project config HOT 3
- TODO: Update labels HOT 1
- Better Templates + `rectx template` command functionality HOT 4
- Better Errors HOT 2
- Ease of installation HOT 3
- template/ and license/ validation
- Modify build/run profile properties to support args and other useful properties HOT 7
- Check if source code has changed and if it has rebuild during `rectx run` HOT 10
- Template error system needs line and count information. HOT 2
- Add `rectx template list`: lists all the templates in the `template/` directory and suggest regenerating them if there are none.
- Add `rectx template add <path>`: adds a .rectx.template file into the `templates/` directory. Make sure to check if it's a .rectx.template file.
- LICENSE generation with meta-variables HOT 2
- Template snapshotting will search for *any* file called "commands" could cause conflicts HOT 1
- Accepting command line flags HOT 4
- `rectx config [flags] <subcommand>` functionality HOT 4
- `rectx template add` will not recognise a non-existent file (responding error assumes file exists?) HOT 1
- `rectx template snapshot` bad generation + generating comments? HOT 4
- Adding unit tests for easy testing of commands and internal functions HOT 4
- Failing to generate "main.rct" when non-default template chosen HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rectx.