GothenburgBitFactory / GothenburgBitFactory/timewarrior

Issues with config import

Open
#579 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
1.7k
Forks
117
Avg merge
1d 7h
Merged PRs (30d)
5

Description

An `import` statement in config files is currently not working if the path contains less than 3 slashes, e.g.
```
import /foo/file
```
Also, any issue with invalid file paths is masked. The following import statements do not display any error message:
```
import /path/to/not/readable
import /path/to/non/existing
import does + not - make / sense
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing how config-file import statements are parsed and how invalid paths are handled, then reproduce the examples for short paths, unreadable files, missing files, and malformed syntax. Done means imports with fewer than three slashes work and each invalid import reports an appropriate error instead of being silently ignored.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.