Sublime Forum

Build 3007

#11

I don’t know if this is new since 3007 and if someone already pointed this out but the .deb installation on Ubuntu 12.10 gives an error.
I can install it though but it gives an error saying:

The package doesn't provide a valid Installed-Size control field. See Debian Policy 5.6.20.

So I hope this helps for future .deb packages.

~Juje007

0 Likes

#12

Seeing intermittent CPU spikes on OSX 10.8.2, with the top process reporting as “mds”. Then after the fans kick on for a few seconds, it eases up again.

0 Likes

#13

mds is the spotlight indexing service (for the magnifying glass in the top right of your screen). It should have nothing to do with Sublime Text.

0 Likes

#14

As a followup, I just had several (5) processes named “Sublime Text” which were stalling my system due to CPU usage. Only when I quit Sublime did the system return to normal.

EDIT: and while sublime was open, I saved a PSD file into the same base directory open in the Sublime sidebar. Perhaps it was trying to index a 1.4 meg PSD for goto-definition.

0 Likes

#15

Hi, this bug is still present in build 3007:

https://forum.sublimetext.com/t/bug-cmd-d-repeat-not-working-os-x-2215/6538/1


if have removed the “$” from my “word_separators” setting for PHP programming.

CMD-D now also selects the “$” when used on variables. However, pressing CMD-D again does not select the next instance of that variable anymore. If I select that variable via mouse, CMD-D (repeat) works as expected.

0 Likes

#16

Congrats on getting ST3 into the wild!

A couple issues I’ve run across while updating a couple ST2 plugins:

  • I have an EventListener plugin that tries to keep the status bar updated to show the line ending type and encoding for the active view. It listens for these callbacks: (‘on_modified’, ‘on_load’, ‘on_post_save’). In ST2, that was enough to get the status bar to be updated on first startup, but not in ST3 (I need to modify a buffer before the status bar updates). Is there something else I should be doing, or is this a regression? (code here, if it’s useful: github.com/johnburnett/sublime- … tus_bar.py )

  • In ST2, I have the side bar both turned on and set to show open files. Starting from an empty session, if I add a folder to the side bar, expanded it, and then double click on a file contained in the folder, I open the file I double clicked on. However, when I do the same thing in ST3, I open the file above the file I double click on. It appears this happens because of the new “Previewing files from the sidebar creates a preview tab” feature. The first click adds the to-be-previewed file to the file list at the top of the sidebar, and moves all the files down a line, so the second click then hits a different file, opening that one instead.

0 Likes

#17

One more: sublime.version() seems to return an empty string when a plugin is loading. e.g. throw this in a py file:

import sublime print('version is empty?', sublime.version() == '')
…however, sublime.version() correctly gives me ‘3007’ when run from the console.

0 Likes

#18

One more for the night, promise… settings.get doesn’t seem to return correct values when a plugin is loading. Paste the following into a test py plugin file:

import sublime settings_base = sublime.load_settings('Preferences.sublime-settings') print('color_scheme is:', settings_base.get('color_scheme', 'no color scheme'))

…and regardless of whether you have color_scheme set in your Preferences, this will print “color_scheme is: None”.

0 Likes

#19

@jburnett viewtopic.php?f=2&t=10780&start=40#p42444

0 Likes

#20

It’s tricky. I have an internal bug tracking system, but it’s not suitable for public consumption, as it contains forward looking data that I’m not willing to publish, due to it inevitably being interpreted incorrectly. The alternative is having two separate bug tracking systems, but that has its own issues.

0 Likes

Sublime Text 3 Roadmap
#21

Should be fixed now in 3008.

0 Likes

#22

[quote=“xeno.by”]

+1
I’d second this suggestion. It’s possible to emulate this feature (at least, it worked in ST2), but the implementation is really cumbersome.[/quote]

-1

I’m retracting my +1 here. This functionality is exactly what “Goto Definition…” is. Didn’t even realize this. Works perfectly as-is with keyboard shortcuts. Thanks jps.

0 Likes

#23

I’m well aware of F12.

But sometimes I navigate the project with the mouse (usually when I forget a filename and navigate the Folders view), and Alt+Click instead of F12 is thus niceness (ctrl+click is already taken for multiple cursors, but that’s fine)

0 Likes

#24

alt+click should be already taken as well for removing multiple cursers (that is, dragging them). However, you should be able to create a mouse mapping that runs the goto definition command, e.g. when ctrl-alt-clicking or alt-doubleclicking. See existing “.sublime-mousemap” files for reference.

0 Likes

#25

The problem is not in mousemap. It’s in getting the coordinates of the text that’s been clicked.

0 Likes

#26

SublimeXiki has some example code to do something like this in ST2

0 Likes

#27

[quote=“lunixbochs”]

SublimeXiki has some example code to do something like this in ST2[/quote]

view.sel()[0] isn’t going to work with multiple selections. By “not going work” I mean that I don’t know how to have a mouseclick command that leaves multiple selections untouched and is able to do custom logic based on the clicked location. Here’s what I have to do in sublime-ensime: github.com/sublimescala/sublime … me.py#L190, and still that’s not good enough. If you know a better way, please, tell me.

0 Likes

#28

Two options.

  1. Make the command only work with a single selection. I can’t imagine a case where you’d want to run “goto definition” with multiple cursors - by mouse.

  2. In ST2 you could hook into the “run_” method which just removed the “event” argument from the arguments table. This “event” argument contained details on mouseclicks. Not sure if you can do this in ST3 too.

0 Likes

#29

[quote=“FichteFoll”]Two options.

  1. Make the command only work with a single selection. I can’t imagine a case where you’d want to run “goto definition” with multiple cursors - by mouse.

  2. In ST2 you could hook into the “run_” method which just removed the “event” argument from the arguments table. This “event” argument contained details on mouseclicks. Not sure if you can do this in ST3 too.[/quote]

  3. A valid argument, but why not do better if we can do better?

  4. That’s exactly what I do in the code linked above. Unfortunately, I haven’t found a way to translate screen coords into text coords.

0 Likes

#30

+1
More specifically, could you also include the ability to insert previous elements from the parent scope? For instance, it would be useful if we could prepend the parent class’s name to a method, when transforming its symbol. It should be easy to do if supported, by prepending something like “${meta.class-struct-block.c++ entity.name.type.c++}::” to the method name.

0 Likes