-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
better parsing to avoid bugs when variables name contain whitespaces #529
Conversation
can a variable contain a space?? sounds like a problem :) |
industrial stuff is gonna industrial stuff ahah ¯_(ツ)_/¯ |
I'm sorry this is my first pull request, how do I implement your review? thanks |
just commit to the same branch you used initially and push, it should reflect in this PR. |
done! |
the perfect PR would also include a unit test that shows this change works as intended. are you willing to give that a shot also? |
yeah of course! thankyou for your patience. I'm gonna try! |
pushed it! I just realized though that compatibility with multiple consequential whitespaces should be implemented... |
let me try to improve it |
I guess it could be more elegant, but it works! |
can you have a look at the failing tests? The pre-commit hook and mypy check are failing. You can also run the tests locally with |
well I'm having issues trying to run it locally, but based from the feedback of the online checks it should be fine now |
hi, waiting for the workflows to be approved thankyou I developed on my local fork also the compatibility of multiple variables with the same name (it's possibile in case of structs), but better to wait to finish this first merge I think, |
well I'm actually struggling with these jobs :( |
It is most likely not your fault; it fails occasionally |
Hi, They all completed successfully :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
regex use substituted this code section
I'm really not able to takle that failing check.
a timeout that I don't think is due to my changes |
hi, all checks have been passed.. is it going to be merged? thankyou |
hi,
I'm working with the db layout import, to access as a dictionary the data.
This pull request regards variables with spaces in their name, which currently breaks the parsing.
With this lines of code the parsing in more generic, taking the last element as the type, the first as index and the remaining as the name
thankyou