Comments (11)
some more add on Steps to Reproduce
- install vscode and enable remote ssh
- add new host with ssh -X username@host
- connect.
- Terminal -> New Terminal
from vscode.
Just to clarify, The $DISPLAY environment variable is supposed to live on the remote machine, right?
from vscode.
Yes, it is. local $DISPLAY may not need to be concerned.
I've tested with manually broken local $DISPLAY with "" + ssh -X connect to remote.
in this case, remote creates $DISPLAY but not works. (so it is totally different case with this issue)
from vscode.
And it works when you do ssh-remote + integrated terminal and manually set $DISPLAY ?
from vscode.
Hmm... actually, that "works" not properly works.
If I connect with other shell (for example bash terminal) and connect with ssh -X, local & remote creates display connection rule, between local and remote. that is what we called $DISPLAY in remote machine.
what we call "manually setting $DISPLAY" is borrowing those connection temporary.
When we lost other shell (for example bash terminal) which maintaining that connection,
$DISPLAY broke and not working any more.
from vscode.
for example )
ssh-remote + integrated terminal connected to remote get's
$DISPLAY variable of "" which is null
in this case, how we should set $DISPLAY ?
answer is we don't know.
to get answer, we need to prepare another ssh connection, which is not "ssh-remote + integrated terminal "
and after ssh connection, we get proper $DISPLAY
and copy it to our "ssh-remote + integrated terminal " to make display work.
$DISPLAY is dynamic in ssh connection so above procedure is mandatory.
if you think this situation is weird, please care.
from vscode.
Could you check wether remote.SSH.enableX11Forwarding
is enabled?
from vscode.
also remote.SSH.enableAgentForwarding
from vscode.
Hi, I'm here to post sorry text.
two configurations are all enabled,
remote.SSH.enableX11Forwarding
remote.SSH.enableAgentForwarding
but, after restarting remote for test, "ssh-remote + integrated terminal" works with no problem.
it creates proper $DISPLAY variable and everything works fine.
maybe it was just initialization problem in remote server.
from vscode.
May I close this issue?
from vscode.
You may.
from vscode.
Related Issues (20)
- Debugger make difference between list comprehension and dictionary comprehension HOT 1
- Some keyboard shortcuts not working even when developer-tools info that commands are dispatched.
- Reveal inline chat when showing "save block" message
- PowerShell
- Rename widget logging HOT 1
- Chat window's "Insert Into Terminal" keyboard shortcut does not work HOT 3
- unpredictable grouping of collapsed cells HOT 10
- preview for collapsed cells in diff view
- Spamming window output
- it is always showing open launch.json
- Enable trust link in getting started walkthrough does not run the correct command
- Make the icons and texts in the Start container of Getting Started page vertically centered
- Terminal copilot initial hint should not show up for extension terminals
- Missing Menu Bar on VSCode for MacOS Sonoma 14.6.1
- context `"inlineChatFocused": true` remains after closing generate cell
- Inline chat looks heavy now when response text is little
- Option to create fresh Profile with no sign in
- Old FileSearchProvider session not properly cancelled HOT 1
- Connectivity issues?
- Multiple occurances of line number column and scroll bar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode.