You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ls ~/.ansible/
ls: cannot access '/home/dnaro/.ansible/': No such file or directory
Scaffold a collection with the default init path:
Select Install collection from source code (editable mode)
ADE logs contain this:
------------------------------- ansible-dev-environment logs --------------------------------
Hint: Run rm -rf ~/.ansible/collections to remove them.
Command failed: ade install --venv /home/dnaro/.ansible/collections/ansible_collections/hello_ns/hello_world/.venv --editable /home/dnaro/.ansible/collections/ansible_collections/hello_ns/hello_world --no-ansi -vvv
Error: Collections found in
/home/dnaro/.ansible/collections/ansible_collections
Critical: The development environment is not isolated, please resolve the above
errors.
What is happening here is a confusing and frustrating experience for new users. I can scaffold a collection with creator but ADE throws an error about the default init path. Essentially it is complaining about installing the collection that I just created. Other ADE commands also fail with critical errors such as "ade list" or "ade check".
If I choose another directory for the init path, such as my current working directory, ADE does not report the error.
It seems like a reasonable fix would be to get the cwd from path and set that as the default init directory. This seems consistent with the ansible-creator command line experience.
If I do "ansible-creator init collection hello_ns.hello_world" it scaffolds the collection in my current working directory and I can do "ade install -e ." with no problem.
------------------------------------ ansible-creator logs ------------------------------------
Debug: parsed args {'subcommand': 'init', 'project': 'collection',
'collection': 'hello_ns.hello_world', 'init_path':
'/home/dnaro/.ansible/collections/ansible_collections', 'force':
False, 'overwrite': False, 'no_overwrite': False}
Debug: starting requested action 'init'
Debug: found action class <class 'ansible_creator.subcommands.init.Init'>
Debug: final collection path set to /home/dnaro/.ansible/collections/ansible_
collections/hello_ns/hello_world
Debug: started copying collection skeleton to destination
Debug: starting recursive walk with source container 'collection_project'
Debug: no resource specific vars found
Debug: current root set to MultiplexedPath('/home/dnaro/workspace/vscode-bug/ venv/lib64/python3.12/site-packages/ansible_creator/resources/collecti on_project')
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.github
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/.githu
b
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.github/workflows
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/.githu
b/workflows
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.github/workflows/release.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.github/workflows/tests.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.isort.cfg
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.pre-commit-config.yaml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.prettierignore
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/CHANGELOG.rst
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/CODE_OF_CONDUCT.md
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/CONTRIBUTING
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/LICENSE
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/MAINTAINERS
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/README.md
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/changelogs
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/change
logs
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/changelogs/config.yaml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/docs
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/docs
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/docs/.keep
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/docs/docsite
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/docs/d
ocsite
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/docs/docsite/links.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/extens
ions
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/eda
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/extens
ions/eda
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/eda/rulebooks
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/extens
ions/eda/rulebooks
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/eda/rulebooks/rulebook.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/extens
ions/molecule
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/integration_hello_world
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/extens
ions/molecule/integration_hello_world
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/integration_hello_world/molecule.ym
l
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/utils
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/extens
ions/molecule/utils
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/utils/playbooks
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/extens
ions/molecule/utils/playbooks
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/utils/playbooks/converge.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/utils/playbooks/noop.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/utils/vars
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/extens
ions/molecule/utils/vars
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/utils/vars/vars.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/galaxy.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/meta
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/meta
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/meta/runtime.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/action
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/action
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/action/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/cache
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/cache
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/cache/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/filter
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/filter
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/filter/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/filter/hello_world.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/inventory
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/inventory
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/inventory/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/lookup
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/lookup
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/lookup/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/lookup/hello_world.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/module_utils
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/module_utils
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/module_utils/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/modules
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/modules
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/modules/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/plugin_utils
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/plugin_utils
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/plugin_utils/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/sub_plugins
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/sub_plugins
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/sub_plugins/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/test
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/plugin
s/test
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/test/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/pyproject.toml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/requirements.txt
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles/
run
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/README.md
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/defaults
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles/
run/defaults
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/defaults/main.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/files
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles/
run/files
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/files/.keep
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/handlers
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles/
run/handlers
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/handlers/main.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/meta
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles/
run/meta
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/meta/main.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/tasks
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles/
run/tasks
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/tasks/main.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/templates
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles/
run/templates
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/templates/.keep
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/tests
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles/
run/tests
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/tests/inventory
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/vars
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/roles/
run/vars
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/vars/main.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/test-requirements.txt
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/tests
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/.gitignore
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/tests/
integration
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration/test_integration.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration/targets
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/tests/
integration/targets
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration/targets/hello_world
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/tests/
integration/targets/hello_world
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration/targets/hello_world/tasks
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/tests/
integration/targets/hello_world/tasks
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration/targets/hello_world/tasks/main.yml
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/unit
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/collection_project/tests/
unit
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/unit/.keep
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/unit/__init__.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/unit/test_basic.py
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/unit/__pycache__
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tox-ansible.ini
Debug: starting recursive walk with source container 'common.devcontainer'
Debug: no resource specific vars found
Debug: current root set to MultiplexedPath('/home/dnaro/workspace/vscode-bug/ venv/lib64/python3.12/site-packages/ansible_creator/resources/common/d evcontainer')
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.devcontainer
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/common/devcontainer/.devc
ontainer
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.devcontainer/devcontainer.json
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.devcontainer/docker
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/common/devcontainer/.devc
ontainer/docker
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.devcontainer/docker/devcontainer.json
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.devcontainer/podman
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/common/devcontainer/.devc
ontainer/podman
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.devcontainer/podman/devcontainer.json
Debug: starting recursive walk with source container 'common.devfile'
Debug: no resource specific vars found
Debug: current root set to MultiplexedPath('/home/dnaro/workspace/vscode-bug/ venv/lib64/python3.12/site-packages/ansible_creator/resources/common/d evfile')
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/devfile.yaml
Debug: starting recursive walk with source container 'common.gitignore'
Debug: loading resource specific vars from /home/dnaro/workspace/vscode-bug/v
env/lib64/python3.12/site-packages/ansible_creator/resources/common/gi
tignore/__meta__.yml
Debug: current root set to MultiplexedPath('/home/dnaro/workspace/vscode-bug/ venv/lib64/python3.12/site-packages/ansible_creator/resources/common/g itignore')
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.gitignore
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/__meta__.yml
Debug: starting recursive walk with source container 'common.vscode'
Debug: no resource specific vars found
Debug: current root set to MultiplexedPath('/home/dnaro/workspace/vscode-bug/ venv/lib64/python3.12/site-packages/ansible_creator/resources/common/v scode')
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.vscode
Debug: current root set to /home/dnaro/workspace/vscode-bug/venv/lib64/python
3.12/site-packages/ansible_creator/resources/common/vscode/.vscode
Debug: Looking at /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.vscode/extensions.json
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.github/workflows/release.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.github/workflows/tests.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.isort.cfg
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.pre-commit-config.yaml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.prettierignore
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/CHANGELOG.rst
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/CODE_OF_CONDUCT.md
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/CONTRIBUTING
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/LICENSE
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/MAINTAINERS
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/README.md
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/changelogs/config.yaml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/docs/.keep
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/docs/docsite/links.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/eda/rulebooks/rulebook.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/integration_hello_world/molecule.ym
l
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/utils/playbooks/converge.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/utils/playbooks/noop.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/extensions/molecule/utils/vars/vars.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/galaxy.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/meta/runtime.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/action/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/cache/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/filter/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/filter/hello_world.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/inventory/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/lookup/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/lookup/hello_world.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/module_utils/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/modules/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/plugin_utils/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/sub_plugins/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/plugins/test/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/pyproject.toml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/requirements.txt
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/README.md
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/defaults/main.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/files/.keep
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/handlers/main.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/meta/main.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/tasks/main.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/templates/.keep
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/tests/inventory
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/roles/run/vars/main.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/test-requirements.txt
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/.gitignore
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration/test_integration.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/integration/targets/hello_world/tasks/main.yml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/unit/.keep
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/unit/__init__.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tests/unit/test_basic.py
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/tox-ansible.ini
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.devcontainer/devcontainer.json
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.devcontainer/docker/devcontainer.json
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.devcontainer/podman/devcontainer.json
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/devfile.yaml
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.gitignore
Debug: Writing to /home/dnaro/.ansible/collections/ansible_collections/hello_
ns/hello_world/.vscode/extensions.json
Note: collection project created at /home/dnaro/.ansible/collections/ansible
_collections/hello_ns/hello_world
Debug: exiting ansible-creator
------------------------------- ansible-dev-environment logs --------------------------------
Hint: Run `rm -rf ~/.ansible/collections` to remove them.
Command failed: ade install --venv /home/dnaro/.ansible/collections/ansible_collections/hello_ns/hello_world/.venv --editable /home/dnaro/.ansible/collections/ansible_collections/hello_ns/hello_world --no-ansi -vvv
Error: Collections found in
/home/dnaro/.ansible/collections/ansible_collections
Critical: The development environment is not isolated, please resolve the above
errors.
The text was updated successfully, but these errors were encountered:
Summary
$ ls ~/.ansible/
galaxy_cache test tmp
$ rm -rf ~/.ansible/
$ ls ~/.ansible/
ls: cannot access '/home/dnaro/.ansible/': No such file or directory
Scaffold a collection with the default init path:
Select Install collection from source code (editable mode)
ADE logs contain this:
------------------------------- ansible-dev-environment logs --------------------------------
Hint: Run
rm -rf ~/.ansible/collections
to remove them.Command failed: ade install --venv /home/dnaro/.ansible/collections/ansible_collections/hello_ns/hello_world/.venv --editable /home/dnaro/.ansible/collections/ansible_collections/hello_ns/hello_world --no-ansi -vvv
Error: Collections found in
/home/dnaro/.ansible/collections/ansible_collections
Critical: The development environment is not isolated, please resolve the above
errors.
$ tree -L 4 ~/.ansible/
/home/dnaro/.ansible/
└── collections
└── ansible_collections
└── hello_ns
└── hello_world
What is happening here is a confusing and frustrating experience for new users. I can scaffold a collection with creator but ADE throws an error about the default init path. Essentially it is complaining about installing the collection that I just created. Other ADE commands also fail with critical errors such as "ade list" or "ade check".
If I choose another directory for the init path, such as my current working directory, ADE does not report the error.
It seems like a reasonable fix would be to get the cwd from path and set that as the default init directory. This seems consistent with the ansible-creator command line experience.
If I do "ansible-creator init collection hello_ns.hello_world" it scaffolds the collection in my current working directory and I can do "ade install -e ." with no problem.
Extension version
v24.12.1
VS Code version
1.96.0
Ansible Version
OS / Environment
$ cat /etc/fedora-release
Fedora release 40 (Forty)
$ pip list | grep ansible
ansible-builder 3.1.0
ansible-compat 24.10.0
ansible-core 2.18.1
ansible-creator 24.12.1
ansible-dev-environment 24.12.0
ansible-dev-tools 24.12.0
ansible-lint 24.12.2
ansible-navigator 24.12.0
ansible-runner 2.4.0
ansible-sign 0.1.1
pytest-ansible 24.12.0
tox-ansible 24.12.0
Relevant log output
The text was updated successfully, but these errors were encountered: