-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Emacs usage in VSCode terminal is broken #142754
Comments
I have a similar issue. No delay in starting up emacs, but emacs will open into scratch instead of the file argument. This happens both on a local Mac OS instance as well as on a remote Linux based instance. emacs will open file correctly when manually loaded from inside emacs once started. Version: 1.65.0-insider |
Also seeing this behaviour following the update that pushed the new side panel.
VS Code version: Code 1.64.2 (f80445a, 2022-02-09T22:02:29.527Z) System Info
Extensions (55)
(3 theme extensions excluded) A/B Experiments
|
cc @sbatten |
@deepak1556 we think this is a permissions related problem. it happens in 1.64 on linux/mac (before electron update) and we haven't touched node-pty recently. Do you know of any packaging changes that could've caused this? |
Here is code-insider running on Mac in a remote connection to a linux server, left bottom command issued, right resulting emacs editor opening in scratch. And here the same in a local (zsh) instance, same behaviour. For me VS code shows the same behaviour, except when I want to exit emacs the entire VS Code window will exit as if I had done Cmd-q. Before the recent update of VS code I did the content would show in emacs, but still when trying to save, the whole VS Code window closes. VS Code insider VS Code |
@meganrogge there we no package related changes for macOS/linux with
|
I did a couple tests, doing
Subsequently opening a file via M-x find-file (because I can't C-x C-f, as C-f is taken over by the find command), works just fine. One interesting observation that I made was that invoking
|
I don't think this can be a rendering only issue as it's not opening the file? We did have a rendering change in this area that @meganrogge pointed out: xtermjs/xterm.js@a63890e#diff-2c55cc3213368a05daba3b895bbb127ef81fa0dfa90f658ace9d89f12e963577R69 - @meganrogge can you see if reverting that fixes it? |
Reverting that did not fix it @Tyriar |
Ok, i have a clue. If you notice in the screenshots posted to this issue, they have
adding |
I wonder if there's an equivalent to this in |
Noticed that if I press a key while emacs is loading with a file argument it works, if no key is pressed it opens |
Confirmed! It worked for me also. |
adding (setq xterm-extra-capabilities nil) to ~/.emacs |
Fixed with the linked PR upstream |
to verify, run |
Issue Type: Bug
Since the latest update, when I try to run emacs in the VSCode terminal, Weird Stuff™ happens.
First, the editor doesn't show up right away. I get a blank terminal and have to hit a keystroke to have it redraw.
More importantly, when opening emacs with a file as the argument (or, for example, when using emacs as the git commit message editor) the editor opens to
*scratch*
.This did not happen in previous versions. Emacs works fine in the system terminal, just not VSCode's.
I've had a colleague successfully reproduce this behavior on their copy of 1.64.1 as well.
VS Code version: Code 1.64.1 (Universal) (d6ee99e, 2022-02-07T17:26:08.977Z)
OS version: Darwin arm64 20.6.0
Restricted Mode: No
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (14)
A/B Experiments
The text was updated successfully, but these errors were encountered: