Skip to content
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: Add troubleshooting blurb and OS version to issue template and enhance UI #6154

Merged
merged 23 commits into from
Feb 17, 2018

Conversation

CAM-Gerlach
Copy link
Member

@CAM-Gerlach CAM-Gerlach commented Jan 7, 2018

Essentially, just the Github issue template and auto-report format from #6137 to simplify that one, plus a few extra changes to harmonize the two somewhat divergenct templates, decrease wordiness, and minor cleanup, plus print OS version.

However, we have a significant problem: Likely similar to that described in #5247 , the length gets cut off after a certain point already with just the template and only a few lines of traceback, as despite the shortening elsewhere the overall length is still somewhat longer with the extra ~400 characters from the blurb at the top, allowing around 1300 chars total before truncating. (This was tested in Firefox 52 ESR), and in some rare cases depending on the actual length of the text, etc, the GET request fails completely, presumably because the split happened on some sort of critical char/boundary. And to be honest, this is nothing new; I see dep reports cut off all the time due to this, even if the user did everything else right.

However, I'm not sure how to fix this unless we switch to the Github API, or send the requests on to our own servers and then pass them on to Github...seems like we probably shouldn't merge this for the time being, though the actual EditTemplate.md is unaffected obviously.

@pep8speaks
Copy link

pep8speaks commented Jan 7, 2018

Hello @CAM-Gerlach! Thanks for updating the PR.

Line 130:75: W291 trailing whitespace
Line 131:65: W291 trailing whitespace
Line 132:66: W291 trailing whitespace
Line 133:74: W291 trailing whitespace
Line 136:79: W291 trailing whitespace
Line 137:76: W291 trailing whitespace
Line 138:74: W291 trailing whitespace

Comment last updated on February 17, 2018 at 18:11 Hours UTC

@CAM-Gerlach CAM-Gerlach changed the title PRGitHub template troubleshooting PR: Add troubleshooting blurb and OS version to Github/auto-report issue template; harmonize the two and cut down Jan 7, 2018
@CAM-Gerlach CAM-Gerlach modified the milestones: v3.2.6, v3.2.7 Jan 7, 2018
@CAM-Gerlach CAM-Gerlach requested a review from ccordoba12 January 7, 2018 02:21
@CAM-Gerlach
Copy link
Member Author

And, yet another segfault on the introspection test, this time on Py3.5 + PyQt5, as I suspected might happen. Therefore, we presumably need to disable that pesky test...again.

See update above; I accidentally hit enter and it submitted it too soon, with no way for me to actually just delete it.

@ccordoba12
Copy link
Member

And, yet another segfault on the introspection test, this time on Py3.5 + PyQt5

The test I see failing is test_auto_backend. Did you create your branch from the latest 3.x? Because test_auto_backend only passes if you did that.

@CAM-Gerlach
Copy link
Member Author

The test I see failing is test_auto_backend. Did you create your branch from the latest 3.x? Because test_auto_backend only passes if you did that.

Yes, I just double checked it indeed has the latest 3.x commit ca27d3df. which is the merge commit of my mark-introspection-slow branch—the one that I'm suggesting likely introduced the problem because it is the same flaky behavior seen there.

@ccordoba12 ccordoba12 changed the title PR: Add troubleshooting blurb and OS version to Github/auto-report issue template; harmonize the two and cut down PR: Add troubleshooting blurb and OS version to Github/auto-report issue template Jan 7, 2018
"detail what you were doing when the error occurred. "
"Otherwise, your issue will likely be closed after 7 days. "
"Thanks.\n\n"
"**Note:** Delete this message before submitting."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this part go to the text published on Github when users press the Submit to Github button in our report errors dialog?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, so the apparent majority of users who are sending auto-generated error reports, or error reports from the Help menu, which appears to be the dominant source of "drive by" traceback only reports (rather than navigating to Github and hitting the "New Issue" button, where that text is filled from the .github issue template) will see it before they actually hit the submit their user-side/duplicate/incomplete issue and can get help faster. Or, if they don't remove it, we know they didn't even bother to read at it (as if they did, they would have seen the note saying it should be removed), giving stronger cause to summarily close it if desired.

Therein lies the problem, as mentioned above—due to the issue discussed in #5247 , at least in Firefox 52 ESR error reports are getting cut off around or below (due to % encoding) ~1300 real characters, and after editing it and the error template itself way down, perhaps more than you're comfortable with, that leaves around 100 characters of buffer after the dependencies are included. This should be okay for now for reports from the help menu, as they don't ever include more characters than this, and there's room for 2 or 3 more deps if need be, and to refine the format a bit more (maybe adding back a few words/headings here and there). Also, the change to the actual issue template is a non-issue since its done from Github, not Spyder.

