-
Notifications
You must be signed in to change notification settings - Fork 803
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
Issues running in Swift #80
Comments
I'm seeing something similar in my Swift project: (lldb) caflush |
Thanks for the reports! I will try to take a look at this soon. |
Hi, I'm also seeing this error: |
@yxztj I just tried running |
@donshefer I just tried |
@nickkjordan I am seeing different errors when I run |
This is bad, but I can't quite remember at this point. I think it was on a layer though, because I remember doing some animations around then |
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed. |
Seems like the problem only occurs in Swift projects in which lldb expects swift commands. Basically, in the python scripts commands sent to the debugger using lldb.debugger.HandleCommand are all in objc. They won't work when lldb debugger is in swift mode. |
Same issue and output as @ignat980 above. Is there an easier fix than explicitly updating all the commands sent to the debugger to use |
|
@ultramiraculous, from what I saw in #121 you expected this ticket to be resolved as wel. (lldb) mask self.view
error: error: use of undeclared identifier 'self'
error: 1 errors parsing expression
error: error: use of undeclared identifier 'None'
error: 1 errors parsing expression
error: <EXPR>:1:13: error: expected ',' separator
(void)[None removeFromSuperview]
^
,
error: <EXPR>:1:22: error: expected ',' separator
(void)[CATransaction flush]
^
,
error: error: use of undeclared identifier 'None'
error: 1 errors parsing expression
Traceback (most recent call last):
File "/...path-to-chisel.../chisel/fblldb.py", line 79, in runCommand
command.run(args, options)
File "/...path-to-chisel.../chisel/commands/FBDisplayCommands.py", line 93, in run
viewHelpers.maskView(viewOrLayer, options.color, options.alpha)
File "/...path-to-chisel.../chisel/fblldbviewhelpers.py", line 24, in maskView
origin = convertPoint(0, 0, viewOrLayer, window)
File "/...path-to-chisel.../chisel/fblldbviewhelpers.py", line 46, in convertPoint
fromLayer = convertToLayer(fromViewOrLayer)
File "/...path-to-chisel.../chisel/fblldbviewhelpers.py", line 51, in convertToLayer
if fb.evaluateBooleanExpression('[(id)%s isKindOfClass:(Class)[CALayer class]]' % viewOrLayer):
File "/...path-to-chisel.../chisel/fblldbbase.py", line 69, in evaluateBooleanExpression
return (int(evaluateIntegerExpression('(BOOL)(' + expression + ')', printErrors)) != 0)
File "/...path-to-chisel.../chisel/fblldbbase.py", line 61, in evaluateIntegerExpression
output = evaluateExpression('(int)(' + expression + ')', printErrors).replace('\'', '')
AttributeError: 'NoneType' object has no attribute 'replace' |
I'm seeing the same issues. Executing |
Using show and hide work when using clone from main branch. Try cloning the latest version @tracicot |
I think this be closed now. Swift interop has been improved, and we can create new issues for specific issues as they arise. |
I am getting errors because my expressions are running in Swift despite the
evaluateExpressionValueInFrameLanguage
functionTypical error statement:
error: expected ',' separator
(int)((BOOL)((unsigned long)CFGetTypeID((CFTypeRef)(shape)) == (unsigned long)CGImageGetTypeID()))
Is there something I'm missing here? I'm just calling
visualize <value>
The text was updated successfully, but these errors were encountered: