-
-
Notifications
You must be signed in to change notification settings - Fork 1
rectx build
causes crash if source and build directory are not set
#62
Comments
SolutionThere are a couple of fixes that need to be done.
|
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 |
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 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. |
Ultimately, this bug is due to shortsightedness in template syntax. I should be able to get it patched in no time 😎. |
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. |
This issue has been closed due to a lack of activity! |
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. |
This issue has been closed due to a lack of activity! |
Describe the issue
So,
rectx build
was updated to read data from theproject.rectx
config file instead of just assuming where the executable is. However, this causes issues if the build/source/main/executable fields in the config are not set. If the fields are not set, thenbuild/run
does not know where anything is and just decides to crash.To Reproduce (only necessary for code)
Steps to reproduce the behavior described above:
Expected behavior
Project config needs to be filled automatically or build needs to search for the correct folders.
Screenshots
The text was updated successfully, but these errors were encountered: