Comments (4)
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.
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.
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.
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)
:
You can also open the vscode developer tools, go to console and search for this message:
from vscode-ansible.
Related Issues (20)
- Add document formatting feature OR set YAML extension's formatter on ansible playbooks. HOT 2
- Adopt ansible-language-server into vscode-ansible repository HOT 2
- Suggestions show all installed collections as part of 'ansible.builtin' HOT 1
- Improve Ansible LSP Docs for Vim and Neovim
- RFE: Allow for right-click on a molecule scenario to run it
- chore: upgrade chai v5
- Scaffolding collection fails when the web view in used for subsequent usage
- aaa HOT 1
- ansible variable resolution with live preview HOT 1
- Code quality checklist
- easily follow imports
- Modules from collections are not recognized when COLLECTIONS_PATH is set via env var HOT 1
- Standardise the functionalities provided by ansible-creator in the extension
- Ansible-language-server npm package 1.2.2 is missing core files HOT 1
- RFE: Ability to add devcontainer/devfile files to a workspace w/o ansible-creator
- Update development documentation for the new project structure
- "Open collection" should open in new window, with a new virtual environment
- Disable create buttons in the collection and project creation web-views during the scaffolding process
- Hung up remote session keeps running at 100% CPU HOT 3
- [error] Error: ENOENT: no such file or directory, stat - with temp pyc files
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 vscode-ansible.