code-server | VS Code in the browser
kandi X-RAY | code-server Summary
kandi X-RAY | code-server Summary
VS Code in the browser
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of code-server
code-server Key Features
code-server Examples and Code Snippets
Community Discussions
Trending Discussions on code-server
QUESTION
I'm trying to connect to a host with Vscode ssh, but I keep getting "could not establish connection to 'hostname'".
I'm confused because it was working perfectly fine and then it stopped working out of the blue.
I did not change the hostname or any config related to ssh in vscode
I can still connect to the host in PuTTY, but I'd like to use vscode
output:
...ANSWER
Answered 2022-Apr-01 at 19:33Turns out it was because the disk quota was exceeded in the remote machine. This was fixed after I freed up some space in the remote machine.
QUESTION
Trying to connect to a host over the Remote-SSH of Visual Studio Code, I'm getting the following pop-up error:
...ANSWER
Answered 2021-Oct-15 at 05:51@oakad Thank you for the suggesting and pointing to upgrade the libstdc++ on the remote side.
- The host that I was using was RPi 3B Debian(Jessie). I tried to upgrade the remote box on vs code and the
sudo apt-get update
- This thread addressed libstdc++.so.6: version `GLIBCXX_3.4.22' not found issue
So tried
QUESTION
So I have this launch.json
launch.json
...ANSWER
Answered 2022-Mar-27 at 15:54Open the "run and debug" tab from the sidebar and at the bottom you would find a section called "breakpoints".
Under that, uncheck "raised exceptions" and "user uncaught exceptions".
QUESTION
CONTEXT: We have a platform where users can create their own projects - multiple projects per user. We need to provide them with a browser-based IDE to edit those projects. We decided to go with coder-server. For this we need to configure an auto-scalable cluster on AWS. When the user clicks "Edit Project" we will bring up a new container each time. https://hub.docker.com/r/codercom/code-server
QUESTION: How to pass parameters from the url query (my-site.com/edit?project=1234) into a startup script to pre-configure the workspace in a docker container when it starts?
Let's say the stack is AWS + ECS + Fargate. We could use kubernetes instead of ECS if it helps.
I don't have any experience in cluster configuration. Will appreciate any help or at least a direction where to dig further.
...ANSWER
Answered 2022-Mar-13 at 00:49The above can be achieved using multiple ways in AWS ECS. The basic requirements for such systems are to launch and terminate containers on the fly while persisting the changes in the files. (I will focus on launching the containers)
Using AWS SDK's:The task can be easily achieved using AWS SDKs, Using a base task definition. AWS SDK allows starting tasks with overrides on the base task definition.
E.G. If task definition has a memory of 2GB then the SDK can override the memory to parameterised value while launching a task from task def.
Refer to the boto3 (AWS SDK for Python) docs.
Overall Solution
Now that we know how to run custom tasks with python SDK (on demand). The overall flow for your application is your API calling AWS lambda function whit parameters to spin up and wait to keep checking task status and update and rout traffic to it once the status is healthy.
- API calls AWS lambda functions with parameters
- Lambda function using AWS SDK create a new task with overrides from base task definition. (assuming the base task definition already exists)
- Keep checking the status of the new task in the same function call and set a flag in your database for your front end to be able to react to it.
- Once the status is healthy you can add a rule in the application load balancer using AWS SDK to route traffic to the IP without exposing the IP address to the end client (AWS application load balancer can get expensive, I'll advise using Nginx or HAProxy on ec2 to manage dynamic routing)
Ensure your Image is lightweight, and the startup times are less than 15 mins as lambda cannot execute beyond that. If that's the case create a microservice for launching ad-hoc containers and hosting them on EC2
Using Terraform:If you looking for infrastructure provisioning terraform is the way to go. It has a learning curve so recommend it as a secondary option.
Terraform is popular for parametrising using variables and it can be plugged in easily as a backend for an API. The flow of your application still remains the same from step 1, but instead of AWS Lambda API will be calling your ad-hoc container microservice, which in turn calls terraform script and passing variables to it.
Refer to the Terrafrom docs for AWShttps://registry.terraform.io/providers/hashicorp/aws/latest
QUESTION
I follow the guide to install code-server on EC2, but it doesn't works.
When I access to my instance from browser, I have this error:
...ANSWER
Answered 2022-Feb-25 at 13:41Install code-server only by install script.
QUESTION
this is the log when vscode install vscode-server in host
i found that it got vscode-server commit id as follow log:
...ANSWER
Answered 2022-Feb-24 at 05:55I had this problem as well since this morning and what was odd for me was that I could SSH from the terminal to the target host with no problem.
After some debugging, it seems like the Remote - SSH
extension is causing the trouble. The following two options worked for me. Either:
Downgrading the extension to 0.70.0 works for me. The current version (0.74.0 as of now) was updated just two days ago and I think this update is causing the trouble.
If you would like to keep the current version, then turning off
remote.ssh.useLocalServer
also works. If you're on a mac, go to Code > Preferences > Settings (Cmd
+,
) and then typeremote.ssh.useLocalServer
and it'll show the option which is turned on by default. Turning this off did the trick for me too.
QUESTION
I have tried to configure ZSH to be the default shell that is used for the integrated terminal. However, bash is opened every time even though ZSH is set as the default profile when connecting to a remote workspace (on a linux machine).
Here is my local settings config (/Users/ewiener/Library/Application Support/Code/User/settings.json
):
ANSWER
Answered 2022-Feb-17 at 19:36My original answer didn't always work for me, so I instead decided to have my .bashrc
change the shell to zsh whenever VSCode opened up a shell. You can do this by adding the following to the top of your .bashrc
:
QUESTION
I'm using Visual Studio Code Insiders version 1.65.0-insider. Until 3 days ago, I was not having any problem connecting to the remote server at work from my work laptop through a VPN. I have my ssh config file and when I opened vscode (when connected to the VPN), I was asked for my password and it connected without problems.
However, from yesterday I have started getting an error stating Could not establish connection to idk4v: The VS Code Server failed to start. idk4v is the remote machine's name that I gave in my ssh config file. I also get Waiting for server log... in the output continuously. I am pasting the output here from trying out just now. I have removed the non-essential parts for brevity:
...ANSWER
Answered 2022-Feb-15 at 20:37This is very much a hack and absolutely not a long term solution but as a quick work around.
Find the server.sh
path in the log you posted, open it in an editor, and add --accept-server-license-terms
to the last line so it looks something like "$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" --compatibility=1.63 --accept-server-license-terms "$@"
. This will accept the terms automatically until this gets patched by MS.
QUESTION
I am sure there are a thousand duplicates, but I have not found them as what I have found involve the local terminal, or if about the remote terminal, it is assumed that the live terminal view already exists. In my case the "terminal" aspect of the terminal does not yet exist within the terminal pane.
Setup:
Visual Studio Code installed on Win 10 doing remote development on a Linux based system.
Issue:
When I start Visual Studio Code, it automatically attaches itself to the remote system, as it should.
However, the terminal pane at the bottom of the editing window does NOT contain a "terminal", (i.e. with a prompt that I can type commands into). Instead it shows the output of VS Code's efforts to connect with the remote machine as shown below:
Which contains a lot of text:
...ANSWER
Answered 2022-Feb-01 at 18:41If you click Terminal
then New Terminal
, you should get a fresh terminal inside remote environment.
QUESTION
I feel like I have tried everything, and don't understand why commands can't be found in my GitLab CI script.
Here is my script
...ANSWER
Answered 2022-Jan-01 at 13:17[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install code-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page