-
Notifications
You must be signed in to change notification settings - Fork 9
fix: add more data for debug (context) #96
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
base: main
Are you sure you want to change the base?
Conversation
airween
left a comment
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.
The changes themselves looks good to me, but please add some more informative description, what's the reason that you've added this PR.
|
I honestly don’t know what else to say - it’s just additional debugging. It seems to be something native to TextX, which I’m not familiar with, as I don’t know the Python ecosystem. |
Then you should add that: the PR adds more information and helps debugging. And you can explain why did you think that the |
|
You're right, I’ve updated the PR accordingly. |
Thanks, I think now it's fine. But I tried your modification with a real example (I made a rule with wrong syntax and tried to parse that), and unfortunately I got this: Is there any version dependency for textx? |
|
I did a standard install - I don’t remember running any exotic commands.
Name: textX
textx (4.2.3) Can you show me what you tested, please? I’ll probably get the same error. |
uhmm, it seems like I have (had) an old version: Now I upgraded and have this one: but the error is still exists.
Sure: Note, that the file what I want to parse is wrong on purpose. |
Hi
I added some debug output to include the content of e.context, which comes from the TextX library in Python.
Currently, we only have the line and column numbers, along with a very brief message about the expected format.
This addition should provide more context and make troubleshooting easier when exceptions occur.