qw3rtty / neix

neix - a RSS/Atom feed reader for your terminal.
GNU General Public License v3.0
200 stars 12 forks source link

[BUG] Error on launch: terminating with uncaught exception of type std::out_of_range: vector #3

Closed AdamWagner closed 3 years ago

AdamWagner commented 4 years ago

Describe the bug Error on launch.

❯ neix [neix] Starting version 0.1.0 [neix] Loading configuration files libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: vector fish: 'neix' terminated by signal SIGABRT (Abort)

contents of feeds.conf: REDDIT = https://www.reddit.com/r/commandline.rss

I also tried: https://www.reddit.com/r/commandline.rss

Next, for each of the lines above, I tried 3 variations: no quotes, single quotes around URL, double quotes around URL. This experimentation was motivated by Loading configuration files appearing just before the error, even though they're probably unrelated.

Finally, I tried several other RSS feeds from my newsboat config (I don't remember which ones, exactly). None of these changes had any effect on launch behavior.

To Reproduce Steps to reproduce the behavior:

  1. echo 'REDDIT = https://www.reddit.com/r/commandline.rss' > ~/.config/neix/feeds.conf
  2. neix
  3. See error

Expected behavior neix launches without error

Desktop (please complete the following information):

Additional context Reproducible with both bash & zsh as well. The very first time I attempted to launch neix, it launched (and operated) successfully (with 'https://www.reddit.com/r/commandline.rss' in feeds.conf). Every subsequent attempt results in the error above. Uninstalling / reinstalling has no effect.

qw3rtty commented 4 years ago

@AdamWagner Thanks for opening this Issue. I got this link also in my Feed list without Errors. Pretty Strange. I will check it out on an Mac.

qw3rtty commented 4 years ago

@AdamWagner I tried to reproduce the error with your steps. But on my Mac and on my Linux machine it works without error.

I made some improvements on the config reader and while launching neix. There is a new version. Maybe you can try it again?

If have the error still it would be nice if you could share your config files. :)

qw3rtty commented 3 years ago

@AdamWagner Do you have still the error?

AdamWagner commented 3 years ago

Thanks for the updates, and sorry for the delayed response, @tomschwarz

Today I pulled changes, rebuilt, and tried again. Voila! I'm able to load neix multiple times in multiple shells without issue. Thanks again!

qw3rtty commented 3 years ago

@AdamWagner Thanks for your response! I am glad to hear it.