MaastrichtU-IDS / MaastrichtU-IDS/d2s-cli
d2s config throws '.env not found'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
reproduce:
- create folder
- run d2s init
- run d2s config
get
```
File "/home/.local/lib/python3.8/site-packages/d2s/__main__.py", line 31, in config
get_config()
File "/home/.local/lib/python3.8/site-packages/d2s/utils.py", line 207, in get_config
with open('.env') as f:
FileNotFoundError: [Errno 2] No such file or directory: '.env'
```
expected
- if .env is required, can d2s init create it?
- a more friendly error: '.env expected; read more at ...'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the sequence with `d2s init` and `d2s config`, then inspect `d2s/__main__.py` and `d2s/utils.py`, especially `get_config()` and the `.env` read. Clarify whether `d2s init` should create `.env` or `d2s config` should report a friendlier message; done means the command no longer exposes the raw FileNotFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100