Azure / Azure/azure-cli-extensions
I tried running `azdev style <YOUR_EXT>` in a codespace, but it crashes.
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
I tried running `azdev style ` in the codespace, but it crashes.
```
@jessehouwing ➜ /workspaces/azure-cli-extensions (patch-1) $ azdev style init
Traceback (most recent call last):
File "/home/codespace/.python/current/bin/azdev", line 8, in
sys.exit(main())
File "/usr/local/python/3.10.8/lib/python3.10/site-packages/azdev/__main__.py", line 39, in main
config_dir=get_azdev_config_dir())
File "/usr/local/python/3.10.8/lib/python3.10/site-packages/azdev/utilities/config.py", line 24, in get_azdev_config_dir
_, env_name = os.path.splitdrive(get_env_path())
File "/usr/local/python/3.10.8/lib/python3.10/posixpath.py", line 134, in splitdrive
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
had to run `pip install azdev`, it would be nice if the default codespace config for this repo included `azdev` by default.
_Originally posted by @jessehouwing in https://github.com/Azure/azure-cli-extensions/issues/6793#issuecomment-1730091737_
Contributor guide
Assessment
This issue has not been assessed yet.