-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Interactive rebase editor UI is broken #1172
Comments
Additional info - the first time I tried to rebase after update of the extension I got it working (but without icons). After restart of vscode on the next rebase I got this. |
No rebase editor/tab shown at all, in my case.
and the only thing I can do is either edit it or just |
I encountered the behavior in the OP when trying to rebase using both the |
I encountered with same problem,,,, |
@miluoshi can you try with v11.0.2 -- hopefully that will fix the CSP issues |
@MrCroft @guu980-dev your issue is #1163 |
Interesting. At first, it displayed broken UI with new Disable button Clicking on Disable did nothing. Then I changed tab (opened settings) and went back to interactive rebase tab and it displayed correctly then. It looks like it was stuck in some unitialized state and changing tab made it reload or something. |
Same thing for me. I'm on 11.0.2. Even changing the tabs like for @miluoshi doesn't work for me. |
@gabrielnemeth what os are you on? Are you connecting to any remote? ssh, wsl, etc? Can you also open up the devtools (open webview developer tools) to see if you see the same csp error? |
Hrm, that error always happens (not related to GitLens). Can you switch to the network tab of the devtools and hit F5 to refresh the webview? And see if any requests fail? Also do you see any errors on the Output pane for GitLens? |
Everything looks fine to me. No error whatsoever neither in network nor in the output pane. |
Does it happen on any rebase or specific to a set of commit or project? |
It does happen in all projects under wsl2. If I'm under "pure" windows I can't open the rebase editor, since every time I type the rebase command in powershell, it opens the vim version in the terminal. |
@gabrielnemeth I'm really at a loss. I can't reproduce any issue with the rebase editor not loading over WSL (or any other case). Can you try uninstalling GitLens from WSL and re-installing it? Though the other issue you mention will be resolved with: #1163 |
I think I got it. I think it's a resolution related issue. The issue is present on 4k, but if I change my laptop's resolution to full HD it works just fine. |
It happened to me again today. I don't have 4k monitor, if that helps. The worst thing is I even can't disable interactive rebase editor with proposed solution - when I rebase through UI it opens broken editor. Only option for me is to run rebase from terminal. |
Is anyone who is able to reproduce this able to debug into it? I can't reproduce this at all, locally, over WSL or any other remote. I'm really at a loss. It feels like this may be a VS Code bug, but not sure. /cc @mjbvz have you seen anything like this? |
I think I know. If the extension is installed locally and remotely then everything is fine. If the extension is installed only remotely, the settings and rebase interfaces are broken. At least that's the case for me. |
Great information! I will try that scenario out. Thank you! |
@hi0t How do you actually get it to not be installed locally? Are you manually uninstalling it locally after installing it in the remote? |
I still can't reproduce this 😢 |
I'm thinking this must be a vscode bug -- does this issue align with any of you experiencing this: microsoft/vscode#103884? Are you using WSL1 or 2 (I've been testing with 2), do you have a VPN or other special networking? We really need to find some way to reproduce this. |
If you are hitting this issue, besides the steps @eamodio mentioned, please also try setting This changes the implementation of VS Code's webviews (which power the rebase editor). If the webview works with iframes enabled, we at least know where to start looking in the code |
Sweet without |
This is an issue in VS Code (microsoft/vscode#103884). Until that is fixed, it seem that setting |
For me it was working again for some time and the issue came back a couple of days ago again. I'm using WSL2, the extension is intalled both locally and in WSL2, and I'm NOT using any VPN. The |
Who is still experiencing this issue? Unfortunately, neither Matt nor I can reproduce this on 1.52.1 or 1.53-insiders (I was able to for a short time, but now I can't no matter what I try). So any more details on your setup would be helpful. |
It looks like the microsoft/vscode#105536 has been fixed in 1.54-insiders (1.54 stable should ship later this week). Can anyone one experiencing the issue still reproduce it on 1.54-insiders? |
Works for me at 1.54. I will watch. |
I have been seeing this issue since using Remote SSH on 1.57.x, now on 1.58.1. I do not see it in current insiders (9520f0a515e7e24802c92f885a0efb242fca3831), with the same SSH server, same configuration, same extensions (thanks to settings sync). Interestingly, the same is true for another issue, which is Markdown math rendering - see here: I also wonder if my installation is simply broken somehow - I may try reinstalling vscode in a few days until someone is interested in me digging deeper into this. FYI: reinstalling the server component and only GitLens extensions on the remote server did not fix the issue, neither did removing all my settings. |
I have tried uninstalling and reinstalling local and remote VS Code, removed "%USERPROFILE.vscode" and "%APPDATA\Code". It's not only the rebase view - this is what "Welcome" looks like: WebView dev tools show only this - I wonder if this is related:
(And, yes, again - I seem the same warning in the context of microsoft/vscode#128309, and not in Insiders.) |
After some investigation, the problem I describe is 100% independent of GitLens, see microsoft/vscode-remote-release#5282 (comment) |
No errors in devTools console. No errors in
GitLens
orGitLens (Git)
extension output with debug mode on.Steps to Reproduce:
git rebase -i <commit_like>
git-rebase-todo
with a broken UI opens (see screenshot)Logs from GitLens output:
Logs from GitLens (Git) output:
The text was updated successfully, but these errors were encountered: