I think I read all the documentation I can find, but I'm still encountering an error. Let's start with setting the scene: I've made some changes to settings.json:
{
"openhab.connection.basicAuth.password": "myAPItoken, which I didn't include here",
"openhab.connection.host": "192.168.1.9",
"openhab.connection.port": 8080
}
Setting openhab.connection.host to 192.168.1.9 finally made openHAB extension work. Figuring this out took me some time. :)
But now the openHAB Language Server still trips over openhabianpi, which I don't really understand. Where does it get that from...? This is the error:
{
"openhab.connection.basicAuth.password": "myAPItoken, which I didn't include here",
"openhab.connection.host": "192.168.1.9",
"openhab.host": "192.168.1.9",
"openhab.connection.port": 8080
}
But then Visual Studio compains about "deprecated config values":
My initial reaction was "so what", but then it turns out, the openHAB Language Server is no longer in the dropdown menu (which I assume means it's not being loaded):
The actual problem
In order to escape any 'XY problem', this is what I want: I want to write rules in Visual Studio (on my Windows 11 pc) directly to M:\, which is \\192.168.1.9\openHAB-conf. From my understanding, that's how it should be setup? (192.168.1.9 is a Linux pc, and I installed via apt, so no Openhabian, if that matters.)
But without openHAB Language Server (I at least assume that's the missing piece), there's no visualisation of the code (for example: "rules.JSRULe" is not in colors, as I would expect it):
(I also don't understand what's supposed to be wrong with line 1, but that's another matter (or is it because openHAB Language Server isn't loaded?):
Expected Behavior
The
openHAB Language Server
loads.Current Behavior
I think I read all the documentation I can find, but I'm still encountering an error. Let's start with setting the scene: I've made some changes to
settings.json
:Setting
openhab.connection.host
to192.168.1.9
finally madeopenHAB extension
work. Figuring this out took me some time. :)But now the
openHAB Language Server
still trips overopenhabianpi
, which I don't really understand. Where does it get that from...? This is the error:I searched
package.json
, found here (https://github.com/openhab/openhab-vscode/blob/main/package.json) foropenhabianpi
, and only found it underopenhab.host
So I tried adding it tosettings.json
:But then Visual Studio compains about "deprecated config values":![image](https://github.com/openhab/openhab-vscode/assets/148375835/2514f0bf-db7a-4de9-8453-84d19b18e14e)
My initial reaction was "so what", but then it turns out, the![image](https://github.com/openhab/openhab-vscode/assets/148375835/204459e4-3655-46cd-8e7f-fcb777a84d2e)
openHAB Language Server
is no longer in the dropdown menu (which I assume means it's not being loaded):The actual problem In order to escape any 'XY problem', this is what I want: I want to write rules in Visual Studio (on my Windows 11 pc) directly to
M:\
, which is\\192.168.1.9\openHAB-conf
. From my understanding, that's how it should be setup? (192.168.1.9
is a Linux pc, and I installed viaapt
, so no Openhabian, if that matters.)But without![image](https://github.com/openhab/openhab-vscode/assets/148375835/8f5cb3c6-94f2-4b6e-84c8-d1706136fa02)
openHAB Language Server
(I at least assume that's the missing piece), there's no visualisation of the code (for example: "rules.JSRULe" is not in colors, as I would expect it):(I also don't understand what's supposed to be wrong with line 1, but that's another matter (or is it because![image](https://github.com/openhab/openhab-vscode/assets/148375835/5cf9c898-c793-4d68-b4be-71fdb7686f93)
openHAB Language Server
isn't loaded?):PS This is a copy of https://community.openhab.org/t/visual-studio-code-error-for-openhab-language-server-getaddrinfo-enotfound-openhabianpi/152191/1, but maybe it's a bug, rather than my configuration not being on point?
Possible Solution
Steps to Reproduce (for Bugs)
1. 2.
Context
Your Environment