-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
LiveShare participants incorrectly opening every Clojure file as if via "Open with Notebook" #1850
Comments
This is what we have set for notebook opening. It seems that somehow the |
We have the same issue. Moreover, after the guest has opened a file (and hence sees it as a notebook), if the host then also opens the file then the host also sees it as a notebook. |
I've been advised that filing an issue on LiveShare might be the way to go with this one: https://github.com/MicrosoftDocs/live-share |
Ah yes sorry. I looked into this and couldn't find any other extension that does it differently. It does seem to be a bug in vscode |
@pithyless @svdo does it make any difference if you configure the default editor for the workbench? "workbench.editorAssociations": {
"*.clj": "default"
}, It shouldn't matter, but bugs are a bit like bugs are... |
@PEZ That does not seem to make a difference for me. |
When I run the guest in the debugger in code-insiders, I see this in the window log when I open a file:
And then (but that seems less serious):
|
@PEZ Can you maybe say more about why this should be filed at the live share repo? I'd be happy to do so, but I don't quite understand why downgrading Calva solves the issue if it's a live share issue? |
I reported #4765 on the Live Share repo. |
Downgrading Calva solves it because the earlier Calva version didn't have notebooks, so they couldn't interfere with LiveShare. |
Oh and we cant make notebooks "more optional" because the existence of notebooks needs to be hardcoded into the projects.json file. I tried finding a way to register it dynamically so that you can disable it, but the API to do that is only in a proposed state (interestingly it's called "LiveShare" something...). |
Just documenting: changing the notebooks setting in |
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
For people running into this issue: I created a temporary PR #1873 that changes the file name extensions used for Clojure notebooks, so that normal Clojure files are no longer opened as notebooks. The PR is automatically built by CircleCI, you can grab a vsix there and manually install it. |
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
This is a work-around because currently Live Share causes clojure files to always be opened as notebooks. See: BetterThanTomorrow#1850
We have now released Calva v2.0.340 in which we move the static declaration of which files should be associated with Calva Notebooks over to a separate extension, Calva Spritz. In theory, disabling the Calva Spritz extension should get rid of this issue for LiveShare + Calva users. The extension can be disabled and re-enabled at will, so even if you forget to disable it before joining a LiveShare session, you should be able to fix the problem after the fact: calva-spritz-clojure-notebooks.mp4 |
TL;DR
In
v2.0.292
Clojure Notebooks were introduced.When using Calva with LiveShare the participants cannot open any Clojure files as regular files; they always open as if they chose "Open with Notebook".
Downgrading to
v2.0.291
removes problem (running with VSCode1.70.2
).Steps to reproduce:
Furthermore, after some exploration we found that if the participant opens the context menu for a
.edn
file in the sidebar, we see:In comparison, a
.clj
file has the following context-menu:Notice the distinct lack of "Open With..." for the
.clj
file. The host sees "Open With..." both for the.edn
and.clj
file.In contrast, if the host opens a Clojure file and uses the "Focus Participants" icon, the file will open correctly as a Clojure file for the participant.
Reducing false-positives
We have tried the following so far to reduce false-positives:
Candidates for additional tests (if necessary)
We have not yet tried:
No project-uri was specified
. (I think this issue is independent, but throwing it out there just in case)I am not sure if any of the steps that have not been tried are significant in reproducing the issue, but I mention them in case something rings a bell.
Next Steps (short-term)
We have temporarily downgraded to
v2.0.291
to avoid this issue while pair programming via LiveShare.Next steps (long-term)
Hopefully fix the bug :)
PS. Thanks for all the work with Calva! ❤️
The text was updated successfully, but these errors were encountered: