Giter VIP home page Giter VIP logo

Comments (13)

kubawolanin avatar kubawolanin commented on August 15, 2024 2

@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.

fab33 avatar fab33 commented on August 15, 2024 1

Ok I find the bug. it's related to a dot in the path.
located here :

if (document.fileName.split('.')[1] === 'items') {

change to

        if (document.fileName.split('.').pop() === 'items') {

I don't make a PR for this.

from openhab-vscode.

kubawolanin avatar kubawolanin commented on August 15, 2024

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.

DriesA avatar DriesA commented on August 15, 2024

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.

MikeMurpher avatar MikeMurpher commented on August 15, 2024

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.

liquidshock avatar liquidshock commented on August 15, 2024

I can confirm that issue happens for all types (rules, sitemaps) when working on remote configuration via SSH mount on MacOS.

from openhab-vscode.

jameshiscott avatar jameshiscott commented on August 15, 2024

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.

fab33 avatar fab33 commented on August 15, 2024

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.

DriesA avatar DriesA commented on August 15, 2024

Works as a charm! Thanks a lot!!

from openhab-vscode.

jameshiscott avatar jameshiscott commented on August 15, 2024

Yep that fixed it. Thanks guys

from openhab-vscode.

bligher avatar bligher commented on August 15, 2024

I still have the error. I use Windows 10 with openhabian. What have I done wrong?

from openhab-vscode.

stegmannb avatar stegmannb commented on August 15, 2024

@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.

kubawolanin avatar kubawolanin commented on August 15, 2024

@leit512 @bligher - it's no longer a case :) Your extensions should now update to 0.4.0 🎉

from openhab-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.