Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception when using short command line parameter. #66

Open
Sqeaky opened this issue Jul 27, 2020 · 2 comments
Open

Uncaught exception when using short command line parameter. #66

Sqeaky opened this issue Jul 27, 2020 · 2 comments
Labels
Milestone

Comments

@Sqeaky
Copy link
Member

Sqeaky commented Jul 27, 2020

When we pass a command line parameter shorter than 4 chars and not the word "help" this happens:

./Mezzy_Tester asdf
Uncaught exception of type std::exception made it to main. it says:
basic_string::substr: __pos (which is 5) > this->size() (which is 4)

Instead, this should be failing if the argument is invalid then the usage/help message should be displayed. If the argument is valid it should be processed as normal.

@Sqeaky Sqeaky added the bug label Jul 27, 2020
@Sqeaky Sqeaky added this to the 1.0 milestone Jul 27, 2020
@Sqeaky
Copy link
Member Author

Sqeaky commented Jul 27, 2020

@hlayne35 This might be an easy one if you want to try.

@hlayne35
Copy link

I tried to build Mezz_Test so I could look for the bug, and CMake pooped itself. I reset my git branches and pulled the master, making sure all old files were gone, but Jagati keeps having errors? Below are some of the error gibberish and the CMake logs.

`-- Header File Added to 'StaticFoundationHeaderFiles' : '/home/hlayne/Programming/C++/Sqeaky_stuff/Mezz_StaticFoundation/include/CrossPlatformExport.h'
RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at /home/hlayne/Programming/C++/Sqeaky_stuff/Mezz_Test-build/Jagati.cmake:1437 (if):
if given arguments:

"/home/hlayne/Programming/C++/Sqeaky_stuff/Mezz_StaticFoundation/include/CrossPlatformExport.h" "MATCHES" "/home/hlayne/Programming/C++/Sqeaky_stuff/Mezz_StaticFoundation/dox/"

Regular expression
"/home/hlayne/Programming/C++/Sqeaky_stuff/Mezz_StaticFoundation/dox/"
cannot compile
Call Stack (most recent call first):
/home/hlayne/Programming/C++/Sqeaky_stuff/Mezz_Test-build/Jagati.cmake:1243 (AddJagatiDoxInput)
/home/hlayne/Programming/C++/Sqeaky_stuff/Mezz_StaticFoundation/CMakeLists.txt:77 (AddHeaderFile)

-- Configuring incomplete, errors occurred!
See also "/home/hlayne/Programming/C++/Sqeaky_stuff/Mezz_Test-build/CMakeFiles/CMakeOutput.log".
See also "/home/hlayne/Programming/C++/Sqeaky_stuff/Mezz_Test-build/CMakeFiles/CMakeError.log".`

CMakeError.log
CMakeOutput.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants