Comments (19)
btw, just as a datapoint, I also have a quick look command which is a python script and it does run in AppCode.
from chisel.
This sounds familiar to #12. I wonder if those underlying issues were resolved, and if so if there's been any regressions.
from chisel.
I did see #12 before commenting but it wasn't clear to me whether #12 only effects printouts? For instance, does not launch theUIImage into preview for me either.
from chisel.
Good point, sorry I was too quick to answer. In the past I used AppCode a bit, but not lately. Have you filed a ticket with JetBrains?
from chisel.
To answer your first sentence, Chisel isn't intended to be Xcode only, and so should work in AppCode. However I'm not aware of any contributors who use AppCode, so I'd have to unfortunately call AppCode unsupported.
from chisel.
@dxclancy I'm going to close this because I don't use AppCode and don't have the time to investigate this. I am curious to hear more if you have any updates. Hopefully any issues can be resolved by the folks at JetBrains.
from chisel.
Here is the JetBrains AppCode issue
My experience is the same with AppCode 2016.1 (latest). The chisel commands are listed when i type help, but executing a command ("pviews") does nothing.
It is not limited to printing. "visualize" also does nothing. I don't think the commands are getting to the chisel code?
from chisel.
Thanks for the update @dxclancy. I'll follow up with something to see whether it's running or not, or if it's just an output issue.
from chisel.
It is not limited to printing. "visualize" also does nothing. I don't think the commands are getting to the chisel code?
@dxclancy You can turn on lldb logging to observe what actions are, or are not, taking place when you run chisel commands. The base command is log enable lldb <category>
, and some categories that are applicable here are api
, commands
, and script
. So for example try:
(lldb) log enable lldb api commands script
then run some chisel commands, like visualize
. This should hopefully give a better idea of what is happening, or possibly what is not happening if the are empty or minimal.
from chisel.
(lldb) log enable lldb api commands script
has no visual effect in AppCode, whereas when I do it in Xcode I get a spew of logging.
from chisel.
has no visual effect in AppCode
This sounds like a bug. I wonder if the lack of output for the logs has anything to do with the lack of output for chisel commands.
from chisel.
just as a datapoint, I also have a quick look command which is a python script and it does run in AppCode
Thanks! I wonder if chisel should stop using print
directly. Chisel's commands call print
liberally all over the place, and none of the commands use the result
argument supplied by lldb when invoking the python entry point. However, this doesn't really explain why visualize
doesn't work.
from chisel.
If anyone wants to help debug this, here's a gist that has two simple commands stdio_print
and result_print
: https://gist.github.com/kastiglione/c5a27e39f1dda34cce4f17c6545b59c6
If both commands successfully print inside AppCode, I can probably come up with another test or two.
from chisel.
Looks like stdio_print doesn't work in AppCode.
(lldb) stdio_print
(lldb) result_print
Printing via result
Actually, I just tried in Xcode and got the same result:
(lldb) result_print
Printing via result
(lldb) stdio_print
(lldb)
from chisel.
Which version of Xcode? In Xcode 7.3.0, stdio in python scripts was broken, but it's fixed in 7.3.1.
In any case, it seems we know at least one major reason why chisel commands don't work in AppCode. And it's fixable on our end even if JetBrains can't prioritize the problem. Maybe they just need to be let known exactly what the issue is, maybe it's a simple fix.
from chisel.
Just wanted to see if any progress had been made on this issue. I'm still encountering it on the following setup:
- Chisel 1.5.0
- AppCode 2016.3.1
It appears to be working in Xcode 8.2.1
Thanks!
from chisel.
from chisel.
fwiw, it looks like the visualize command does save the image into the tmp/xcode_debug_images folder when used in AppCode, so at least there's a way to access it. Not as elegant but at least possible.
from chisel.
https://youtrack.jetbrains.com/issue/OC-9356 has been marked as fixed.
from chisel.
Related Issues (20)
- pviews AttributeError: 'NoneType' object has no attribute 'split' ? HOT 1
- pjson not show Chinese HOT 8
- chisel load failed HOT 8
- install fail HOT 1
- error
- 'pvc' is not a valid command.
- error: (lldb) command script import /usr/local/opt/chisel/libexec/fblldb.py HOT 4
- error: module importing failed: invalid pathname HOT 11
- taplog error in ios14 HOT 5
- bmessage cause a error message
- visualize is not woking on Mac App
- Xcode 12.3 NameError: name 'lldb' is not defined HOT 1
- Not work in xcode 13
- CG_CONTEXT_SHOW_BACKTRACE required?
- [Xcode 13] LLDB RPC server has crashed HOT 1
- Failed applying an ad-hoc signature to xxx HOT 1
- do you want to support python3??
- There is no fbobjclldb.py module which is mentioned in the README.md HOT 1
- it's very slow when using visualize command
- IOS development
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chisel.