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

AttributeError: FBPrintViewHierarchyCommand instance has no attribute 'lex' #261

Open
n0shake opened this issue Apr 8, 2019 · 5 comments

Comments

@n0shake
Copy link

n0shake commented Apr 8, 2019

First up, thanks for making this awesome tool!

I installed Chisel via brew today morning and I'm running into the following error anytime I use any Chisel commands. Any guesses what I might be doing wrong?

Screen Shot 2019-04-08 at 8 14 12 AM

@idrisr
Copy link
Contributor

idrisr commented Apr 8, 2019 via email

@n0shake
Copy link
Author

n0shake commented Apr 8, 2019

1.8.1

Screen Shot 2019-04-08 at 9 16 28 AM

@ChrisRicca
Copy link

I'm seeing this as well, running lldb directly from the command line (version 8.0.1) and Chisel version 1.8.1 -- I also tested on lldb version 6.something and saw the same issue.

To be clear: I wasn't using Xcode. Just launching lldb from the command line.

@dacaiguoguogmail
Copy link

@ChrisRicca You may need importshlex, and add lex method to command

import shlex
  def lex(self, commandLine):
    return shlex.split(commandLine)

@dacaiguoguogmail
Copy link

Final solution

defaults write com.apple.dt.lldb DefaultPythonVersion 2

From #262

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

4 participants