Comments (13)
@fab33 thanks for finding the root cause!
@jameshiscott @liquidshock @Murpher @DriesA please find packaged extension with the applied fix below:
openhab-0.3.5.vsix.zip
from openhab-vscode.
Ok I find the bug. it's related to a dot in the path.
located here :
change to
if (document.fileName.split('.').pop() === 'items') {
I don't make a PR for this.
from openhab-vscode.
Hey @DriesA,
Could you hit Ctrl + ,
in your VS Code and tell me if your configuration strings are located in User Settings or Workspace Settings?
It may be worth to move them to user settings and see if the problem goes away 🤔
Cheers!
from openhab-vscode.
Hi,
In workspace settings I have this:
{ "openhab.host": "192.168.3.2" }
In user settings I have this:
`{
"window.zoomLevel": 2,
"window.menuBarVisibility": "default",
// Specifies the URL or IP address for the openHAB preview. (Use 'localhost' when developing locally)
"openhab.host": "192.168.3.2",
}`
I guess that's correct, right?
from openhab-vscode.
Hi @kubawolanin ,
Fantastic work your doing on this.
I have the same issue when I'm working on my win10 laptop and using shared folder onto my raspberry pi.
What I have found though is if I copy the conf folder from my raspberry pi to the laptop running vs code and open the local folder in vs the "Create Items from Channels", "Insert into sitemap" and so on it does work.
Not sure if works for others but can only assume issue must be when working with remote conf folder
from openhab-vscode.
I can confirm that issue happens for all types (rules, sitemaps) when working on remote configuration via SSH mount on MacOS.
from openhab-vscode.
I have the same problem, running on windows via a openhabian samba share
Ps. thanks for all the work on this, its such a cool tool
from openhab-vscode.
Same bug here. With sftp access to openhab server (and gvfs). Juste after installing vscode and extension it was working ! but today after a complete restart and exactly same setup I have the same error message.
from openhab-vscode.
Works as a charm! Thanks a lot!!
from openhab-vscode.
Yep that fixed it. Thanks guys
from openhab-vscode.
I still have the error. I use Windows 10 with openhabian. What have I done wrong?
from openhab-vscode.
@bligher
You need to install the fixed version linked above.
The extension on the market place is from 11/25/2017 and does not include the fix.
from openhab-vscode.
@leit512 @bligher - it's no longer a case :) Your extensions should now update to 0.4.0 🎉
from openhab-vscode.
Related Issues (20)
- [RFC] Add a FileSystemProvider to allow editing objects remotely HOT 1
- Provide Proper Migration Documentation
- [RFC]Refactor item from channel creation HOT 1
- Changelog is not shown in marketplace/extension dialog HOT 1
- QuantityType parsing HOT 1
- preview and insert icons HOT 1
- RFC - How to deal with basic auth HOT 1
- Openhab extension fails to initialize for workspace wtih UNC path HOT 1
- Complete the switch to axios as http library
- VSC generic error messages HOT 3
- deprectaed propertie 'openhab.username' in default config HOT 1
- Enable support for Visual Studio Code for the web
- The type *Rules is already defined in *.rules (org.eclipse.xtext.xbase.validation.IssueCodes.duplicate_type) HOT 6
- Request textDocument/hover failed HOT 1
- API via HTTPs - Error: self signed certificate in certificate chain HOT 3
- rules file: inconsistent color markings on double click.
- Support for JRuby-Files like Rules-Files
- vscode extension shows error wrongly with temperature variable in rules
- API access gets 400 with swag reverse proxy
- Visual Studio code error for "openHAB Language Server": "getaddrinfo ENOTFOUND openhabianpi"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhab-vscode.