Qix- / better-exceptions

Pretty and useful exceptions in Python, automatically.
MIT License
4.59k stars 203 forks source link

Initial hyperlink implementation. #97

Open stuaxo opened 5 years ago

stuaxo commented 5 years ago

Initial implementation of hyperlinks, set BETTER_EXCEPTIONS_HYPERLINKS=1 to activate.

This is not as useful as I expected as there line numbers can't be implemented yet [1], I'd probably still use this though.

I assume this needs tests, I haven't looked at how to do these yet.

[1] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#gistcomment-2872221

TODO: Don't output hyperlink for filenames like <console>

stuaxo commented 4 years ago

Silly question, if I click `resolve conversation' will it apply the suggested change?

alexmojaki commented 4 years ago

https://help.github.com/en/articles/incorporating-feedback-in-your-pull-request