Open paul-rogers opened 6 months ago
@justschen looks like an issue in Core, transferring to VS Code. I do not believe Jupyter extension needs to do anything here (i.e. it should work even without making any changes in Jupyter ext)
hi @paul-rogers - currently debugging on your version (1.87.1) and I wasn't able to recreate this! I've tested on browsers where I was logged in, and logged out.
one thing that may help if you're still experiencing this is to log into GitHub in the editor -> bottom left, profile
icon, Sign-in with GitHub
. This will give you the button to Create
the issue instead of Preview
.
@justschen, thanks for trying to reproduce. Thanks also for the suggestion. A bit more background: I was logged into GitHub in my browser (Firefox on Linux Mint). This is the same browser where VS Code opened the new issue page. I'm hesitant to create an issue, just to test.
Perhaps this is one of the difficult issues: it depends on the OS, the browser or some bit of errant config on my system. It is a poor user experience to discard the user's problem entry, so it would be good to track down the problem, even if it is tedious to do so.
If it is intended behavior to not actually submit the issue if the user is not logged in in VS Code, then it would be kind to display a dialog telling the user to either log in, or submit the issue directly on GitHub. It is not helpful simply to discard the user's work in VS Code (though, a savvy user will groan then copy/paste the submission out of VS Code into GitHub.)
To create a preview issue, VS Code has to send a POST request to the browser via some API, does it not? Is the content of this message logged anywhere so we can see if it is correctly formed? Or, does VS Code first POST the new issue to GitHub, then send a URL to the browser to visit the preview page?
The question, then, whether this action is logged somewhere, and how might I find that log so I can post the results here?
@paul-rogers I'm unsure if you'll be able to capture that post request, but after debugging some more, I do see where this can go wrong (some unintended behavior with Auth and the preview state vs creation button). Taking a look now 👍
This still does not work. I have successfully used the Help → Report Issue feature to report an issue for PyLance within the last month. Worked perfectly. However, I just tried it again for the Jupyter extension and was again taken to the generic "add new issue" page with none of my material copied over.
One would think that if the functionality can work for PyLance, it should also work for Jupyter. At the very least, modify the report issue dialog to say something of the kind "I'm sorry, I can't report issues for Jupyter. Please go to Github and report the issue manually." That saves the confusion of seemingly losing one's carefully typed instructions.
Workaround for anyone stuck in this case: just open Help → Report Issue again. Your text will still be in the dialog. Copy your text out of the dialog and report the issue manually.
Followed the helpful instructions for submitting a bug report. Was impressed by the Report Issue feature mentioned. This should make things easier! But, alas, the "Preview on Github" button doesn't actually do anything useful.
This may be an integration or configuration issue with how the Jupyter extension project is connected up to the generic VS Code Report Issue feature.
Environment data
About output:
Expected behaviour
The Report Issue dialog, when the "Preview on Github" button is pressed, should preview on Github as a new issue report.
Actual behaviour
The new issue page appears without any of the information I provided.
Steps to reproduce:
Logs
No useful output could be found in any of the obvious logs.