facebook / facebook/chisel

visualize is not woking on Mac App

Abierto
#294 0 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
9.2k
Forks
790
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi, I am trying latest commit of chisel in a Mac App, if I visualize a controller, it will fail with this error:
```
error: error: Execution was interrupted, reason: Attempted to dereference an invalid ObjC Object or send it an unrecognized selector.
The process has been returned to the state before expression evaluation.
Traceback (most recent call last):
File "/Users/taozhuang/Documents/chisel/fblldb.py", line 99, in runCommand
command.run(args, options)
File "/Users/taozhuang/Documents/chisel/commands/FBVisualizationCommands.py", line 247, in run
_visualize(arguments[0])
File "/Users/taozhuang/Documents/chisel/commands/FBVisualizationCommands.py", line 201, in _visualize
if objectHelpers.isKindOfClass(target, "UIImage"):
File "/Users/taozhuang/Documents/chisel/fbchisellldbobjecthelpers.py", line 13, in isKindOfClass
return fb.evaluateBooleanExpression(isKindOfClassStr.format(className))
File "/Users/taozhuang/Documents/chisel/fbchisellldbbase.py", line 145, in evaluateBooleanExpression
int(evaluateIntegerExpression("(BOOL)(" + expression + ")", printErrors)) != 0
File "/Users/taozhuang/Documents/chisel/fbchisellldbbase.py", line 133, in evaluateIntegerExpression
output = evaluateExpression("(int)(" + expression + ")", printErrors).replace(
AttributeError: 'NoneType' object has no attribute 'replace'
```

If I visualize [controller view], it will fail with this error:
```
error: error: :1:21: no known method '-view'; cast the message send to the method's return type
[responderChainItem view]
~~~~~~~~~~~~~~~~~~~~^~~~~
Traceback (most recent call last):
File "/Users/taozhuang/Documents/chisel/fblldb.py", line 99, in runCommand
command.run(args, options)
File "/Users/taozhuang/Documents/chisel/commands/FBVisualizationCommands.py", line 247, in run
_visualize(arguments[0])
File "/Users/taozhuang/Documents/chisel/commands/FBVisualizationCommands.py", line 189, in _visualize
"(unsigned long)CFGetTypeID((CFTypeRef)"
TypeError: can only concatenate str (not "NoneType") to str
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.