Home Download Buy Blog Forum Support

No mode indent guides in Ruby?

No mode indent guides in Ruby?

Postby cmer on Sun Jul 01, 2012 12:21 pm

Since a recent update (might be 1.0, not sure), indent guides are gone for Ruby files, but they're still there in Haml, Slim and HTML. I do not have a syntax specific setting for it.

Any idea what might be wrong?
cmer
 
Posts: 8
Joined: Fri Jan 13, 2012 8:38 pm

Re: No mode indent guides in Ruby?

Postby FichteFoll on Sun Jul 01, 2012 1:00 pm

Enter `view.settings().get('draw_indent_guides')` into the console and see what it returns. If it's `False` you probably have a package or similar which disables this settings.
FichteFoll
 
Posts: 402
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Re: No mode indent guides in Ruby?

Postby cmer on Fri Jul 06, 2012 2:21 am

It looks like I found a real bug...

>>> view.settings().get('draw_indent_guides')
True
cmer
 
Posts: 8
Joined: Fri Jan 13, 2012 8:38 pm

Re: No mode indent guides in Ruby?

Postby cmer on Fri Jul 06, 2012 2:23 am

Even weirder, if select my Ruby code, I can see the indent guide, but not when the text is unselected. It's like the indent guides are black on black. When the text is selected, it's black on grey.

I don't have any settings that changes the colors of the indent guides based on the language, however...
cmer
 
Posts: 8
Joined: Fri Jan 13, 2012 8:38 pm

Re: No mode indent guides in Ruby?

Postby FichteFoll on Fri Jul 06, 2012 8:57 am

Try this:
Code: Select all
view.settings().set('draw_indent_guides', False)
view.settings().set('draw_indent_guides', True)


I don't know where the indent guides get their color from but you could test changing your color scheme (for the file).
FichteFoll
 
Posts: 402
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Re: No mode indent guides in Ruby?

Postby cmer on Wed Jul 11, 2012 1:36 pm

For the record, disabling and reenabling guides didn't work. However, I've been able to get guides to work again in the latest Sublime by changing this line:

Code: Select all
"indent_guide_options": ["draw_normal"],

to:
Code: Select all
"indent_guide_options": ["draw_normal", "draw_active"],


in my settings file. Thanks for the help. Yay!
cmer
 
Posts: 8
Joined: Fri Jan 13, 2012 8:38 pm

Re: No mode indent guides in Ruby?

Postby cmer on Wed Jul 11, 2012 3:27 pm

I spoke too soon. I lost my guides again :/
cmer
 
Posts: 8
Joined: Fri Jan 13, 2012 8:38 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 16 guests