Giter Site home page Giter Site logo

Comments (10)

Kapeli avatar Kapeli commented on July 24, 2024

What are you trying to search for? Can you give a specific example? What are you doing exactly (step by step)?

from dash-plugin-for-xcode.

rcabamo avatar rcabamo commented on July 24, 2024

I select timeZoneWithAbbreviation
Screen Shot 2013-04-18 at 11 25 36 AM

and Dash windows with the text...

Screen Shot 2013-04-18 at 11 25 47 AM

from dash-plugin-for-xcode.

Kapeli avatar Kapeli commented on July 24, 2024

How do you trigger Dash? What key do you press?

from dash-plugin-for-xcode.

rcabamo avatar rcabamo commented on July 24, 2024

Option+Click or three finger in the method name

from dash-plugin-for-xcode.

Kapeli avatar Kapeli commented on July 24, 2024

I tried it and it works for me, so no idea what might go wrong on your end... Can you record a video of it happening? Also, did you try other methods and the same thing happened? Does Xcode highlight (underline) the method before you click it?

from dash-plugin-for-xcode.

rcabamo avatar rcabamo commented on July 24, 2024

Example

http://cl.ly/3b2c013V3z1L

from dash-plugin-for-xcode.

Kapeli avatar Kapeli commented on July 24, 2024

It seems like it's working on the second file you test it in, so something might be confusing Xcode in the first file. Can you think of anything that might be different (e.g. compiler errors or warnings)?

from dash-plugin-for-xcode.

rcabamo avatar rcabamo commented on July 24, 2024

Yes, the first file have some warnings but never had failed me before.

Thanks :)

from dash-plugin-for-xcode.

Kapeli avatar Kapeli commented on July 24, 2024

Great. Please close the issue if it's all working now.

from dash-plugin-for-xcode.

malaba avatar malaba commented on July 24, 2024

OK I think a find a way to reproduce that:

  1. fold all your code (menu: Editor -> Code Folding -> Fold Methods & Functions, or key: option-shift-command-)

  2. next open one of your methods, at the beginning (but not the first fold, let's say the 3rd)

  3. select an Apple method you want Dash to give you documentation and alt-click the normal way.

  4. boum! "random" text in Dash.

  5. if you select too far down the source, it just don't work.

Actually if you calculate the number of line the folding have "saved" you in the vertical scroll, you get where it is getting the search string. Somewhere down below in your source, by "that much" line.

Example: If you select a keyword on line 46, but some methods are folded before this line. This line 46 line up to line, let's say, 90. When you look at line 90, at the same x coord on the line, you find your "random" text. :)

If no methods are folded before your keyword, it works. And if you are so down the source that the keyword is on a line that will be "outside the source" you get my case 5), not working.

Is that helping ?
(You can always search the text Dash receive in your source and find it below the searched word)

Note: I've looked in the code, but this:

NSString *symbolString = [self valueForKeyPath:@"selectedExpression.symbolString"];

seems to be OK. Is it a Xcode bug ? I'm probably too newbie to judge...

from dash-plugin-for-xcode.

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.