Giter VIP home page Giter VIP logo

Comments (4)

tsia avatar tsia commented on May 25, 2024 1

thanks for the hints. i'm not sure what went wrong here. on another machine vscode wasn't updating properly so vscode-ansible wasn't updating as well. maybe that was the same on my WSL machine. anyway it's working now as expected.

from vscode-ansible.

ssbarnea avatar ssbarnea commented on May 25, 2024

To be honest support for WSL would clearly not come from me, but I would neither fight any pull-request that adds it.

What I can tell you is that my plan is to make it able to reuse already existing toolset container which contains ansible-lint. Still my experience with vscode extension writing is very limited, so help would be more than welcomed.

At its current state it is working in "bring your own ansible-lint" mode, where you are responsible for installing it yourself and either adding it to your PATH or configuring the path to it.

from vscode-ansible.

tsia avatar tsia commented on May 25, 2024

unfortunately i don't know a lot about how vscode works internally. i would have expected vscode to do the WSL magic by itself. especially when it explicitly supports it.

i have installed ansible-lint inside WSL and i also set the path in settings.json:

{
  "ansible.validate.executablePath": "/home/tsia/.local/bin/ansible-lint"
}
# which ansible-lint
/home/tsia/.local/bin/ansible-lint

what i just realized: when i save the playbook on "bare" windows i at least get some feedback that your extension is being executed. When i save in WSL nothing happens at all. Is there a way to see if your extension is triggered at all?

from vscode-ansible.

erclu avatar erclu commented on May 25, 2024

chiming in to tell you that the extension as of today works inside WSL for me; I didn't even need to add the explicit executable path, it was picked up correctly from PATH.

In your case there might be some other reason why it's not working. If you're still interested in this, I'd say it could be something like the fact that you're using some other extension that changes the language mode for ansible files. Currently the extension works only if the configured language for the file is yaml.

Is there a way to see if your extension is triggered at all?

I've fiddled around and i found that you can search for the string "vscode-ansible" inside the output channel Log (Remote Extension host):

image

You can also open the vscode developer tools, go to console and search for this message:

image

from vscode-ansible.

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.