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

AppCode compatibility? #124

Closed
dxclancy opened this issue Nov 1, 2015 · 19 comments
Closed

AppCode compatibility? #124

dxclancy opened this issue Nov 1, 2015 · 19 comments

Comments

@dxclancy
Copy link

dxclancy commented Nov 1, 2015

Is this intended to work/already works in AppCode?

I've installed as per the instructions and have chisel commands (pviews, visualize, etc...) working in Xcode.

Issuing "help" in lldb within AppCode displays the chisel commands. However, I don't see any results in AppCode from issuing commands (pviews, visualize, etc...) . Other non-chisel commands, even 3rd party additions, work.

I generally assume issues like these are my own fault somehow, but it would be reassuring to know if these commands work for others within AppCode.

Thanks!

@kastiglione
Copy link
Contributor

This sounds familiar to #12. I wonder if those underlying issues were resolved, and if so if there's been any regressions.

@dxclancy
Copy link
Author

dxclancy commented Nov 2, 2015

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.

@kastiglione
Copy link
Contributor

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?

@kastiglione
Copy link
Contributor

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.

@kastiglione
Copy link
Contributor

@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.

@dxclancy
Copy link
Author

dxclancy commented May 5, 2016

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?

@kastiglione kastiglione reopened this May 6, 2016
@kastiglione
Copy link
Contributor

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.

@kastiglione
Copy link
Contributor

kastiglione commented May 6, 2016

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.

@dxclancy
Copy link
Author

dxclancy commented May 7, 2016

(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.

@dxclancy
Copy link
Author

dxclancy commented May 7, 2016

btw, just as a datapoint, I also have a quick look command which is a python script and it does run in AppCode.

@kastiglione
Copy link
Contributor

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.

@kastiglione
Copy link
Contributor

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.

@kastiglione
Copy link
Contributor

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.

@dxclancy
Copy link
Author

dxclancy commented May 12, 2016

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) 

@kastiglione
Copy link
Contributor

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.

@dvanoni
Copy link

dvanoni commented Jan 26, 2017

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!

@jay3005
Copy link

jay3005 commented Mar 17, 2017 via email

@NikolaiSa
Copy link

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.

@kastiglione
Copy link
Contributor

https://youtrack.jetbrains.com/issue/OC-9356 has been marked as fixed.

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

5 participants