Cannot connect visual code on linux

  • Platform information:

    • Hardware: _ntel® Celeron(R) N4500 @ 1.10GHz / 8GB RAM
    • OS: _zorin OS 16 - openhab3
    • Java Runtime Environment: openjdk version “11.0.13” 2021-10-19
      OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.20.04)
      OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
  • Issue of the topic: when trying to add workspace to visual code, openhab does not show in /etc map

Hi,

I installed openhab 3 on linux machine (zorin 16) and installed visual code, with openhab add on.
However when i try to add folder to workspace and i navigate to /etc openhab does not show. I can navigate to /etc/openhab using file manager.
I guess it has to do with rights. the folder is shared, tried to chmod 777 openhab, but somehow it stays hiddden.

Any body has a suggestion where to look or what config i have to change?

additional info : error in visual code :slight_smile:
Usage of deprecated config => openhab.host <= detected.
Usage of deprecated config => openhab.port <= detected.
Usage of deprecated config => openhab.host <= detected.
openHAB vscode extension has been activated
[Error - 4:36:55 PM] Connection to server is erroring. Shutting down server.
[Error - 4:36:55 PM] Connection to server is erroring. Shutting down server.
Usage of deprecated config => openhab.host <= detected.
Usage of deprecated config => openhab.port <= detected.
Usage of deprecated config => openhab.host <= detected.
Usage of deprecated config => openhab.port <= detected.
Could not reload items for HoverProvider
Could not reload items for Items Explorer
Could not reload items for Things Explorer

Error:
    Error while connecting to openHAB REST API.

Message:
    Error: getaddrinfo EAI_AGAIN openhabianpi


Error:
    Error while connecting to openHAB REST API.

Message:
    Error: getaddrinfo EAI_AGAIN openhabianpi

Usage of deprecated config => openhab.host <= detected.
Usage of deprecated config => openhab.port <= detected.
Could not reload items for Items Explorer

Error:
    Error while connecting to openHAB REST API.

Message:
    Error: getaddrinfo EAI_AGAIN openhabianpi

Usage of deprecated config => openhab.host <= detected.
Usage of deprecated config => openhab.port <= detected.
Could not reload items for Things Explorer

Error:
    Error while connecting to openHAB REST API.

Message:
    Error: getaddrinfo EAI_AGAIN openhabianpi

Vi

Have you configured vs code plugin according to documentation?

Hi,

Thank you for the tip. Don’t know if I did this correctly, guess not, but will look into that tonight.

The error I made was using VC on the same machine that is running openhab. For reasons I do not understand yet, this does not work.
However when I installed VC on other machine and cofigured plugin correctly, it works.

Thks 4 help