You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to render cell UI after opening Notebook file in remote window #123494
Can you run "Set Log Level", pick Trace, try the scenario again, then share the log from the Log (Window) output channel? Otherwise we might have to debug together.
Some more interesting behaviour. At some point the Notebook stops loading and its empty. If I move my cursor to the file I see the "+Code" and "+Markdown" hover-over options:
Even after clicking the two options I don't see cells in the Notebook.
One last thing I should mention - this only happens in a remote window wherein we call the showNotebookDocument API as part of the resolver. In a remote window that is created with a simpler resolver (just connect, don't try and open a Notebook) the Notebooks are rendered correctly:
It's probably easiest to just hack an encoded slash/percent sign into the URI that you create for the webview resources. I can send a build of remote-ssh that does this if you need it.
This url does not seem to be valid. You can test this using new Url(...). The encoded slash (%2f) seems to cause the issues here. This results in our service worker never even seeing requests for these resources
Digging into this a bit farther, here's an original URL that we get passed in a call to asWebviewUri:
This second URL is invalid. However what's interesting is that if you simply replace vscode-remote with https in the original url (and don't do any other transforms), it also becomes invalid. I don't fully understand this yet but am looking to see if we can better encode the authority to avoid this
If things still don't seem right, please ensure you're on version e4ac631 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
Activity
vscode-triage-bot commentedon May 10, 2021
Pinging
notebooktopic followers: Claudia Regio (@claudiaregio) Rich Chiodo (@rchiodo) Jim Griesmer (@greazer) Don Jayamanne (@DonJayamanne) jilljac (@jilljac)SiddhanthUnnithan commentedon May 10, 2021
Adding Sergio Villalobos (@sevillal), Shantnu Suman (@shsuman), Abraham Omorogbe (@AbeOmor) for tracking
roblourens commentedon May 10, 2021
This worked before right?
roblourens commentedon May 10, 2021
The basic scenario still works for me - using
showNotebookDocumentto open a notebook from the resolver. Tried with github-issues and jupyter.roblourens commentedon May 10, 2021
Can you run "Set Log Level", pick Trace, try the scenario again, then share the log from the
Log (Window)output channel? Otherwise we might have to debug together.SiddhanthUnnithan commentedon May 10, 2021
log_level-trace_nb_open_issue.txt
SiddhanthUnnithan commentedon May 10, 2021
Some more interesting behaviour. At some point the Notebook stops loading and its empty. If I move my cursor to the file I see the "+Code" and "+Markdown" hover-over options:
Even after clicking the two options I don't see cells in the Notebook.
SiddhanthUnnithan commentedon May 10, 2021
I clicked "+ Code" a number of times and saved the file. When opening it through the Azure ML Studio I see the following:
Looks like the edit and save works successfully and its just that I don't see the output in the window.
SiddhanthUnnithan commentedon May 10, 2021
One last thing I should mention - this only happens in a remote window wherein we call the showNotebookDocument API as part of the resolver. In a remote window that is created with a simpler resolver (just connect, don't try and open a Notebook) the Notebooks are rendered correctly:
roblourens commentedon May 11, 2021
I haven't used azure ml notebooks, how can I set up to repro this myself? Or if you'd prefer, I could try to debug this on a call tomorrow.
SiddhanthUnnithan commentedon May 11, 2021
I think a call would be best - let me find some time for the two of us and a few others for tomorrow.
roblourens commentedon May 12, 2021
Summary, the problem is with the way we pack a resource URI into another URI to be loaded in the webview here
vscode/src/vs/workbench/contrib/webview/common/webviewUri.ts
Line 15 in 307cb32
It's fixed by this large change b847eb3
and also by this change, which is potentially impactful 05ef37c and too suspicious to prepare as a candidate.
It can also be worked around on the extension side by not putting uri-encoded slashes into the remote authority.
23 remaining items
roblourens commentedon Jul 1, 2021
It's probably easiest to just hack an encoded slash/percent sign into the URI that you create for the webview resources. I can send a build of remote-ssh that does this if you need it.
Try to handling paths with encodes percent or slash
mjbvz commentedon Aug 7, 2021
Thanks for the example extension roblourens. Using it, I see urls such as the following inside of webviews (I've connected to localhost):
This url does not seem to be valid. You can test this using
new Url(...). The encoded slash (%2f) seems to cause the issues here. This results in our service worker never even seeing requests for these resourcesDigging into this a bit farther, here's an original URL that we get passed in a call to
asWebviewUri:The function transforms it into:
This second URL is invalid. However what's interesting is that if you simply replace
vscode-remotewithhttpsin the original url (and don't do any other transforms), it also becomes invalid. I don't fully understand this yet but am looking to see if we can better encode the authority to avoid thisvscode-triage-bot commentedon Aug 26, 2021
This bug has been fixed in the latest release of VS Code Insiders!
Sid Unnithan (@SiddhanthUnnithan), you can help us out by commenting
/verifiedif things are now working as expected.If things still don't seem right, please ensure you're on version e4ac631 of Insiders (today's or later - you can use
Help: Aboutin the command palette to check), and leave a comment letting us know what isn't working as expected.Happy Coding!
roblourens commentedon Aug 27, 2021
I was able to render cell outputs in a remote with % in the authority, so I think it's good now.
Try to encode authority for asWebviewUri