hrszpuk / rectx

The powerful little project manager for the ReCT programming language!
GNU General Public License v3.0
6 stars 1 forks source link

Failing to generate "main.rct" when non-default template chosen #68

Closed hrszpuk closed 1 year ago

hrszpuk commented 1 year ago

Describe the issue When a non-default template is chosen (such as short, short_with_build, ...etc) a fatal error occurs stating that main.rct failed to generate.

To Reproduce (only necessary for code) Steps to reproduce the behavior described above:

  1. Create a new project with rectx new
  2. Fill in prompt as normal
  3. Chose a template short (or short_with_build)
  4. Fatal error will appear in console

Expected behavior Instead of producing an error, the project should generate as normal with the non-default template.

Screenshots Error message shown as non-default template is chosen: image

Additional context System information: image

hrszpuk commented 1 year ago

This is likely related to #62 and #45.

hrszpuk commented 1 year ago

Potential cause After re-running command with debug flags I found it's likely because "Source" directory does not exist. image The "Source" directory shouldn't exist with template short.

Founds the issue in the short.rectx.template file (on file server): image At the top I created the folder "src" but then set the file "amin.rct" sourceDir to "Source".

This is a template mistake lol...

hrszpuk commented 1 year ago

facepalm

hrszpuk commented 1 year ago

While I'm at it may as well edit the MIT License to remove <%EMAIL%> meta variable @hrszpuk

github-actions[bot] commented 1 year ago

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.

github-actions[bot] commented 1 year ago

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

github-actions[bot] commented 1 year ago

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.

github-actions[bot] commented 1 year ago

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