However, this is a yuge problem for the autogenerated reports in many browsers, because it only leaves room for the shortest of tracebacks, and anything beyond that starts cutting off the dependencies, or (if long enough) the traceback itself. While this is already a problem (see #5247 ), this would exacerbate it.

Therefore, I suggest for now:

  • Updating the Github issue template with the blurb, (currently implemented with this PR) as it is not affected
  • Slimming down the existing basic structure of the Spyder-sent report where possible (currently implemented, and I can apply a few more tweaks to save a few more chars), to help a little more with traceback cutoff for now
  • Not including the disclaimer (or maybe a one-line one for now) if a traceback is included, to leave room for the latter (will be implemented in this PR momentarily), otherwise, including it for now (implemented here)
  • Including a interstitial dialog displaying the blurb if "Send to Github" is pressed from the error dialog, as originally proposed (future PR), or even better just integrating the text with the dialog from PR: Change error report dialog to enter issue description before submitting it #5346 (that other PR, or direct followup)
  • Some better alternative to the current "send the full text of the template in a GET request through the browser" method, that either just sends the traceback and the dep versions, maybe encoded in a char saving format, and then adds the static parts later...somehow...or use the Github API, or send the former to a Snyder-team-controlled webpage that adds the latter, prompts the user for the description, and sends that to Github by a non-truncated means...but maybe that's complicating things. (In the future, and probably not by me, but hopefully soon-ish)

In any case, I will submit a new commit soon with the immediate changes mentioned above.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Ok, so this needs PR #5346 to be merged first because @rlaverde discovered that many tracebacks are incomplete because it seems people are sending reports with Internet Explorer, which has a limit of 2000 chars in its URL bar.

Including a interstitial dialog displaying the blurb if "Send to Github"

Good idea. Please get the branch in PR #5346 and open a new PR with it and your new changes.

Some better alternative to the current "send the full text of the template in a GET request through the browser" method

Our idea is to force users to paste the contents of the error contained in the dialog into Github, instead of sending the whole error to the browser.

Copy link
Member Author

@CAM-Gerlach CAM-Gerlach Jan 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so this needs PR #5346 to be merged first because @rlaverde discovered that many tracebacks are incomplete because it seems people are sending reports with Internet Explorer, which has a limit of 2000 chars in its URL bar.

Well, the original PR yes, eventually to accomplish all the above bullets, but not as it now stands. As discussed at (perhaps too much) length in my previous comment, I've revised what I have here to take that into account, so it is a flat improvement on the current situation for the time being:

  • Adds the full error blurb to the semi-automated and manual Github reports with enough chars to spare for 3 additional dependencies even on the dev version (with a longer Spyder version code + SHA1),
  • Has 46 more chars for tracebacks (vs. the current 3.x) with a one-liner version of the blurb
  • Includes an additional data point (OS Version), a code block for the traceback, and refined formatting
  • Also helps mitigate the cut-off problem by a simple implementation of

Our idea is to force users to paste the contents of the error contained in the dialog into Github, instead of sending the whole error to the browser

And, crucially for getting merged promptly (ideally, for 3.2.6), it accomplishes this this without actually changing any existing UI text or program functionality, just the text/formatting of the error reports.

As mentioned, from my testing it appears this is also a problem on (at least) Firefox 52 ESR and Chrome on Windows 8.1 (which should natively support it); so it likely happens with all browsers on Windows. It seems many reports are cut off right now, especially the dependencies. Therefore, a 3.2.6 merge on this would help mitigate this until 3.2.7 or 3.2.8, if that's still possible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't write so long comments on the revision thread but on the comments of the PR itself.

Copy link
Member

@ccordoba12 ccordoba12 Jan 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reasons for me to ask you do that:

  1. Your comments have very little to do with my simple question.
  2. Now I have to skip this long thread to do other revisions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry; I was unaware of that convention. Would you like me to delete them and repost them on the main thread?

@CAM-Gerlach
Copy link
Member Author

Also, is there a way we can just include it in this header?

image

@ccordoba12
Copy link
Member

Also, is there a way we can just include it in this header?

Don't know, I guess you need to ask Github staff for that.

@CAM-Gerlach
Copy link
Member Author

CAM-Gerlach commented Jan 7, 2018

@ccordoba12 Pushed a new version, as referenced in my latest reply in the review comment chain above, that implements what I discussed in my comment before your latest reply (and should also help address your concerns in that following comment). Here are some screenshots:

Report Issue from Help Menu

Current 3.x
image
This PR
image

Send to Github Error Report

3.x
image
This PR
image

12345678001234567800123456780012345678001234567800123456780012345678001234567800
12345678001234567800123456780012345678001234567800123456780012345678001234567800
12345678001234567800123456780012345678001234567800123456780012345678001234567800
12345678001234567800123456780012345678001234567800123456780012345678001234567800
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this big block doing here? Is it an image or something?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More questions:

  • Is this the SHA1 string you were talking about above?
  • Could you better explain why this is needed?
  • Could you move it to the beginning of this file as a constant? It could be called SHA1_REPORT_ERROR or something like that.
  • Since this constant seems to be the same string repeated several times, please generate it using the multiplication properties of strings in Python, i.e. SHA1_REPORT_ERROR = initial_string * 20.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its a total, rank, n00b mistake on my part; I must have somehow missed it despite usually being very careful to check git status and git diff every time before I commit. Its just a simple kludge for testing the maximum report length before cutoff that was never supposed to be committed, which happened despite several precautions I took to make sure I didn't screw up, as I often do. I'm sorry. Needless to say, it'll be gone in the next one.

issue_template = """\
## Description
%s
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use format here, instead of simple string replacement because now it's really hard to understand what each replacement corresponds to. So this should be (if I'm correct) {reminder}, instead of %s.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do, thanks. I typically use format myself but didn't want to mess with the existing code without being instructed to or a strong reason.

**Please provide any additional information below**

## Paste Traceback/Error Below
(from `View > Panels > Internal Console`)
Copy link
Member

@ccordoba12 ccordoba12 Jan 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this. The traceback should be copied automatically to the clipboard when users press Send to Github and they'd only need to press Ctrl+V or do a browser Paste here to paste it.

Besides, when the error dialog is active, tracebacks are not sent to the internal console.

Copy link
Member Author

@CAM-Gerlach CAM-Gerlach Jan 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will implement that as requested. A more general concern (if we don't include the tracebacks automatically) is that users, following previous behavior trends, will as often as not fail to paste them and thus we'll get nothing, but I suppose there is only one way to find out...

Copy link
Member Author

@CAM-Gerlach CAM-Gerlach Jan 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or will #5346 implement it instead? If so, what should to be done here (other than removing the ``(from View > ...) line)?

@ccordoba12
Copy link
Member

ccordoba12 commented Jan 8, 2018

Therefore, a 3.2.6 merge on this would help mitigate this until 3.2.7

This PR still needs work, so I don't think it's ready for 3.2.6. As I said before, I don't want to rush this and it'd be better to merge PR #5346 first.

@CAM-Gerlach, I really appreciate your work but we can make a new release whenever we want. I think 3.2.7 could only include these fixes and be released in three weeks at most, depending on how much work and time is put on it (I can move bugs not related to report errors improvements for 3.2.8).

@CAM-Gerlach
Copy link
Member Author

This PR still needs work, so I don't think it's ready for 3.2.6. As I said before, I don't want to rush this and it'd be better to merge PR #5346 first.

Absolutely, the right call for sure of course. I feel rather silly trying to push it, and I'm sorry I did so. Thanks for your understanding.

@CAM-Gerlach
Copy link
Member Author

Sorry for the delay; I was at the conference from 7AM through 10PM here without my laptop, though I did ask around about Spyder.

In any case, implemented all the suggestions above, plus a test and some minor refactoring/cleanup. Let me know where you'd like me to go from here, to best integrate with #5346 . However, it now does not depend on anything in that PR to function or deliver an improved user experience from the get-go, but would certainly introduce merge conflicts with that PR, which would have to be fixed by rebasing one after the other is submitted.

@ccordoba12
Copy link
Member

I think the best course of action is to finish #5346 first and then decide about any other improvements on top of that.

The idea to finish that one is that after Submit to Github is pressed, users are sent to a new template page, where they should be asked to paste the contents of their clipboard. Those contents will be saved by us after pressing Submit to Github and they will include the description of the problem, all the necessary information (Operating system, release version, etc) and the full traceback.

I am going to finish that PR myself because it's a bit tricky :-)

@CAM-Gerlach
Copy link
Member Author

Okay, sure thing—that makes a lot of sense.

The idea to finish that one is that after Submit to Github is pressed, users are sent to a new template page, where they should be asked to paste the contents of their clipboard.

Oh okay, so sort of like this idea?

send the former to a Snyder-team-controlled webpage that adds the latter, prompts the user for the description, and sends that to Github by a non-truncated means

I figured that could make sense for the longer term, but wasn't sure how realistic it was. Or do you mean something else?

@CAM-Gerlach CAM-Gerlach changed the title PR: Add troubleshooting blurb and OS version to Github/auto-report issue template [WiP] PR: Add troubleshooting blurb and OS version to issue template and enhance UI Jan 16, 2018
@CAM-Gerlach CAM-Gerlach force-pushed the github-template-troubleshooting branch from 228436e to f29d326 Compare February 12, 2018 00:38
@CAM-Gerlach CAM-Gerlach changed the title [WiP] PR: Add troubleshooting blurb and OS version to issue template and enhance UI PR: Add troubleshooting blurb and OS version to issue template and enhance UI Feb 12, 2018
@@ -1,28 +1,42 @@
**PLEASE READ:** Before reporting here, *please* carefully read our **Troubleshooting Guide** at <https://github.com/spyder-ide/spyder/wiki/Troubleshooting-Guide-and-FAQ> and search the issues page here for your error/problem, as most postd bugs are duplicates or easy fixes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should enclose this paragraph in a markdown comment. I'd expect a lot of people forget to remove it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would otherwise do so, but my reason behind making it visible and asking the user to delete it themselves is that it serves as a canary; if it show up not-deleted on a post, its an obvious sign to both us and the user that they very likely haven't bothered to read the "Please Read" section, which states quite clearly that they should delete it, and therefore further implies that they haven't done the basic due diligence of reading the troubleshooting guide or checking for other issues first. Furthermore, making it show up on the actual post gives the user more chances to see it, both in the preview and once they've posted it. However, if you still think I should comment it, then I will of course do so; let me know.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we're split in this decision. @spyder-ide/core-developers, @spyder-ide/junior-developers, what do you think about this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @ccordoba12, its most likely that people will forget to remove it from their troubleshooting reports

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to see a screenshot first :P

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I vote for enclosing in markdown. Less work for everyone.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also close incomplete reports right off the bat. Such reports never get additional info anyway.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CAM-Gerlach, I think the issue is settled now. Please enclose the necessary text in a markdown comment, so we can merge this one ASAP.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ccordoba12 Yes indeed, I've done so (and a few other fixes), and final CI tests are running now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnsebgosselin I certainly wouldn't say "never", but it does seem pretty rare for those that are just a traceback and not even a descriptive title. We could just close such "driveby" issues with our usual message, and ask the OP to reopen and comment if so. However, it is only a few minutes per day to close the status:Awaiting Followup issues as it is, and they're easy to keep track of, so it would only save a few minutes of my time per day at most, and we should see even fewer of them once this PR and its brethren go into effect, so its really a wash IMO.

@@ -1,28 +1,42 @@
**PLEASE READ:** Before reporting here, *please* carefully read our **Troubleshooting Guide** at <https://github.com/spyder-ide/spyder/wiki/Troubleshooting-Guide-and-FAQ> and search the issues page here for your error/problem, as most postd bugs are duplicates or easy fixes.

If you do post an issue here, please describe step by step in detail what you were doing when the error occurred,. Otherwise, your issue will likely be closed after 7 days. Thanks.
Copy link
Member

@ccordoba12 ccordoba12 Feb 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This paragraph should be in a markdown comment too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above.


If you do post an issue here, please describe step by step in detail what you were doing when the error occurred,. Otherwise, your issue will likely be closed after 7 days. Thanks.

**Note:** Delete this message before submitting.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we could remove this one, which is a bit misleading.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above.




### Paste Traceback/Error Below (if applicable)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this section should be part of the issue template because that's why we have our new error dialog.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just for the template, for users who report manually via Github, not our automatic system (e.g. if the error occurs on Spyder startup, they can't get it to launch at all, or they temporarily/permanently disabled the error dialog). Many of those cases would likely have a traceback, or at least an error message, and this would make it clear we need it if so. Let me know if you still want me to remove it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's leave this section for now.

"If you don't find anything, enter a step-by-step description "
"(in English) of what led up to the problem; issue reports "
"without a clear way to reproduce them will be closed. Thanks.\n\n"
"**Note:** Please delete this message before submitting."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned above, this should be in a markdown comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above.

@ccordoba12
Copy link
Member

@CAM-Gerlach, everything looks pretty good! I just left some minor comments :-)

@CAM-Gerlach
Copy link
Member Author

@ccordoba12 Thanks for all the feedback; I'll take care of it as soon as I get home from work today.

@CAM-Gerlach
Copy link
Member Author

@ccordoba12 Hey, had some feedback for your feedback. Let me know what you'd like me to do, and if needed I'll push it ASAP.

@@ -1,28 +1,42 @@
**PLEASE READ:** Before reporting here, *please* carefully read our **Troubleshooting Guide** at <https://github.com/spyder-ide/spyder/wiki/Troubleshooting-Guide-and-FAQ> and search the issues page here for your error/problem, as most postd bugs are duplicates or easy fixes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/postd/posted

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks,

@@ -1,28 +1,42 @@
**PLEASE READ:** Before reporting here, *please* carefully read our **Troubleshooting Guide** at <https://github.com/spyder-ide/spyder/wiki/Troubleshooting-Guide-and-FAQ> and search the issues page here for your error/problem, as most postd bugs are duplicates or easy fixes.

If you do post an issue here, please describe step by step in detail what you were doing when the error occurred,. Otherwise, your issue will likely be closed after 7 days. Thanks.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End of sentence - occurred,.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks,

@@ -2897,7 +2918,7 @@ def _check_updates_ready(self):
latest_release = self.worker_updates.latest_release
error_msg = self.worker_updates.error

url_r = 'https://github.com/spyder-ide/spyder/releases'
url_r = __project_url__ + '/releases'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure CAM do, but any particular advantage in this context (one variable string, one fixed string) to offset the lesser code clarity stemming from loss of sequentiality and greater complexity?

@@ -2459,7 +2477,7 @@ def report_issue(self, body=None, title=None):
if body is None:
body = self.render_issue()

url = QUrl("https://github.com/spyder-ide/spyder/issues/new")
url = QUrl(__project_url__ + '/issues/new')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be a little nitpicky, but since string concatenation isn't encouraged, maybe use format strings?

I'm getting spoiled by 3.6, url = QUrl(f'{__project_url__}/issues/new'), even though Spyder can't use that yet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be a little nitpicky, but since string concatenation isn't encouraged, maybe use format strings?

Right, but isn't that just for concatenating more than two strings, and even then as a performance benefit on the order of microseconds unless you're concatenating a ton of strings or doing it in a loop? For two strings, both my own experience and what I've read has indicated a simple + is both clearest and just as fast.

I'm getting spoiled by 3.6, url = QUrl(f'{__project_url__}/issues/new'), even though Spyder can't use that yet.

Same...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, you're right.

@CAM-Gerlach
Copy link
Member Author

CAM-Gerlach commented Feb 17, 2018

@ccordoba12 The Travis PyQt5 builds kept segfaulting at test_get_syspath but eventually succeeded on the third repetition, and the Py3.5 build had one of the usual random test_calltip failures but I restarted it and it worked fine.

In any case, thanks all for your feedback. I Markdown-commented the message and removed the delete line, as agreed. I also made a few other similar instructions in the template into markdown comments, and uncommented a few lines that were inside backticks (and thus wouldn't work anyway), along with fixing a few inconsistencies/issues in the text and formatting between the various versions and the typos @csabella pointed out.

Screenshots:

Slightly revised error reporting dialog:

image

Github web error report (issue template):

image

Help menu "Report Issue" report:

image

Automatic issue report from new dialog:

image

@ccordoba12
Copy link
Member

@CAM-Gerlach, is this one ready?

@CAM-Gerlach
Copy link
Member Author

@ccordoba12 Yes.

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all your hard work on this one @CAM-Gerlach! Really great improvement!

@ccordoba12 ccordoba12 merged commit bd7cb0a into spyder-ide:3.x Feb 17, 2018
ccordoba12 added a commit that referenced this pull request Feb 17, 2018
@csabella
Copy link
Contributor

Congrats! Great job.

@CAM-Gerlach
Copy link
Member Author

@csabella Thanks to you for spotting my silly typos, to @ccordoba12 for all his help, and @ccordoba12 and @rlaverde for doing most of the real work in their PRs.

@CAM-Gerlach CAM-Gerlach deleted the github-template-troubleshooting branch March 4, 2018 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants