facebook / facebook/chisel

visualize in Swift Error

オープン
#222 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
9.2k
フォーク
790
PR マージ指標
30日以内にマージされた PR はありません

説明

xcode 9, Swift4
in oc ok!

```
visualize self.view

error: error: use of undeclared identifier 'self'
Traceback (most recent call last):
File "/usr/local/opt/chisel/libexec/fblldb.py", line 83, in runCommand
command.run(args, options)
File "/usr/local/Cellar/chisel/1.7.1/libexec/commands/FBVisualizationCommands.py", line 178, in run
_visualize(arguments[0])
File "/usr/local/Cellar/chisel/1.7.1/libexec/commands/FBVisualizationCommands.py", line 146, in _visualize
if fb.evaluateBooleanExpression('(unsigned long)CFGetTypeID((CFTypeRef)' + target + ') == (unsigned long)CGImageGetTypeID()'):
TypeError: cannot concatenate 'str' and 'NoneType' objects
```

```
visualize `self.view`

error: error: use of undeclared identifier 'self'
```

```
visualize 0x7faf6b566d50

error: error: use of undeclared identifier 'CGFloat'
error: use of undeclared identifier 'CGRect'
error: missing '[' at start of message send expression
error: expected ']'
to match this '['
Traceback (most recent call last):
File "/usr/local/opt/chisel/libexec/fblldb.py", line 83, in runCommand
command.run(args, options)
File "/usr/local/Cellar/chisel/1.7.1/libexec/commands/FBVisualizationCommands.py", line 178, in run
_visualize(arguments[0])
File "/usr/local/Cellar/chisel/1.7.1/libexec/commands/FBVisualizationCommands.py", line 152, in _visualize
_showLayer('[(id)' + target + ' layer]')
File "/usr/local/Cellar/chisel/1.7.1/libexec/commands/FBVisualizationCommands.py", line 103, in _showLayer
width = float(fb.evaluateExpression('(CGFloat)(' + size + '.width)'))
TypeError: float() argument must be a string or a number
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。