Giter Site home page Giter Site logo

AppCode compatibility? about chisel HOT 19 CLOSED

facebook avatar facebook commented on April 18, 2024
AppCode compatibility?

from chisel.

Comments (19)

dxclancy avatar dxclancy commented on April 18, 2024 1

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.

kastiglione avatar kastiglione commented on April 18, 2024

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

from chisel.

dxclancy avatar dxclancy commented on April 18, 2024

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.

kastiglione avatar kastiglione commented on April 18, 2024

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.

kastiglione avatar kastiglione commented on April 18, 2024

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.

kastiglione avatar kastiglione commented on April 18, 2024

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

dxclancy avatar dxclancy commented on April 18, 2024

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.

kastiglione avatar kastiglione commented on April 18, 2024

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.

kastiglione avatar kastiglione commented on April 18, 2024

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.

dxclancy avatar dxclancy commented on April 18, 2024

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

kastiglione avatar kastiglione commented on April 18, 2024

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.

kastiglione avatar kastiglione commented on April 18, 2024

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.

kastiglione avatar kastiglione commented on April 18, 2024

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.

dxclancy avatar dxclancy commented on April 18, 2024

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.

kastiglione avatar kastiglione commented on April 18, 2024

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.

dvanoni avatar dvanoni commented on April 18, 2024

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.

jay3005 avatar jay3005 commented on April 18, 2024

from chisel.

NikolaiSa avatar NikolaiSa commented on April 18, 2024

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.

kastiglione avatar kastiglione commented on April 18, 2024

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

from chisel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.