question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

-c does not work as expected

See original GitHub issue

git branch | fpp -ai -c git checkout throws an error after selecting a branch.

Traceback (most recent call last):
  File "/usr/local/Cellar/fpp/0.7.2/libexec/src/choose.py", line 100, in <module>
    curses.wrapper(lambda x: doProgram(x, flags))
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/curses/__init__.py", line 102, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/Cellar/fpp/0.7.2/libexec/src/choose.py", line 100, in <lambda>
    curses.wrapper(lambda x: doProgram(x, flags))
  File "/usr/local/Cellar/fpp/0.7.2/libexec/src/choose.py", line 42, in doProgram
    screen.control()
  File "/usr/local/Cellar/fpp/0.7.2/libexec/src/screenControl.py", line 360, in control
    self.processInput(inKey)
  File "/usr/local/Cellar/fpp/0.7.2/libexec/src/screenControl.py", line 455, in processInput
    self.onEnter()
  File "/usr/local/Cellar/fpp/0.7.2/libexec/src/screenControl.py", line 592, in onEnter
    output.execComposedCommand(presetCommand, lineObjs)
  File "/usr/local/Cellar/fpp/0.7.2/libexec/src/output.py", line 42, in execComposedCommand
    command = composeCommand(command, lineObjs)
  File "/usr/local/Cellar/fpp/0.7.2/libexec/src/output.py", line 145, in composeCommand
    return composeFileCommand(command, lineObjs)
  File "/usr/local/Cellar/fpp/0.7.2/libexec/src/output.py", line 149, in composeFileCommand
    command = command.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

However, this works: git branch | fpp -ai, set the command pressing c to git checkout and then selecting a branch.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
pcottlecommented, Aug 8, 2019

Alright new release is up: https://github.com/Homebrew/homebrew-core/pull/42940

Once that merges, you can upgrade and this will be fixed 😃 long overdue for a new release!

0reactions
pcottlecommented, Aug 9, 2019

Woohoo! Yeah the PR got closed so everyone should get the new release. Thanks for the bump to make a new release

From: Sergio Moya notifications@github.com Reply-To: facebook/PathPicker reply@reply.github.com Date: Friday, August 9, 2019 at 4:50 AM To: facebook/PathPicker PathPicker@noreply.github.com Cc: Peter Cottle pcottle@instagram.com, Mention mention@noreply.github.com Subject: Re: [facebook/PathPicker] -c does not work as expected (#304)

Oh I see, nvm! I upgraded and it works 👏 Thanks again

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/facebook/PathPicker/issues/304?email_source=notifications&email_token=AAIVDHZZS53VV4GKPCZP7WLQDVKVJA5CNFSM4IKI6WYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36OF6A#issuecomment-519889656, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAIVDHYIYQ3RCJDGGL3JANTQDVKVJANCNFSM4IKI6WYA.

Read more comments on GitHub >

github_iconTop Results From Across the Web

For Loop in C does not work as Expected - Stack Overflow
I don't understand the flow of the following for loop: it becomes an infinite loop. I am using ubuntu 12.04. Am I doing...
Read more >
Ctrl-C does not work as expected within `vagrant ssh` in Git ...
One should be able to use Ctrl+C within a vagrant ssh session. This is not the case with Git Bash or MSYS2 (both...
Read more >
if / else errors - learn how to fix these - Codecademy
For one thing, unlike if and else if , an else statement is not used to do condition checking. The purpose of else...
Read more >
Unexplained Windows or software behavior may be caused ...
Components of Windows or other programs no longer work. Cause. This issue may occur when deceptive software, such as spyware that is known...
Read more >
extern variable is not working as expected - C Board
extern variable is not working as expected. extern variable tell to compiler about scope. I've declare variable x in file1.c file1.c.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found