Home Assistant Community Add-on: Visual Studio Code

Im Running:
Add-on version: 5.5.4
You are running the latest version of this add-on.
System: Home Assistant OS 9.5 (amd64 / qemux86-64)
Home Assistant Core: 2023.3.4
Home Assistant Supervisor: 2023.03.1

After adding a client certificate im not able to start “Studio code server” I just get a blank page, and after a while I get this popup:
error

If I connect internally on the original port without client side certificate everything works fine.

Any idears?`

Kind regards
Morten

Hi, i have the same issue, did you find the solution or workaround?
thanks.

Hi, addon works fine from the sidebar, but I’m not able to connect to port 1337. Is it not published anymore? I also don’t see a port configuration in the addon configuration panel.

Are there any cool addons for vscode itself? Would be great to have an automated TOC, anchors e.t.c. All i could find don’t support yaml #comments

There is one for ESPhome

Add-on has stopped working for me. It was working this morning, no reboot or power outage and suddenly the add-on stopped and I can’t get it to start again.

add-on log
 Add-on: Studio Code Server
 Fully featured Visual Studio Code (VSCode) experience integrated in the Home Assistant frontend.
-----------------------------------------------------------
 Add-on version: 5.8.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.3  (amd64 / generic-x86-64)
 Home Assistant Core: 2023.6.3
 Home Assistant Supervisor: 2023.06.4
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[12:00:51] INFO: Configuring timezone (Australia/Perth)...
Log level is set to INFO
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-user: starting
s6-rc: info: service init-mysql: starting
s6-rc: info: service init-mosquitto: starting
s6-rc: info: service init-code-server: starting
s6-rc: info: service init-code-server successfully started
total 28
drwxr-xr-x 5 root root 4096 Jun 30 12:00 .
drwxr-xr-x 5 root root 4096 Jun 30 12:00 ..
drwxr-xr-x 3 root root 4096 Jun 30 12:00 data
drwx-ws--T 2 root root 4096 Jun 30 12:00 event
-rw-r--r-- 1 root root    2 Jun 30 12:00 notification-fd
-rwxr-xr-x 1 root root  419 Jun 30 12:00 run
srwxrwxrwx 1 root root    0 Jun 30 12:00 s
-rw------- 1 root root    0 Jun 30 12:00 s.lock
drwx------ 2 root root 4096 Jun 30 12:00 supervise
s6-rc: info: service init-user successfully started
s6-rc: info: service code-server: starting
s6-rc: info: service code-server successfully started
[12:00:53] INFO: Starting code-server...
s6-rc: info: service init-mosquitto successfully started
s6-rc: info: service init-mysql successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[2023-06-30T04:00:54.182Z] info  Wrote default config file to ~/.config/code-server/config.yaml
[2023-06-30T04:00:54.973Z] info  code-server 4.14.1 5c199629305a0b935b4388b7db549f77eae82b5a
[2023-06-30T04:00:54.974Z] info  Using user-data-dir /data/vscode
[2023-06-30T04:00:54.995Z] info  Using config file ~/.config/code-server/config.yaml
[2023-06-30T04:00:54.995Z] info  HTTP server listening on http://0.0.0.0:1337/
[2023-06-30T04:00:54.996Z] info    - Authentication is disabled
[2023-06-30T04:00:54.996Z] info    - Not serving HTTPS
[2023-06-30T04:00:54.996Z] info  Session server listening on /data/vscode/code-server-ipc.sock
Supervisor log
23-06-30 11:47:56 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Studio Code Server is unhealthy, restarting...
23-06-30 11:47:56 INFO (SyncWorker_0) [supervisor.docker.interface] Stopping addon_a0d7b954_vscode application
23-06-30 11:48:00 INFO (SyncWorker_0) [supervisor.docker.interface] Cleaning addon_a0d7b954_vscode application
23-06-30 11:48:01 INFO (SyncWorker_9) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/vscode/amd64 with version 5.8.0
23-06-30 11:48:11 WARNING (MainThread) [supervisor.addons.addon] a0d7b954_vscode is already running!

EDIT: after multiple attempts to restart it seems to be ok… will see if it stays this way.

2 Likes

I’m also having a strange problem where the plug doesn’t seem to be running:

But the log looks okay:

I’ve tried restarting HA, the server, uninstalling and reinstalling and nothing seems to work.

1 Like

I’m having the same problem as well! Same symptoms and same logs from the add-on.

Good to know it wasn’t specific to my setup, was worried I messed up some configuration somewhere. :sob:

Issue may have started after installing Supervisor 2023.06.4, but can’t be sure.

Same for me. For sure introduced with Supervisor 2023.6.4 auto update (around June 29th according to my binary_sensor.studio_code_server_running log history). Now from time to time the addon is not running, watchdog is doing it’s best but seem to run out of possibilities. Doesn’t even come up reliably after a host reboot (HA OS). Then once I manually hit “start”, it switches from “stopped” to “running”. Very strange.

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
-----------------------------------------------------------
 Add-on: Studio Code Server
 Fully featured Visual Studio Code (VSCode) experience integrated in the Home Assistant frontend.
-----------------------------------------------------------
 Add-on version: 5.8.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.3  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2022.12.9
 Home Assistant Supervisor: 2023.06.4
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[23:51:39] INFO: Configuring timezone (Europe/Berlin)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-user: starting
s6-rc: info: service init-mysql: starting
s6-rc: info: service init-mosquitto: starting
s6-rc: info: service init-code-server: starting
s6-rc: info: service init-code-server successfully started
s6-rc: info: service init-mysql successfully started
s6-rc: info: service init-user successfully started
s6-rc: info: service code-server: starting
s6-rc: info: service code-server successfully started
[23:51:41] INFO: Starting code-server...
s6-rc: info: service init-mosquitto successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[2023-07-01T21:51:43.701Z] info  Wrote default config file to ~/.config/code-server/config.yaml
[2023-07-01T21:51:45.355Z] info  code-server 4.14.1 5c199629305a0b935b4388b7db549f77eae82b5a
[2023-07-01T21:51:45.358Z] info  Using user-data-dir /data/vscode
[2023-07-01T21:51:45.428Z] info  Using config file ~/.config/code-server/config.yaml
[2023-07-01T21:51:45.429Z] info  HTTP server listening on http://0.0.0.0:1337/
[2023-07-01T21:51:45.429Z] info    - Authentication is disabled
[2023-07-01T21:51:45.430Z] info    - Not serving HTTPS
[2023-07-01T21:51:45.430Z] info  Session server listening on /data/vscode/code-server-ipc.sock

Is there an issue on GitHub for this already (update: yes, see below)? Short-term options:
a) don’t use the addon
b) downgrade Supervisor
c) eventually downgrade the addon (I still think it’s not the 5.8.0 update but Supervisor update)


Edit: follow this Addon will not stay running · Issue #666 · hassio-addons/addon-vscode · GitHub :smiling_imp:

Having the same problem, the log seems fine. Started today for me, but didn’t do any updates this weekend. When I start the add-on it starts for a minute, but when I try to open the web-UI, it doesn’t work. It sometimes works after multiple restarts.

I am also having the same issue. I cannot start the addon. However, the add-on logs state that its started.

Text editor font family not respected.
I installed cascadia code on my laptop and use the cascadia code font successfully code in Notepad++.
The vs code server addon can change the font size in the text editor just fine, but refuses to display the cascadia code font. ‘Cascadia Code’ is entered into the font famly settings alongside the font side.

Anyone here have luck changing the font?

Same issue here, Log doesn’t report any errors, but VCS appears not running. HW is NUC UC5i3MYHE.
Log:
Studio Code Server
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting


Add-on: Studio Code Server
Fully featured Visual Studio Code (VSCode) experience integrated in the Home Assistant frontend.

Add-on version: 5.13.0
You are running the latest version of this add-on.
System: Home Assistant OS 11.0 (amd64 / generic-x86-64)
Home Assistant Core: 2023.10.3
Home Assistant Supervisor: 2023.10.0

Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[14:16:54] INFO: Configuring timezone (Europe/Amsterdam)…
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-user: starting
s6-rc: info: service init-mysql: starting
s6-rc: info: service init-mosquitto: starting
s6-rc: info: service init-code-server: starting
s6-rc: info: service init-code-server successfully started
s6-rc: info: service init-mysql successfully started
s6-rc: info: service init-user successfully started
s6-rc: info: service code-server: starting
s6-rc: info: service code-server successfully started
s6-rc: info: service init-mosquitto successfully started
s6-rc: info: service legacy-services: starting
[14:16:54] INFO: Starting code-server…
s6-rc: info: service legacy-services successfully started
[2023-10-21T12:16:55.250Z] info Wrote default config file to /root/.config/code-server/config.yaml
[2023-10-21T12:16:55.651Z] info code-server 4.18.0 d7a2b4936af1bfd80cb96f2567af68badc2325e3
[2023-10-21T12:16:55.652Z] info Using user-data-dir /data/vscode
[2023-10-21T12:16:55.666Z] info Using config file /root/.config/code-server/config.yaml
[2023-10-21T12:16:55.666Z] info HTTP server listening on http://0.0.0.0:1337/
[2023-10-21T12:16:55.666Z] info - Authentication is disabled
[2023-10-21T12:16:55.666Z] info - Not serving HTTPS
[2023-10-21T12:16:55.666Z] info Session server listening on /data/vscode/code-server-ipc.sock

Same here. Removed add-on, reinstalled, no error log but cannot open VSC, Keeps asking: do you want to open VSC?

Hello, I’ve been trying to install the tabnine extension in visual code - however when I try to sign in and cloudnine want to send back an approved login i get a “401: Unauthorized”. Anyone know how to fix this?

Can’t get entities auto-complete feature to work.
I read all related threads but it relates to issues that are supposed to be fixed by now.

the add-on and HA extension (configured) seems to load correctly but I get the following errors in the log:


[17:11:31] [xxxxxxxxx][dca4c783][ExtensionHostConnection] <537> Launched Extension Host Process.
File not found: /usr/local/lib/code-server/lib/vscode/out/vsda_bg.wasm
File not found: /usr/local/lib/code-server/lib/vscode/out/vsda.js
[17:16:12] [xxxxxxxxx][dee1faf6][ManagementConnection] New connection established.
[17:16:12] [xxxxxxxx][344c80d4][ExtensionHostConnection] New connection established.
[17:16:12] [xxxxxxxx][344c80d4][ExtensionHostConnection] <1493> Launched Extension Host Process.
File not found: /usr/local/lib/code-server/lib/vscode/extensions/keesschollaart.vscode-home-assistant-1.39.0/jinja-language-configuration.json

[17:17:00] RequestStore#acceptReply was called without receiving a matching request 37
[17:17:00] RequestStore#acceptReply was called without receiving a matching request 38
[17:17:00] RequestStore#acceptReply was called without receiving a matching request 39
[17:22:42] [xxxxxxxx][dee1faf6][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[17:22:42] [xxxxxxxxxxx][344c80d4][ExtensionHostConnection] <1493> Extension Host Process exited with code: 0, signal: null.
[17:22:45] [xxxxxxxxxx][a47904cb][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[17:22:45] [xxxxxxxxxx][dca4c783][ExtensionHostConnection] <537> Extension Host Process exited with code: 0, signal: null.


image

what are these missing files?
I can’t find relevant information ;
am I missing something in my HA installation; should I install something else ?

Thx

I am having the same problem. I tried completing those settings you are showing but removed them as they aren’t in the docs ?

Still not working here. Will need to investigate further I guess.

I’ve been working in Studio Code Server from the side bar much more recently, rather than just using the usual UI. Unfortunately, I’m finding that using Studio Code Server is resulting in “Disconnected. Attempting to reconnect…” appearing. More often than not it doesn’t reconnect until I power cycle the unit running HA. Any suggestions please? Is it an uninstall/re-install of Studio Code Server?

Hello everyone,

I’ve just updated to the newest version of Studio Code and encountered a couple of significant issues. Firstly, I’m no longer able to perform a search for all files located in the /config folder. This functionality was working fine before the update. Additionally, I’m facing problems with Git integration. Specifically, changes made in the /config folder are not visible in Studio Code, even though the Git command line’s ‘diff’ command shows these changes. Interestingly, on my mobile phone app, I can view the diff files, but this is not possible on my PC.

I’ve already tried clearing browser data and resetting site permissions, but these steps haven’t resolved the issue. Has anyone else experienced similar problems after updating Studio Code? Any suggestions or solutions would be greatly appreciated.

Thanks in advance for your help!

2024-01-07_221715