-
Notifications
You must be signed in to change notification settings - Fork 103
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
String parsing results in FilePath as data-string
when error occurs
#536
String parsing results in FilePath as data-string
when error occurs
#536
Comments
I'd propose keeping the Rationale: It can confuse users if they don't see line numbers in some cases, and not in others. Additionally, the line number is still useful in the string. Also, the current usage of "data-string" or "urdf string" may preclude an actual file by that name, leading to confusing errors. (Super edge case, but still.) |
Thanks for the input @EricCousineau-TRI!
Yup that will make it quite clear. We can do that.
I thought about that too, and played around with The solution I can think of that would taken into account the edge case where |
Sorry for late response!
My suggestion would be to assume it's not the case hehe, at least to start. A concrete defect/use case can be filed as an issue later 😬 Will check out your latest PR changes. |
K, checked latest PR, doesn't do any file checks - looks great! |
Environment
sdf11
Description
Adding this test in
parser_TEST.cc
,Expected
FilePath
andLineNumber
to be missing.However due to the source being set to
data-string
, we get this.Steps to reproduce
parser_TEST.cc
./build/sdformat11/src/UNIT_parser_TEST
Output
Gist, https://gist.github.com/aaronchongth/74c9641202dbdc4e60142a8547449a1f
The text was updated successfully, but these errors were encountered: