-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[configuration] UNC/folder path #184
Comments
Hi @lsiepel and thanks for your input. If your are using remote LSP Server, the error messages get delivered from you openHAB environment and from my current knowledge we have no real influence in the message generation. The extension just starts a lsp connection and the rest is done in background via the involved node packages. We could maybe do something for the local lsp server, but i doubt that the local one would even generate the described problems, since it would check the code based on the opened folder. And a short disclaimer: |
I f i understand it right: The errors are generated from the remote LSP and shown in vs code. If you double click the error, vs code tries to open this UNC path that is provided by the LSP. I think there are 2 possible solutions (but i'm no expert)
|
This is the complete (extension side) code for the remote lsp server: We are just starting an instance of the But generally yes: |
Is this helpfull? file acces is done at implementation level. So if i understand this, there should be some place to temper the url. I haven't read everything, but couldn't find anything related @ https://code.visualstudio.com/api/language-extensions/overview |
Hi I have this error too.
It can be forced on any file (*.rules , *.items etc ) by right clicking on a command word and requesting 'Goto Definition' in the VS Code editor. I have a very recent RasPi 4 openhabian install; openhab version 2.5.6 Release. At first I just thought it was a problem with the host name being set to 'openhab' by the openhabian install on my RasPi . So I changed it to 'openhabianpi' as indicated at https://github.com/openhab/openhab-vscode/blob/master/docs/USAGE.md
but that didn't help. So I also shared the root (path=/) via samba from the RasPi so that the whole path was exposed just as in the error message. I then mapped a drive to this on my window 10 machine where I have VS Code version 1.47.2 installed and pointed at this mapped drive.
I have tried serveral things, uninstalling reinstalling the VS Code and the extension also but no change. Think this should be a dug as there is no Language Server validation without it, as far as I can tell. Thanks for any help you are able to give. |
Any updates on this issue? Because I'm experiencing the same. |
No. Same status as stated here: #184 (comment) |
The extension detects some errors in my example.rules files, but when i double click the problem it shows an error that file does not exist "\etc\openhab2\rules\example.rules"
The error has to do with a wrong UNC path. The documenation states it should be one of the two:
Samba share (e.g. \OPENHABIANPI\openHAB-conf) Local folder (e.g. c:\openhab\configuration)
My setup has a different UNC path, so i get errors when using the extension. And i would like to keep my hostnames / UNC shares and all thta the way it is. So i would like to request a feature where the extension has a configuration option to specify the UNC path.
The text was updated successfully, but these errors were encountered: