-
Notifications
You must be signed in to change notification settings - Fork 27
Improve user expeirence #15
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: master
Are you sure you want to change the base?
Conversation
|
|
||
| cur_file_var = ContextVar("cur_file_var",default=None) | ||
|
|
||
| class Pos: |
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.
Maybe use @dataclasses.dataclass from the standard library here (https://docs.python.org/3/library/dataclasses.html)
| print(e) | ||
| raise CompileError(f'Unable to compile {self.block_name} at line {self.line}') | ||
| except e: | ||
| print(traceback.format_exc()) |
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.
Why are we getting rid of printing tracebacks? Having tracebacks are invaluable for debugging.
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.
Correct, sorry , I was thinking about the end user experience however , which suffers from them.
| self.log(str(e) + '\a') | ||
| except CompileError as e: | ||
| self.log(str(e) + '\a') | ||
| pretty_print_error(e) |
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.
pretty_pint_error is not adding terminal bell character \a to end like existing system
|
|
||
| time.sleep(1) | ||
| except KeyboardInterrupt: | ||
| print("Goodbye!") |
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.
Maybe something like Exiting from keyboard interrupt instead?
|
sorry I'm not addressing the requested changes but I'm depressed and kinda in a dump rn :/ |
dirattributes can now be relative to a user configured instance folder, instead of being absolutepathlib.Pathinstead of stringssorry for not making an issue about this first but I just was in the mood to code :P