hassio-addons / addon-vscode Goto Github PK
View Code? Open in Web Editor NEWStudio Code Server - Home Assistant Community Add-ons
Home Page: https://addons.community
License: MIT License
Studio Code Server - Home Assistant Community Add-ons
Home Page: https://addons.community
License: MIT License
This is both an feature request and a issue.
Currently I'm using "Configurator" in the Hassio addons to make changes to files. Home Assistant needs a reload command for specific files to reread them and "Configurator" has a little menu to reload certain things, which comes in handy almost every time.
The VSCode Addon in Hassio completely lacks this menu, which makes me switch back and forth between pages just to reload something, which can be very tedious. That's why I'm still on "Configurator".
A additional context menu to reload all those things would be awesome!
We need to add .dash file extension to have the HADashboard configuration files treated as YAML.
It is a pretty easy change. I can make it via PullRequest, but wanted to make sure it was OK first. Just add the following to the settings.json file
"files.associations": {
"*.dash": "yaml"
}
When updating Home Assistant, it goes down, but vscode is trying to reconnect to Home Assistant. There seems to be no delay between the reconnection attempts. Causing high CPU load during Home Assistant downtime.
Sleep a second or so between reconnection attempts.
20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_vscode
20-01-17 18:34:47 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_vscode
20-01-17 18:34:47 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
20-01-17 18:34:47 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_vscode
...
Actually:
# docker logs hassio_supervisor 2>&1 | grep "18:34:47" | grep "WebSocket access" | wc -l
122
It's trying to connect 122 times per second.
Add a time.sleep(1)
between reconnection attempts.
add-on fails to start,
502: Bad Gateway
open gui
Apparently a permissions issue preventing nginx from starting.
See
nginx: [emerg] open() "/proc/1/fd/1" failed (13: Permission denied)
$ sudo ls -l /proc/1/fd/1
lrwx------ 1 root root 64 Jul 31 14:42 /proc/1/fd/1 -> /dev/null
in log below.
Log:
-----------------------------------------------------------
Hass.io Add-on: Visual Studio Code
Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
Add-on version: 0.6.1
You are running the latest version of this add-on.
System: Ubuntu 18.04.2 LTS (amd64 / intel-nuc)
Home Assistant version: 0.96.5
Supervisor version: 170
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing...
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing...
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[14:36:00] INFO: Starting the code server...
(node:403) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
INFO code-server v1.1156-vsc1.33.1
INFO Additional documentation: http://github.com/cdr/code-server
INFO Initializing {"data-dir":"/data/vscode","extensions-dir":"/data/vscode/extensions","working-dir":"/config","log-dir":"/root/.cache/code-server/logs/20190731213602038"}
INFO Starting webserver... {"host":"127.0.0.1","port":"8443"}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md
WARN
WARN Launched without authentication.
INFO
INFO Started (click the link below to open):
INFO http://localhost:8443/
INFO
INFO Starting shared process [1/5]...
[14:36:02] INFO: Starting NGinx...
nginx: [emerg] open() "/proc/1/fd/1" failed (13: Permission denied)
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
i gave it a new try , starting first with no addon , it worked .
then installing with the addons , and i got the logs detailed below .
hope this helps .
thanks .
(Why the issue was filed)
(What you expected to happen)
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 mysql-common all 5.8+1.0.4 [7,308 B]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmysqlclient20 amd64 5.7.25-0ubuntu0.18.04.2 [818 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libdbd-mysql-perl amd64 4.046-1 [82.0 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libreadline5 amd64 5.2+dfsg-3build1 [99.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libterm-readkey-perl amd64 2.37-1build1 [24.4 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-common all 1:10.1.38-0ubuntu0.18.04.1 [15.6 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-client-core-10.1 amd64 1:10.1.38-0ubuntu0.18.04.1 [4,763 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 libconfig-inifiles-perl all 2.94-1 [40.4 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libjemalloc1 amd64 3.6.0-11 [82.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-client-10.1 amd64 1:10.1.38-0ubuntu0.18.04.1 [5,626 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-client all 1:10.1.38-0ubuntu0.18.04.1 [12.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 12.3 MB in 8s (1,636 kB/s)
Selecting previously unselected package libaio1:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 13831 files and directories currently installed.)
Preparing to unpack .../00-libaio1_0.3.110-5_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-5) ...
Selecting previously unselected package libdbi-perl.
Preparing to unpack .../01-libdbi-perl_1.640-1_amd64.deb ...
Unpacking libdbi-perl (1.640-1) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../02-mysql-common_5.8+1.0.4_all.deb ...
Unpacking mysql-common (5.8+1.0.4) ...
Selecting previously unselected package libmysqlclient20:amd64.
Preparing to unpack .../03-libmysqlclient20_5.7.25-0ubuntu0.18.04.2_amd64.deb ...
Unpacking libmysqlclient20:amd64 (5.7.25-0ubuntu0.18.04.2) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../04-libdbd-mysql-perl_4.046-1_amd64.deb ...
Unpacking libdbd-mysql-perl (4.046-1) ...
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../05-libreadline5_5.2+dfsg-3build1_amd64.deb ...
Unpacking libreadline5:amd64 (5.2+dfsg-3build1) ...
Selecting previously unselected package libterm-readkey-perl.
Preparing to unpack .../06-libterm-readkey-perl_2.37-1build1_amd64.deb ...
Unpacking libterm-readkey-perl (2.37-1build1) ...
Selecting previously unselected package mariadb-common.
Preparing to unpack .../07-mariadb-common_1%3a10.1.38-0ubuntu0.18.04.1_all.deb ...
Unpacking mariadb-common (1:10.1.38-0ubuntu0.18.04.1) ...
Selecting previously unselected package mariadb-client-core-10.1.
Preparing to unpack .../08-mariadb-client-core-10.1_1%3a10.1.38-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mariadb-client-core-10.1 (1:10.1.38-0ubuntu0.18.04.1) ...
Selecting previously unselected package libconfig-inifiles-perl.
Preparing to unpack .../09-libconfig-inifiles-perl_2.94-1_all.deb ...
Unpacking libconfig-inifiles-perl (2.94-1) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../10-libjemalloc1_3.6.0-11_amd64.deb ...
Unpacking libjemalloc1 (3.6.0-11) ...
Selecting previously unselected package mariadb-client-10.1.
Preparing to unpack .../11-mariadb-client-10.1_1%3a10.1.38-0ubuntu0.18.04.1_amd64.deb ...
Unpacking mariadb-client-10.1 (1:10.1.38-0ubuntu0.18.04.1) ...
Selecting previously unselected package mariadb-client.
Preparing to unpack .../12-mariadb-client_1%3a10.1.38-0ubuntu0.18.04.1_all.deb ...
Unpacking mariadb-client (1:10.1.38-0ubuntu0.18.04.1) ...
Setting up libconfig-inifiles-perl (2.94-1) ...
Setting up libjemalloc1 (3.6.0-11) ...
Setting up mysql-common (5.8+1.0.4) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libterm-readkey-perl (2.37-1build1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libaio1:amd64 (0.3.110-5) ...
Setting up libmysqlclient20:amd64 (5.7.25-0ubuntu0.18.04.2) ...
Setting up libreadline5:amd64 (5.2+dfsg-3build1) ...
Setting up libdbi-perl (1.640-1) ...
Setting up mariadb-common (1:10.1.38-0ubuntu0.18.04.1) ...
update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mariadb-client-core-10.1 (1:10.1.38-0ubuntu0.18.04.1) ...
Setting up libdbd-mysql-perl (4.046-1) ...
Setting up mariadb-client-10.1 (1:10.1.38-0ubuntu0.18.04.1) ...
Setting up mariadb-client (1:10.1.38-0ubuntu0.18.04.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
[cont-init.d] 80-user-packages.sh: exited 0.
[cont-init.d] 81-user-scripts.sh: executing...
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 6, in <module>
from pip._internal import main
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/__init__.py", line 40, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/cmdoptions.py", line 14, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'
[09:27:51] FATAL: Failed executing init command: pip3 install yamllint
[cont-init.d] 81-user-scripts.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...
-----------------------------------------------------------
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
```
> (What actually happened)
## Steps to reproduce
> (How can someone else make/see it happen)
## Proposed changes
> (If you have a proposed change, workaround or fix,
> describe the rationale behind it)
The source control tab on the vscode addon don't sync with the source control off the vscode program on windows.
That source control sync between addon and windows program
They don't sync
I commit and push changes through the vscode program on windows but it doesn't sync between the addon, i don't know if it is reproduce-able
for me it doesn't work
the file list is shown , but after selecting the send file , it wont open. it just stays in "waiting" mode.
(Why the issue was filed)
(What you expected to happen)
ERROR SHARED stderr {"data":"Uncaught Exception: Error: ENOENT: no such file or directory, open '/data/vscode/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/data/vscode/Backups/workspaces.json'\n at Timeout.setTimeout [as _onTimeout] (eval at exports.requireModule (/usr/local/bin/code-server:468:27625), :56921:31)\n at ontimeout (timers.js:498:11)\n at tryOnTimeout (timers.js:323:5)\n at Timer.listOnTimeout (timers.js:290:5)\n"}
INFO WebSocket closed / {"client":1,"code":1006}
ERROR SHARED stderr {"data":"Uncaught Exception: { Error: read ECONNRESET\n at Pipe.onread (net.js:622:25) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }\n"}
after this , the whole hassio v machine crashes .
(What actually happened)
(How can someone else make/see it happen)
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
I'd like the possibility to integrate VSCode without HassIO. Could you provide instruction for manual installation
Install the VSCode addon manually with Docker, pretty much like it is with hassio interface, then modify manually HA configuration to connect to the plugin.
Only available in hassio as docker image... :-(
It appears to happen the second or third time I load the page. The first time, the CPU/Disk spikes for about 5 seconds, and then the second or third time, it goes to 100% usage, and like 80+MB/s on the disk, which is probably max. The CPU spikes to 100 in a few seconds. But the disk takes a couple minutes. It gets to the point where I can't even log into the desktop or connect to anything else on the system. Even HA becomes unresponsive. Sometimes it corrects itself after about an hour. Other times I have to hard reboot the VM(Linux Mint, latest version). HA is .92.2
This started happening on my old HA, so I built a completely new one, and I don't think it happened when I didn't have many devices loaded, but I didn't really test it that thoroughly. And I was only able to get to the logs once to see. The other times, the issues happen, and I can't access anything, and have to hard reboot, and I think HA is wiping the logs when it starts back up. The one time I was able to see the logs, I didn't copy the whole thing, so all I have is this line:
[aiohttp.server] Error handling request
There was a bunch more stuff after that.
I googled that error, and people were saying that it happens when you are trying to access https when HA is running http or the other way around.
I'm only doing http, and on the plugin as well.
Does anyone have any idea what might be causing this? I can't access any troubleshooting info when the problem happens so it's kind of tough to figure it out for me.
Thanks in advance.
I still have the same issue that was closed here (#25) when running HA 96.5, Hassio Supervisor 170. I get a black screen when opening the VSCode addin from the side bar with ingress, when enabling a port and going to that it does work (after logging in).
Ingress link in sidebar shows VSCode interface
Black screen
Running on a subdomain (ha.domain.com) that is locally resolving to a local IP and globally through DNS with NGINX catching all traffic and routing different subdomains differently. Hassio installed on Ubuntu 18.04, running HA latest and a couple of add-ons. Configurator ingress does work, so seems to be VSCode add-on related.
V: 1.2.3
When viewing the YAML of my automations that were created in the Home Assistant Automation editor, Visual Studio Code displays lots of errors
No Errors, as it was created in Home Assistant
Lots of Errors, as it was created in Home Assistant
Here is the source code of one of the automations
I have an issue with the vscode addon. I won't start.
I use hass.io in docker container. Docker version : 19.03.3
Host machine is a Debian 10.
{
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"packages": [],
"init_commands": [],
"disable_telemetry": false
}
Use VSCode for editing my HA conf.
Error 502: Bad Gateway when i want to access to VSCode.
Install VSCode and start it.
-----------------------------------------------------------
Hass.io Add-on: Visual Studio Code
Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
Add-on version: 0.7.0
You are running the latest version of this add-on.
System: Debian GNU/Linux 10 (buster) (amd64 / qemux86-64)
Home Assistant version: 0.100.2
Supervisor version: 189
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing...
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing...
parse error: Expected string key before ':' at line 1, column 4
[18:14:50] ERROR: Unknown HTTP error occured
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing...
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[18:14:50] INFO: Starting the code server...
(node:414) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
INFO code-server v1.1156-vsc1.33.1
INFO Additional documentation: http://github.com/cdr/code-server
INFO Initializing {"data-dir":"/data/vscode","extensions-dir":"/data/vscode/extensions","working-dir":"/config","log-dir":"/root/.cache/code-server/logs/20191021161451117"}
INFO Starting webserver... {"host":"127.0.0.1","port":"8443"}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md
WARN
WARN Launched without authentication.
INFO
INFO Started (click the link below to open):
INFO http://localhost:8443/
INFO
INFO Starting shared process [1/5]...
[18:14:51] INFO: Starting NGinx...
nginx: [emerg] invalid number of arguments in "resolver" directive in /etc/nginx/includes/resolver.conf:1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
19-10-21 16:14:49 INFO (SyncWorker_20) [hassio.docker.addon] Start Docker add-on hassioaddons/vscode-amd64 with version 0.7.0
19-10-21 16:14:49 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_vscode
19-10-21 16:14:50 WARNING (MainThread) [hassio.api.security] /dns/info no role for a0d7b954_vscode
19-10-21 16:14:50 ERROR (MainThread) [hassio.api.security] Invalid token for access /dns/info
Can't open vscode
(Why the issue was filed)
VScode gets to logon screen but won't accept password
(What you expected to happen)
just keeps looping and asking for password
(What actually happened)
parse error: Expected string key before ':' at line 1, column 4
[18:31:52] ERROR: Unknown HTTP error occured
System: (amd64 / qemux86-64)
Home Assistant version: 0.90.2
Supervisor version: 150
.
.
.
.
.
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR SHARED stderr {"data":"Uncaught Exception: Error: ENOENT: no such file or directory, open '/data/vscode/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/data/vscode/Backups/workspaces.json'\n at Timeout.setTimeout [as _onTimeout] (eval at exports.requireModule (/usr/local/bin/code-server:468:27625), <anonymous>:56921:31)\n at ontimeout (timers.js:498:11)\n at tryOnTimeout (timers.js:323:5)\n at Timer.listOnTimeout (timers.js:290:5)\n"}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
ERROR Failed to parse cookies {"error":{}}
Just using default config with a !secret password...
Addon config:
{
"password": "!secret vscodesecret",
"ssl": false,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"packages": [],
"init_commands": []
}
Also tried switching protection mode off..
(How can someone else make/see it happen)
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
Updating plug in is 'greyed' out and says it isn't supported on my system
System:
HASSIO
HassOS v2.11
HA 0.91.2
Running in a VM on Proxmox
Plug in to work
19-04-15 08:21:50 ERROR (MainThread) [hassio.addons.addon] Add-on a0d7b954_vscode not supported on qemux86-64 with ['amd64', 'i386'] architecture
I don't understand the reference to AMD architecture as my NUC is running Intel:
Click on update when running this configuration
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
Vscode won't run and gives the following errors:
19-08-25 22:30:13 INFO (SyncWorker_0) [hassio.docker.interface] Stop addon_a0d7b954_vscode application
19-08-25 22:30:15 INFO (SyncWorker_0) [hassio.docker.interface] Clean addon_a0d7b954_vscode application
19-08-25 22:30:20 ERROR (SyncWorker_4) [hassio.docker] Can't start addon_a0d7b954_vscode: 404 Client Error: Not Found ("linux runtime spec devices: error gathering device information while adding custom device "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE1996743-if00": lstat /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE1996743-if00: no such file or directory")
(Why the issue was filed)
(What you expected to happen)
(What actually happened)
Synology NAS with a Conbee II stick added via deCONZ.
(How can someone else make/see it happen)
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
Flagged error in lovelace-ui.yaml when editing in VSC.
No flagged error for:
(What actually happened)
Check Configuration reports "Configuration valid!".
According to...
https://www.home-assistant.io/lovelace/picture-entity/#how-to-use-state_filter
..."state_filter" is optional.
This happens when running Home Assistant 0.105.2 and Visual Studio Code 1.2.3.
Fix if reproducible.
VS Code YAML validator highlights "!secret" as invalid. As this is very common in Home Assistant configs and is valid, adding a custom YAML tag would make sense.
Open a yaml file with a !secret reference in it and the YAML validator will mark the file red (error).
Would be nice if the vs code user settings.json would already contain the custom yaml tag for !secret. I played around and this does seem to work;
"yaml.customTags": [
"!secret scalar",
]
Not Available for install
Be able to install the addon
Message says This add-on is not available on your system.
Click Hassio on the side bar, go to Addon Store, click the VS Code item
If its not available for Hassio should be removed from the addons store.
Error message when trying to edit configuraion.yaml
File 'configuration.yaml' could not be parsed, it was referenced from path 'configuration.yaml'. This file will be ignored. Error message: TypeError: source_utils_1.default is not a function Error(s): - TypeError: source_utils_1.default is not a function
Appears in a bubble at the bottom right of the screen over and over again. Sometimes (about half the time) this also prevents saving changes.
To be able to edit configuration.yaml
As above
Open configuration.yaml, get annoyed by the constant error pop-ups! ๐
No idea - but it only seems to affect configuration.yaml - other files seem to work fine.
Nothing apparent in the add-on logs
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Hass.io Add-on: Visual Studio Code
Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
Add-on version: 1.0.1
You are running the latest version of this add-on.
System: Debian GNU/Linux 10 (buster) (amd64 / qemux86-64)
Home Assistant version: 0.101.0
Supervisor version: 192
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing...
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing...
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[20:45:48] INFO: Starting the code server...
[20:45:51] INFO: Starting NGinx...
info Server listening on http://127.0.0.1:8443
info - No authentication
info - Not serving HTTPS
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/workbench.web.api.css HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/workbench.web.api.nls.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/loader.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/semver-umd/lib/semver-umd.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:03 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/@microsoft/applicationinsights-web/dist/applicationinsights-web.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:04 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/workbench.web.api.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:05 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/code/browser/workbench/workbench.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:06 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/services/extensions/worker/extensionHostWorkerMain.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:06 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/browser/parts/editor/media/letterpress-dark.svg HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/base/browser/ui/codiconLabel/codicon/codicon.ttf?10ac421d405314bb3250169d97fc2c62= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/base/browser/ui/octiconLabel/octicons/octicons.ttf?1829db8570ee0fa5a4bef3bb41d5f62e= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/services/extensions/worker/extensionHostWorker.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/vscode-textmate/release/main.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/workbench/services/extensions/worker/extensionHostWorker.nls.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/onigasm-umd/release/onigasm.wasm HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/node_modules/onigasm-umd/release/main.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:08 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/src/build/code-server2.1665-vsc1.39.2-linux-x86_64-built/extensions/theme-seti/icons/seti.woff&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:11 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/src/build/code-server2.1665-vsc1.39.2-linux-x86_64-built/extensions/git/resources/icons/dark/open-change.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
[31/Oct/2019:20:46:11 +0000] 200 192.168.1.1, 172.30.33.4, 172.30.32.1(172.30.32.2) GET /static-3d5db8313a91f80dfc402450fd117b4e63f7711e/out/vs/base/worker/workerMain.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36)
I still have the same issue that was closed here (#25) when running HA 0.97.2, Hassio Supervisor 184 and VSCode addin 0.6.5. I get a black screen when opening the VSCode addin from the side bar with ingress, when enabling a port and going to that it does work (after logging in).
Ingress link in sidebar shows VSCode interface
Black screen
Running on a subdomain (ha.domain.com) that is locally resolving to a local IP and globally through DNS with NGINX catching all traffic and routing different subdomains differently. Hassio installed on Ubuntu 18.04, running HA latest and a couple of add-ons. Configurator and Pi-hole ingress do work, so seems to be VSCode add-on related.
{
"ssl": true,
"certfile": "fullchain1.pem",
"keyfile": "privkey1.pem",
"packages": [],
"init_commands": [],
"disable_telemetry": false,
"leave_front_door_open": false
}
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Hass.io Add-on: Visual Studio Code
Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
Add-on version: 0.6.5
You are running the latest version of this add-on.
System: Ubuntu 18.04.3 LTS (amd64 / qemux86-64)
Home Assistant version: 0.97.2
Supervisor version: 184
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing...
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing...
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[17:11:21] INFO: Starting the code server...
(node:435) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
INFO code-server v1.1156-vsc1.33.1
INFO Additional documentation: http://github.com/cdr/code-server
INFO Initializing {"data-dir":"/data/vscode","extensions-dir":"/data/vscode/extensions","working-dir":"/config","log-dir":"/root/.cache/code-server/logs/20190826151122399"}
INFO Starting webserver... {"host":"127.0.0.1","port":"8443"}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://github.com/cdr/code-server/blob/master/doc/security/ssl.md
WARN
WARN Launched without authentication.
INFO
INFO Started (click the link below to open):
INFO http://localhost:8443/
INFO
INFO Starting shared process [1/5]...
[17:11:22] INFO: Starting NGinx...
WARN stderr {"data":"(node:482) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n"}
INFO Connected to shared process
[26/Aug/2019:17:11:29 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)
[26/Aug/2019:17:11:29 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET /ide.1.5b173b.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)
[26/Aug/2019:17:11:29 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET /ide.main.5b173b.css HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)
[26/Aug/2019:17:11:29 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET /ide.main.5b173b.js HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)
[26/Aug/2019:17:11:35 +0200] 200 10.0.1.113, 10.0.0.7, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3879.0 Safari/537.36 Edg/78.0.249.1)
19-08-26 15:11:21 INFO (SyncWorker_11) [hassio.docker.addon] Start Docker add-on hassioaddons/vscode-amd64 with version 0.6.5
19-08-26 15:11:21 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_vscode
19-08-26 15:11:21 INFO (MainThread) [hassio.api.security] /dns/info access from a0d7b954_vscode
(Why the issue was filed)
(What you expected to happen)
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
curl: /usr/lib/x86_64-linux-gnu/libcurl.so.4: unsupported version 0 of Verdef record
curl: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libcurl.so.4: unsupported version 0 of Verneed record
[14:10:39] ERROR: Something went wrong contacting the API
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
jq: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libonig.so.4: unsupported version 0 of Verneed record
jq: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libonig.so.4: unsupported version 0 of Verneed record
/var/run/s6/etc/cont-init.d/01-log-level.sh: line 41: log_level: unbound variable
[cont-init.d] 01-log-level.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...
-----------------------------------------------------------
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
(How can someone else make/see it happen)
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
it just hangs after starting , it shows the files structure on the left , but by clicking any , it wont open and remains there " waiting" .
then , the addon simply crashes the home assistant.
(Why the issue was filed)
(What you expected to happen)
after rebooting , received this log error
ModuleNotFoundError: No module named 'distutils.util'
[10:19:09] FATAL: Failed executing init command: pip3 install yamllint
[cont-init.d] 81-user-scripts.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing...
-----------------------------------------------------------
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
(What actually happened)
(How can someone else make/see it happen)
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
LIFX Cloud-related data in config throws errors, when in-fact, the code works fine. See attached screenshot.
No errors
errors reported
Follow the steps to add LIFX scenes to HA via the LIFX Cloud documentation.
Not sure.
New Ingress not working with reverse proxy and port assignment also fails
Should work normally
Black screen when trying using the reverse proxy and the Open Web-UI button, 403 Forbidden when using the port assigned to host for the addon
Setup nginx reverse proxy and create a host for hassio or create an entry using the forwarded port
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
Here is the log file, I only removed the IP of my accessing browser and replaced with X.X.X.X:
**UPDATE: Also added the log for the 403 forbidden error as well as the config I have:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] code-server.sh: executing...
[cont-init.d] code-server.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] user.sh: executing...
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[13:38:07] INFO: Starting the code server...
INFO code-server v1.792-vsc1.33.1
INFO Additional documentation: http://github.com/codercom/code-server
INFO Initializing {"data-dir":"/data/vscode","extensions-dir":"/data/vscode/extensions","working-dir":"/config","log-dir":"/root/.cache/code-server/logs/20190415173809295"}
INFO Starting webserver... {"host":"127.0.0.1","port":"8443"}
WARN No certificate specified. This could be insecure.
WARN Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/security/ssl.md
WARN Launched without authentication.
INFO
INFO Started (click the link below to open):
INFO http://localhost:8443/
INFO
INFO Starting shared process [1/5]...
[13:38:09] INFO: Starting NGinx...
INFO Connected to shared process
[15/Apr/2019:13:39:13 -0400] 200 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[15/Apr/2019:13:39:13 -0400] 200 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET /1-f2dd3d.bundle.js HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[15/Apr/2019:13:39:13 -0400] 200 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET /main.css HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[15/Apr/2019:13:39:13 -0400] 200 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET /f2dd3d.bundle.js HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
[15/Apr/2019:13:39:24 -0400] 101 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
INFO WebSocket opened / {"client":1}
INFO WebSocket closed / {"client":1,"code":1006}
INFO WebSocket opened / {"client":2,"ip":"127.0.0.1"}
[15/Apr/2019:13:39:25 -0400] 101 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
INFO WebSocket closed / {"client":2,"code":1006}
INFO WebSocket opened / {"client":3,"ip":"127.0.0.1"}
[15/Apr/2019:13:39:25 -0400] 101 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
INFO WebSocket closed / {"client":3,"code":1006}
INFO WebSocket opened / {"client":4,"ip":"127.0.0.1"}
[15/Apr/2019:13:39:25 -0400] 101 X.X.X.X, 172.17.0.3, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
INFO WebSocket closed / {"client":4,"code":1006}
INFO WebSocket opened / {"client":5,"ip":"127.0.0.1"}
2019/04/15 13:45:43 [error] 449#449: *57 access forbidden by rule, client: 172.30.32.1, server: a0d7b954-vscode, request: "GET / HTTP/1.1", host: "XXXXXX.duckdns.org:443"
[15/Apr/2019:13:45:43 -0400] 403 X.X.X.X(172.30.32.1) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
2019/04/15 13:46:05 [error] 449#449: *58 access forbidden by rule, client: 172.30.32.1, server: a0d7b954-vscode, request: "GET / HTTP/1.1", host: "XXXXXXXX.duckdns.org:443"
[15/Apr/2019:13:46:05 -0400] 403 X.X.X.X(172.30.32.1) GET / HTTP/1.1 (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36)
CONFIG:
{
"ssl": false,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"packages": [],
"init_commands": []
}
I have Pi3 with Hassio but I can't install the addon
Can' install the addon
" This add-on is not available on your system."
Hassio Menu > Addon store > Search for Visual Studio Code
Add requirements sections to the documentation
Add-On not available
Being able to install it from Homeassistant in HassIO
A message appear in add-on HA menu:
This add-on is not available on your system.
and install icon is not available
I don't have any idea, does it happen to everybody in which circumstances?
Add to the docs in which kind of system or circumstances is not available.
Error on first launch
Successful launch
Error:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Hass.io Add-on: Visual Studio Code
Fully featured VSCode experience, to edit your HA config in the browser, including auto-completion!
-----------------------------------------------------------
Add-on version: 0.1.0
You are running the latest version of this add-on.
parse error: Expected string key before ':' at line 1, column 4
[20:43:21] ERROR: Unknown HTTP error occured
System: (amd64 / qemux86-64)
Home Assistant version: 0.84.6
Supervisor version: 150
Home Assistant 0.84.6 (Hass.io) running on VirtualBox (Ubuntu 64). I received this error on first installation / attempt to run. The only config option I changed was the addition of a password. Running Duck DNS / Let's Encrypt.
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
2.0 is still showing as unavailable on my custom Pi4 install
To be able to install
Not available for install
Raspbian Buster installed on 4GB Pi4. dd'd /root to ssd. Installed docker, then installed with this script https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh
Not sure. I looked at the commits, but I don't see anything checking the hardware.
I can't connect over the local port (default to 1337) after upgrading to 2.0. I'm using a chromebook, and installed code server as a progressive web app on it. When using it through Home Assistant in the browser i can't use shortcuts like ctrl+tab to navigate.
The port to accept connections.
VS Code does not load anymore without ingress. Also i can't see the network parameters for the addon anymore.
Upgrade to 2.0 and try without ingress.
Add the possibility to use without ingress.
The 2.0 version of this add-on does not load in MacOS Mojave Safari
VC Code should load and present the full interface
A blank screen is presented to the user. In the browser's developer console the message "WebSocket connection to 'ws://hassio:1337/' failed: Unexpected response code: 401" is repeatedly displayed.
Browsing to the same URL on the same machine using Chrome works fine - there are no WebSocket errors.
Navigate to http://hassio:1337
in MacOS Safari, and compare to the same in Chrome on the same machine. Yes, I have intentionally turned off SSL in this setup - not sure if enabling SSL changes the behavior.
I had a similar issue when using an early version of the add-on in the Edge repo. I believe this was before the NGINX proxy was built in. I got that version working behind my own proxy by following the instructions here:
https://github.com/codercom/code-server/blob/master/doc/self-hosted/index.md#nginx-reverse-proxy
I believe you need to add proxy_set_header Accept-Encoding gzip;
per those instructions, which I don't see currently enabled in the latest version of the add-on.
Run VS Code on a remote server. Contribute to codercom/code-server development by creating an account on GitHub.
I would love to have this extension on my HASS setup, unfortunately it's not available for Arm64 yet. Would it be much work to enable this?
VS Code shows black screen, no interface loads.
VS Code should load.
VS Code shows black screen, no interface loads.
Browser console infinitely throws ide.main.c231df.js:53 WebSocket connection to 'wss://redacted/api/hassio_ingress/redacted/' failed: One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1
.
Fresh install, default settings.
Using 0.3.0 of the Visual Studio Code plugin with HASS.io 0.91.4 but the auto-completion does not work. It should not necessary to do anything with settings to get this feature activated according to the documentation. Not sure what to do now?
I can see an update message when using Visual Studio Code in HA.
When I press the update button I get Unable to write file (Error: unexpected end of file)
.
Is this supposed to happen?
Below is valid code supported by Home Assistant and documented on https://www.home-assistant.io/integrations/template/
Correct syntax check
False syntax check
- platform: template
sensors:
aqi_nitrogen_dioxide:
friendly_name: Stikstofdioxide
icon_template: mdi:car
unit_of_measurement: 'PPM'
value_template: >
{{ states.sensor.waqi_bamendaweg_dordrecht.attributes.nitrogen_dioxide }}
attribute_templates:
friendly: >-
{% set nox = states('sensor.aqi_nitrogen_dioxide') | int(-1) %}
{% if nox > 300 %}
Schadelijk
{% elif nox > 200 %}
Erg slecht
{% elif nox > 150 %}
Slecht
{% elif nox > 100 %}
Slecht voor gevoelige mensen
{% elif nox > 50 %}
Matig
{% elif nox >= 0 %}
Goed
{% else %}
unknown
{% endif %}
Add/fix support for syntax check of attribute_templates in sensor template
Instructions on how to integrate Template Sensors into Home Assistant.
(Why the issue was filed)
Using cmd +c or cmd+x is no longer working
I can highlight text but after trying to copy or cut and then paste, the old contents in the clipboard is pasted. I can copy text in other areas of home assistant and paste that text in vscode but not text I try to copy within vscode. This use to work for me, I have uninstalled vscode and reinstalled it but its not solved the issue. Im running 0.94 but this problem has been around since 0.92
(How can someone else make/see it happen)
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
Running VSCode Add-On 1.2.1 on Ubuntu 18.04 Hassio docker (Intel NUC8i3BEK), code-server is spiking the CPU to 100% and keeping it there causing the entire system to slow to a crawl (and requiring a host restart).
No CPU spike
See Problem/Motivation
Fresh Hassio docker install on Ubuntu 18.04, add the VSCode Add-On, view the VSCode GUI at least once, wait a few minutes, and code-server will spike the CPU. Verify via
ps aux | grep code-server
orps aux | grep server.js
Right now, I just have to uninstall the VSCode Add-On and edit config files via nano over ssh.
Just a suggestion.
"Assumed" that it would run on a pi
got an error message "This add-on is not available on your system."
try to install it on a pi
Add a remark/warning in the text that it will not run on Pi/ARM ...
I have this add-on working in HA 0.84.6; cannot add repository in 0.90.2. (Hass.io, VirtualBox, Ubuntu 64)
Ability to add repository and add-on.
Supplying the repository shows "unknown." No add-on available to install.
Attempt to install the add-on in 0.90.2. (Not sure if my config, described above, is significant.)
none
It's a minor problem
Filename problem in combination with the "packages" folder: when a "automations.yaml" file in the folder "packages" VSCODE expectes to have no "automation:" in the config and give out a "problem".
I originally had a folder "automations" for my automations. Since it is possible to add automations via UI, it creates a file "automations.yaml" for that. But it is not possible to have a include_dir and a include_file at the same time, so either a folder OR a file is possible, not both. (limitation of home assistant).
To be able to still use both, I moved my files from the "automation" folder to the "packages" folder and added "automation:" at the beginning.
As long as the filename is "automations.yaml", VSCODE expects to NOT include the "automation:" as it is not needed if its a "include_file". It does not see that it is in the packages folder.
no parsing errors
create a package in "packages" folder and name it automations.yaml (probably same for sensors.yaml etc)
workaround so far is just to rename the file
I was changing some code on a yaml file, and the addon shows me a "reconnecting" message. Then, all the config on that YAML file was lost. It happened twice today.
I really don't know how to recover all my config.....
[19/Dec/2019:15:31:19 -0300] 200 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/data/vscode/extensions/vscode-icons-team.vscode-icons-9.6.0/icons/folder_type_temp.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:31:19 -0300] 200 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/data/vscode/extensions/vscode-icons-team.vscode-icons-9.6.0/icons/folder_type_theme.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:31:19 -0300] 200 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/data/vscode/extensions/vscode-icons-team.vscode-icons-9.6.0/icons/folder_type_www.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:31:19 -0300] 200 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /vscode-remote-resource?path=/data/vscode/extensions/vscode-icons-team.vscode-icons-9.6.0/icons/default_file.svg&tkn= HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:32:25 -0300] 101 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /?reconnectionToken=02b1efca-a685-47f9-9bb6-XXXXXXb&reconnection=false&skipWebSocketFrames=false HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
[19/Dec/2019:15:32:25 -0300] 101 200.73.XXX.XXX, 172.30.32.1(172.30.32.2) GET /?reconnectionToken=ec017cff-e5fc-4161-900d-XXXXXX&reconnection=false&skipWebSocketFrames=false HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36)
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
I'm unsure if this is expected behaviour (and there's a configuration step I missed) or an issue with the addon.
When using git inside VSCode, I can commit changes using the GUI, but when I use the push command I get an error that I cannot find the askpass.sh file.
It should ask for a username and password for the git repository.
The command fails with an error message. (screenshot)
If I open the git log, this is the error I see:
> git push origin master
fatal: cannot run /home/travis/build/codercom/code-server/packages/server/build/extensions/git/dist/askpass.sh: No such file or directory
fatal: could not read Username for 'https://github.com': No such device or address
If I go directly to the terminal and type in the same command (git push origin master
) it correctly asks for my authentication and the push succeeds.
When i try to rename a .yaml file i will "jump out" of renaming mode and my typing becomes some kind of search instead.
The file name to be edited until i click "enter"
(What actually happened)
I copied a .yaml file and pasted it in my "packages" folder, the if i click F2 or if right mouse click and choose "rename" i get same problem.
Running the latest 1.1.0 addon version
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
Trying to rename "androidtv copy" to "sonoff"
Ive broken my cscode editor I was adding a folder to config and could not get back to see all files in config just the new one I created I know this is probably user error but I tried searching for config now all I get is a black screen in the dark gray. Have tried reinstalling cscode and clearing cache but no change. Can you point me in right direction please. Sorry if this is not the right place tp post.
(What you expected to happen)
(What actually happened)
(How can someone else make/see it happen)
(If you have a proposed change, workaround or fix,
describe the rationale behind it)
When trying to search the Extensions Marketplace, I receive an error. I'm trying to determine if this is an issue, or expected behavior.
Expected to get the list of available extensions.
I receive the error "We cannot connect to the Extensions Marketplace at this time, please try again later.
Try to search for an extension or add a language support module.
Unsure. This is all I can see in the logs for VSC:
[error] An unknown error occurred. Please consult the log for more details.
Not seeing anything of note in the add-on logs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.