Home Download Buy Blog Forum Support

Dev Build 2172

Re: Dev Build 2172

Postby sublimator on Tue Jan 31, 2012 12:31 pm

Yay! Python works again 2
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Dev Build 2172

Postby sublimator on Tue Jan 31, 2012 1:03 pm

Cheerleading too soon

Code: Select all
if 1:
    if 1:
        if current < 8:
            current = 8
        s.set("font_size", current)

        sublime.save_settings("Base File.sublime-settings")

class ResetFontSizeCommand(sublime_plugin.ApplicationCommand):
    def run(self):
        s = sublime.load_settings("Base File.sublime-settings")


Try putting the cursor in front of `class` and hitting enter
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Dev Build 2172

Postby farmerpaul on Tue Jan 31, 2012 6:13 pm

C0D312 wrote:@farmerpaul: check out the DocBlockr plugin (https://github.com/spadgos/sublime-jsdocs)

Thanks @C0D312! Amazing.
farmerpaul
 
Posts: 18
Joined: Mon Jul 25, 2011 6:17 pm

Re: Dev Build 2172

Postby rchl on Tue Jan 31, 2012 10:00 pm

Regression in c/c++ indentation.

Pressing enter here:

Code: Select all
/* foo
   bar */
if (1)|


indents according to the second line of the comment which is now closed.

(I hope Jon has a good testing coverage for this because it seems it's almost impossible to fix something without regressing other stuff. :))
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm

Re: Dev Build 2172

Postby rchl on Tue Jan 31, 2012 10:15 pm

Actually what I've reported was not entirely precise.
It needs screenshots to show the problem because part of the problem is mixing tabs and spaces.

This is how example code looks like:
1.original.png
Original code
1.original.png (27.1 KiB) Viewed 1008 times

And this is what happens after pressing enter after respective lines:
2.enter-after-first-if.png
Enter after first if
2.enter-after-first-if.png (26.7 KiB) Viewed 1007 times

3.enter-after-second-if.png
Enter after second if
3.enter-after-second-if.png (26.57 KiB) Viewed 1007 times
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm

Re: Dev Build 2172

Postby rchl on Tue Jan 31, 2012 10:15 pm

4.enter-after-return.png
Enter after return statement
4.enter-after-return.png (26.56 KiB) Viewed 1016 times
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm

Re: Dev Build 2172

Postby spadgos on Wed Feb 01, 2012 11:56 am

farmerpaul wrote:
C0D312 wrote:@farmerpaul: check out the DocBlockr plugin (https://github.com/spadgos/sublime-jsdocs)

Thanks @C0D312! Amazing.

Glad you like it. :)

I'm also seeing some pretty annoying behaviour with auto indentation:

Code: Select all
var foo,
    bar,
    baz;
|

Press enter:
Code: Select all
var foo,
    bar,
    baz;

    |

What was desired:

Code: Select all
var foo,
    bar,
    baz;

|
spadgos
 
Posts: 121
Joined: Thu Oct 06, 2011 12:49 am

Re: Dev Build 2172

Postby jacobwegner on Wed Feb 01, 2012 1:38 pm

spadgos wrote:I'm also seeing some pretty annoying behaviour with auto indentation:


I second this; I know I can use the key commands for indent/unindent rather than delete to accomplish this, but I'd rather stick to my muscle memory with delete and what I'm used to in every other text editor.
jacobwegner
 
Posts: 2
Joined: Sat Aug 20, 2011 3:38 pm

Re: Dev Build 2172

Postby Zwammer on Wed Feb 01, 2012 3:03 pm

There's a small nuisance in ver. 2173 of ST2:

Image

The lineheight seem a bit off here and there in my CSS. Is it just me or is anyone else also experiencing this?
Zwammer
 
Posts: 2
Joined: Mon Aug 30, 2010 1:49 pm

Re: Dev Build 2172

Postby danro on Wed Feb 01, 2012 5:05 pm

2173 has a problem with JavaScript and auto-indent + return in brackets:

EDIT: This issue is specific to 2173. When I roll back to 2172 it works as expected.

Code: Select all
function methodName () {
  var obj = {|}
}

// pressing enter then gives us this:

function methodName () {
  var obj = {
    |
}
}
danro
 
Posts: 19
Joined: Thu May 19, 2011 5:39 am
Location: Sacramento, CA

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 19 guests