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

Error with misplaced expression escape #5

Closed
rsrock opened this issue Aug 9, 2015 · 1 comment
Closed

Error with misplaced expression escape #5

rsrock opened this issue Aug 9, 2015 · 1 comment

Comments

@rsrock
Copy link

rsrock commented Aug 9, 2015

Appears to be triggered when an Objective-C message in [ ... ] is combined with standard Julia syntax. Here's an example (from Julia Version 0.4.0-dev+6527).

julia> using ObjectiveC

julia> @objc [[[NSHost currentHost] localizedName] UTF8String] |> bytestring
ERROR: unsupported or misplaced expression escape

julia> @objc [[[NSHost currentHost] localizedName] UTF8String]
Ptr{Int8} @0x00007f977aec8ea1

Seems to be the escape called here: https://github.com/one-more-minute/ObjectiveC.jl/blob/c1a38e9ba01ffc645c64eec75413e4432f2d5083/src/syntax.jl#L32. But I don't know how to debug further.

(This is pretty nifty, BTW.)

@rennis250
Copy link
Contributor

Thanks for this. It helped with fixing loading the package and loading frameworks.

Best,
Rob

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

3 participants