Comments (5)
Related to this functionality - the templates that output into the model, not into a file, should be declared before the template that needs the generated model attribute.
For example, the 'source' templates includes a test code which is generated from the 'filetest' template, so we have:
// Working
templates = [ filetest, source ]
// Not working
templates = [ source, filetest ]
I am writing a memo (it should be mentioned anywhere, maybe a documentation just before the public release)
from topcoder-greed.
Also, 'filetest' should be dependent on 'testcase' -- without it, in vain.
@shivawu, are you planning this on 2.0 or later? I am a bit confused on the behaviour. It'll be great if the dependencies are automatically included.
from topcoder-greed.
Yes, this feature is just an idea which comes to me that day. But I didn't put too much thought into it since it will make the configuration file more complicated (maybe much more).
You're right about the dependencies. And you can see the templates (filetest and testcase) are hooked together by the convention of the name of the testcase
template, which is considered bad practice, this name spreads everywhere in the template and config. But I haven't thought of a better idea to express this dependency or restriction, without breaking the config schema too much.
This feature can be added before the release, but it need a lot of design work I think. You can give some advise on this if you'd like.
from topcoder-greed.
what do you guys think of this new syntax? @wookayin @vexorian
Dependencies are defined as an array, which all elements must be satisfied, and each element can be a list of
strings concatenated by |
meaning one-of relation between them, so basically it's a logic expression in CNF.
Keys dependencies are expressed as key(xxx)
.
from topcoder-greed.
It seems cool.
from topcoder-greed.
Related Issues (20)
- Cannot configure pathPattern and fileNamePattern HOT 7
- Not recognizing config file HOT 1
- Config error: Config object needed, ConfigString found HOT 3
- The return value of long[] is attached with "L" in testcase.sample HOT 3
- Question: Is it possible to detect "practice room"? HOT 5
- Allow camelCase properties in templates
- Ecosystems for community-created contents (templates) HOT 5
- Code generation fails on SRM 627 Div 2 500 point problem HOT 3
- Is it possible to get a hook when the contest starts or to get contest time when generating code?
- Is it possible to get a raw string of the problem description? HOT 3
- Is there a support to generate the tests by supplying the problem statement offline?
- Grid containing whitespaces are not displayed in HTML properly HOT 1
- Submission from terminal without going to arena HOT 1
- Tests are not working in Xcode 6.1 (Passed : 0/0 cases) HOT 1
- About Release and Roadmap plans HOT 1
- OverWrite existing workspace
- SRM 676 div2 Farmville the test code does not work
- Filtering source code before submit
- Is the default language configurable?
- "data" causes compile error in C++17
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 topcoder-greed.