-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Generalize error reporting via signal and simplify widget #13375
PR: Generalize error reporting via signal and simplify widget #13375
Conversation
e6853a9
to
f7a5ff0
Compare
@nerohmot, it seems I had not yet included the signal (or I did in another API PR?) anyway, this addresses what we spoke today and also fixed some found issues. This is ready for review @ccordoba12. @dalthviz if you could also test this that would be great. Thanks. |
Thanks @goanpeca for this! Although the tests I added last time we changed this should catch errors with this functionality, this is a big change that deserves a bit of manual testing. @dalthviz, please test that we can still report errors generated by the PyLS and internal errors too. For the first ones, you can put any kind error here spyder/external-deps/python-language-server/pyls/plugins/jedi_completion.py Lines 54 to 57 in b350ea1
(e.g. For the second ones, I usually put an error here spyder/spyder/app/mainwindow.py Lines 2794 to 2799 in b350ea1
and then try to show the dependencies dialog from the Help menu. |
@ccordoba12 @goanpeca checked and in both cases (pyls and internal error) the report dialog pops-up 👍 however when trying to send the issue to Github this is what I'm getting: In the cmd used to run spyder I get the following:
|
Thanks for checking @dalthviz. Will take a look. |
f7a5ff0
to
a2bf4c6
Compare
@dalthviz fixed the issue. Could you test again? Also, it would be great if you could also test the Thanks! |
/binder |
# Since rowCount for python 3 and 2 varies on differents systems, | ||
# we use a range of values | ||
expected_output_range = list(range(min(row_count), max(row_count) + 1)) | ||
assert model.rowCount(model.index(0, 0)) in expected_output_range |
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.
This shouldn't be necessary now that we don't support Python 2.
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 number of items varies from python version (3.5, 3.6 3.7 3.8). The removal of py2 specific tests is done in the variable explorer migration PR.
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.
I checked this on Binder for both internal errors and issue reports and things are working as expected.
Thanks @goanpeca!
Description of Changes
Issue(s) Resolved
Fixes #
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct: @goanpeca