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

list index out of range when trying to launch from cli #38

Closed
Nachtpfoetchen opened this issue Jan 12, 2022 · 3 comments
Closed

list index out of range when trying to launch from cli #38

Nachtpfoetchen opened this issue Jan 12, 2022 · 3 comments

Comments

@Nachtpfoetchen
Copy link

Nachtpfoetchen commented Jan 12, 2022

when i try to start rofi-rbw from the cli i get the following error:


rofi -modi "rofi-rbw:rofi-rbw" -show rofi-rbw 

Traceback (most recent call last):
  File "/usr/bin/rofi-rbw", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/rofi_rbw/rofi_rbw.py", line 231, in main
    RofiRbw().main()
  File "/usr/lib/python3.10/site-packages/rofi_rbw/rofi_rbw.py", line 132, in main
    parsed_entries = [Entry.parse_rbw_output(it) for it in entries]
  File "/usr/lib/python3.10/site-packages/rofi_rbw/rofi_rbw.py", line 132, in <listcomp>
    parsed_entries = [Entry.parse_rbw_output(it) for it in entries]
  File "/usr/lib/python3.10/site-packages/rofi_rbw/entry.py", line 33, in parse_rbw_output
    fields[1],
IndexError: list index out of range

Not sure what is wrong. maybe i miss a package or something?

@fdw
Copy link
Owner

fdw commented Jan 12, 2022

First off, rofi-rbw is not made to be called as a mode in rofi. Just start it with rofi-rbw 🙂

Secondly, do you have an entry without name? Or does rbw ls --fields', 'folder,name,user return something otherwise unexpected (f.e. only one item in a line)?

@Nachtpfoetchen
Copy link
Author

Ah i see. spit out the same error anyway because i had not rbw configured. Would be great to mention that in the readme file. But now after configureing rbw everything works fine.

fdw added a commit that referenced this issue Jan 13, 2022
fdw added a commit that referenced this issue Jan 13, 2022
It was a bit naive to think that rbw is already correctly configured and
working. So now we check whether that is really the case.

Issue: #38
fdw added a commit that referenced this issue Jan 13, 2022
fdw added a commit that referenced this issue Jan 13, 2022
It was a bit naive to think that rbw is already correctly configured and
working. So now we check whether that is really the case.

Issue: #38
@fdw
Copy link
Owner

fdw commented Jan 13, 2022

Thanks for the hint 🙂
I've extended the readme a bit and added a check whether rbw works. That should help the next one, hopefully.

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

2 participants