Wrong `Duplicate declaration` error in a simple config
- Dominant language
- C
- Stars
- 8.1k
- Forks
- 241
- PR merge metrics
- No merged PRs in 30d
Description
For some reason this config is not considered as valid:
```
:: buy
:: buyW
rcmd - b ; buy
buy, buyW < rcmd - escape ; default
buy < rcmd - w ; buyW
buyW < rcmd - u : osascript -e 'tell application "Terminal" to do script "echo buy wu" & activate'
```
```sh
/usr/local/bin/skhd -c ~/.skhdrc
#2:4 duplicate declaration 'buyW'
```
I'm using the latest version installed via brew:
```sh
/usr/local/bin/skhd --version
skhd-v0.3.9
```
The interesting thing is that if I install skhd from the source, this error does not happen. The source code is the same, but result is different. What can be the reason of such behaviour?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the supplied config and `/usr/local/bin/skhd -c ~/.skhdrc` with both the Homebrew `skhd-v0.3.9` binary and a source-built binary. Compare their build or package provenance and determine why only one reports the duplicate declaration; done means the binary difference is explained with a reproducible conclusion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, macos
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100