Sublime Forum

Dev Build 3116


Great. It doesn’t work then :smiley:

The whole project is indexed, go to definition and go to symbol and go to symbol in project works as expected.

The video is made on a clean 3116 portable, no plugins or any customization are made (other than font size).

It only works for certain languages?



@iamntz hmm, works in a Python file (and finds the PHP method with the same name in a different file!) but apparently not in a PHP file…

1 Like


looks like it is due to the code in in the Default package - starting at line 166 - treating HTML differently, and thus not noticing it is a PHP file, so it is broken for all syntaxes that are embedded in HTML:

    # Limit where we show the hover popup
    if view.score_selector(point, 'text.html'):
        class_ = view.score_selector(point, 'meta.attribute-with-value.class')
        id_ = view.score_selector(point, '')
        if not class_ and not id_:
        if not view.score_selector(point, 'source'):
        if view.score_selector(point, 'comment'):
        # Only show definitions in a string if there is interpolated source
        if view.score_selector(point, 'string') and not view.score_selector(point, 'string source'):


Uuuuuuu, looks so pretty! :smiley:

Anyhow, i found another issue, which i think is not necessary related:

  function foo(argument) {}

foo is not displayed in the Symbol list, although it is a valid symbol, no?



odd, it is displayed for me:



Hmmmm, you’re right. On the portable version it works. On the installed (and heavy customized) it doesn’t.

I’ll start toggling packages and see which one is the nasty one.


JavaScript Symbol List Not Showing Function

As long as CDATA tags are not required by the color scheme parser, you can just not use them since the converter will already handle escaping the necessary characters before writing the converted XML. CDATA tags are only useful when you are directly editing XML by hand, not when you are converting to it anyway.

Just use a | YAML block scalar.

1 Like


@jps Also is it possible to configure the popup to appear only on some scopes ?
I’d like to limit it to function and types.

@ fitchefoll & kingkeith : Thanks, I just copy-pasted the css from the default themes, without checking that the CDATA wasn’t necessary.



The symbol index does not store context information regarding the symbol it found (specifically its scope path), so you can’t reliably do it from within a plugin.

Depending on what exactly you do not want to see, you can prevent that from being indexed altogether through a “tmPreferences” metadata file. See

1 Like


with the hover functionality, because the new hover API receives a point, it is possible to get the scope under the mouse cursor, so a plugin can reliably choose to ignore certain scopes or only whitelist certain scopes. However, looking at the code in, as it stands, there is no way to configure it - you’d have to write your own plugin and disable the built in functionality using the show_definitions setting.



So how does someone who has a theme style the popups?



you can only style popups in a color scheme I think, apart from that the plugins that show the popups are responsible for what colors to use



The popups are styled via the popupCss setting of the color scheme. It is controlled via the color scheme so that they fit nicely with the text buffer, since that is the only place they are displayed.

At some point in the near future I’ll be working on some docs for our subset of HTML and CSS. We do not currently embed a full-featured HTML engine.



What happens if a popup supplies CSS too? Are the styles merged? Or are the theme CSS styles ignored?



This allows fetching the scope of the symbol the mouse is over, but not the scope of the source of the symbol. You could accomplish checking the destination scope via opening the file/point in a hidden output buffer and checking the scope and then excluding it from the list.

I’m sure we’ll be tweaking Show Definitions over time as we get feedback and have time to implement more features. Keep the feedback coming!



I think @FichteFoll had this question in another thread, and I have it too: What happens if more than one plugin is using the new hover listener, and they both try to show a popup?



There are multiple stylesheets: the default, one based on the current view text settings, the rules from the popup, <style> tags in the content sent to show_popup() and then style="" attributes on the HTML. The selector with the greatest specificity will win.

1 Like


I’m on OS X with build 3117 and neither “settings open in new window” or “show_definition on hover” seem to work.

With settings, I either select Sublime Text -> Preferences -> Settings - User or use the keyboard shortcut cmd-, and both seem to just open the user settings file in a new tab.

For “show_definition on hover” nothing happens. I’ve used the Python example posted above with the build in Python syntax definition, but nothing happens on hover. I’ve also tried with several other syntaxes. All of them work with “goto definition” using keyboard shortcuts or mouse.

Could these be package conflicts or am I misunderstanding how these features work?



There is a single popup visible for a view at a time. The last one to run will be the one visible.

There is a method in the API to check if a popup is already shown (in addition to being able to see if the auto complete menu is shown).

1 Like


It sounds like you have an override for Main.sublime-menu. There is no entry for Settings – User any longer, it is just Settings.

You could check the console to see if any errors are listed.