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
URLExt.join
behaviour for protocol-relative URLs changed in 3.0.10
#13324
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
The Kite extension is no longer offered for download by the Kite Corporation on its web site, although their open source repositories remain available. According to kiteco/issue-tracker#767 , the Kite extension is compatible with older versions of JupyterLab (3.2.x) but not with newer, more actively maintained versions. The most recent commit to the JupyterLab Kite repo was on October 25, 2021, just over a year ago. I'm going to close this issue out because, unfortunately, the Kite extension doesn't seem to be actively maintained. |
@jweill-aws Even if the Kite extension doesn't seem to be actively maintained, with this workaround, it is still compatible with the latest jupyterlab. And it seems that the workaround is not for kite, but for jupyterlab. It seems the bug of jupyterlab, not of kite. |
@vipcxj Thanks for clarifying! I've reopened this issue. Please feel free to submit a pull request to improve JupyterLab's compatibility with this extension. |
The reasoning here is incorrect: the fact that a change in JupyterLab can workaround an issue you experience in a non-maintained third-party extension does not imply that the fault lies in JupyterLab. Context: The upstream dependency used by JupyterLab to parse URLs (url-parse) has changed how it handles some edge cases (URLs for file schema). This was due to a rewrite of some url-parse logic which was necessary for security reasons hence the new version was included in JupyterLab. Unfortunately that rewrite fixing security vulnerabilities also introduced a few issues which we picked up:
While most of the issues have been fixed, some of the behaviour changes were retained and described as intentional/wont-fix by the url-parse team as they follow the specification/reference implementation: unshiftio/url-parse#219 (comment). This necessitates a change in the extension to update the expectation, a thing that I found no good solution to. Instead I implemented a workaround in jupyterlab-lsp which "just works" (for now): jupyter-lsp/jupyterlab-lsp#599. Since the Kite extension is largely based on jupyterlab-lsp (reusing a lot of code), it would need a similar workaround. Someone tried to do so in kiteco/jupyterlab-kite#73. While the workaround that you link to, which changes implementation of However, if you do feel like exploring this in more details, please feel welcome to create a PR with such modification and extensive test coverage, targeting next major release (currently 4.0/master branch). The relevant code section is: jupyterlab/packages/coreutils/src/url.ts Lines 55 to 72 in b57ec96
|
URLExt.join
behaviour for protocol-relative URLs changed in 3.0.10
I updated the title to reflect the core issue. I just want to stress that changing the behaviour back to how it was in 3.0.10 might go against the specification (I am not convinced here), so any PR needs to be presented with a good research and strong rationale. |
Description
Kite extension doesn't work for Jupyter, Someone has report this bug. But the jupyterlab developer think it is caused by kite and closed the issue. After some research, I find out it may be the bug of jupyterlab.
Here is the link. I modify the file according @Jordan20190913 . and works. The file "jlab_core.d4ca3e2ff3a1a5677f23.js" should belong to jupyterlab.
Reproduce
Just install jupyter-kite with latest jupyterlab.
Expected behavior
kite should works
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: