Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config file: Allow inline comments #567

Open
akira25 opened this issue Apr 12, 2025 · 0 comments
Open

Config file: Allow inline comments #567

akira25 opened this issue Apr 12, 2025 · 0 comments

Comments

@akira25
Copy link

akira25 commented Apr 12, 2025

I've come across a recurring issue with the configuration file, which appears to not support inline comments.

For instance, the following works as expected:

# AOIC-Soundcard as reported by arecord -l  
ADEVICE  plughw:3,0

However, adding a comment on the same line causes an error that’s a bit hard to trace:

ADEVICE  plughw:3,0        # AOIC-Soundcard as reported by arecord -l

Which results in:

Dire Wolf version 1.7
Includes optional support for:  gpsd hamlib cm108-ptt

Reading config file aioc.conf
Audio input device for receive: plughw:3,0  (channel 0)
Audio out device for transmit: #  (channel 0)
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM #
Could not open audio device # for output
No such file or directory
Pointless to continue without audio device.

It’s a rather subtle issue, and it took me a while to realise that the inline comment was the cause.

It would be fantastic if support for inline comments could be added, or if the parser could at least ignore them more gracefully. This would make the config files a bit more forgiving and user-friendly.

Thanks a lot for your great work on this project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant