WeBuilder 2010 - css auto complete bug?

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
biotech
Posts: 27
Joined: Mon Mar 09, 2009 10:08 pm

WeBuilder 2010 - css auto complete bug?

Post by biotech »

HI there,
The more I work with css the more annoying it gets. Using the latest WeBuilder 2010 10.1.0.119
Here is how I have it setup:
Preferences > Language Options > CSS >
[x] Auto complete CSS rule braces
[x] Multi lines, Opening braces
------ [x] on the same line as selector

Problem: Editor adds 2 extra lines at the bottom of closing bracket.

Code: Select all

1. #my_id {
2.    cursor
3.}
4.
5.
6. #my_other_id {
7.    cursor
8.}
9.
10.
ideally I would like it to NOT add the extra lines.
eg.

Code: Select all

1. #my_id {
2.    cursor
3.}
4. #my_other_id {
5.    cursor
6.}
Thank you!
davenz

Re: WeBuilder 2010 - css auto complete bug?

Post by davenz »

Yes, this happens to me too (and I suspect everyone else with auto-complete CSS rule braces enabled). It is easy to replicate on my machine, simply create or open a CSS file, add any rule and when adding the first curly brace, a second is added with two line breaks underneath it. Certainly not a show-stopper but annoying when trying to keep a CSS file neatly formatted. This is something that if the devs have time I would like to see fixed, though I understand many other more important tasks are on the list before this one.

Dave.
User avatar
EvilBMP
Posts: 120
Joined: Thu Jan 04, 2007 1:57 am
Location: Germany

Re: WeBuilder 2010 - css auto complete bug?

Post by EvilBMP »

+1 from me

That's indeed really annoying, when working on CSS... A fix would be really nice :)

Greets, Evil
x3po
Posts: 139
Joined: Fri May 16, 2008 10:48 am

Re: WeBuilder 2010 - css auto complete bug?

Post by x3po »

+1
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Re: WeBuilder 2010 - css auto complete bug?

Post by notuo »

+1

And also I like to include this: http://forums.blumentals.net/viewtopic. ... 612#p15612
biotech
Posts: 27
Joined: Mon Mar 09, 2009 10:08 pm

Re: WeBuilder 2010 - css auto complete bug?

Post by biotech »

@notuo
Preferences - Text Editor - Auto Indent/tabs is where you control the starting point/cursors...but that doesn't solve the original issue here :)
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Re: WeBuilder 2010 - css auto complete bug?

Post by notuo »

@biotech

Yes, that option controls the cursor starting point, but why you have 2 different set of rules for CSS files: This one and the CSS Format Code one.

What I am stating here is CSS has to obey the rules from the format code part. I understand this is a external procedure, but the rules can apply at the same time.

Also This 2 issues (yours and mine) shows that CSS rules are quite different from other languages like html, php, asp.
biotech
Posts: 27
Joined: Mon Mar 09, 2009 10:08 pm

Re: WeBuilder 2010 - css auto complete bug?

Post by biotech »

@notuo
Ah got it. I am burred in css...it has been ages since I did asp and some php here and there...
Either way, hopefully devs get this tweaked out in next release.
Thanks!
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: WeBuilder 2010 - css auto complete bug?

Post by Karlis »

Indeed two lines is too much. Something is not right. There should be only one empty line by design.
Karlis Blumentals
Blumentals Software
www.blumentals.net
biotech
Posts: 27
Joined: Mon Mar 09, 2009 10:08 pm

Re: WeBuilder 2010 - css auto complete bug?

Post by biotech »

We don't need even a 1.
None is better :)
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: WeBuilder 2010 - css auto complete bug?

Post by MikeyB »

biotech wrote:We don't need even a 1.
None is better :)
It's all down to personal choice, I'd like 1 line between each one.
biotech
Posts: 27
Joined: Mon Mar 09, 2009 10:08 pm

Re: WeBuilder 2010 - css auto complete bug?

Post by biotech »

well...make it an option then, as long as there is one.
User avatar
EvilBMP
Posts: 120
Joined: Thu Jan 04, 2007 1:57 am
Location: Germany

Re: WeBuilder 2010 - css auto complete bug?

Post by EvilBMP »

MikeyB wrote:
biotech wrote:We don't need even a 1.
None is better :)
It's all down to personal choice, I'd like 1 line between each one.
But in all other languages no extra line(s) appear. It should do what it's set to do - autoclose and autoindent of curly brackets. So where is the additional line mentioned? Imho I don't need settings, if they cause actions that are not mentioned.

And for sure, I also like 1 line space between my functions or css class definitions. But when I type an IF declaration, I don't want to have an extra line after the closing bracket by default. So to keep things simple and as they should be, just do the css autocomplete like it is done in all other languages too and everybody is fine!

Greets Evil
Crazy Serb
Posts: 8
Joined: Sun Oct 19, 2008 1:45 pm

Re: WeBuilder 2010 - css auto complete bug?

Post by Crazy Serb »

Yeah, I kinda agree with that last suggestion... as much as I like 1 line separator between CSS declarations, having no spacing would be ideal - then you can add all kinds of spacing as per personal preferences... or not. And everyone would be happy.
biotech
Posts: 27
Joined: Mon Mar 09, 2009 10:08 pm

Re: WeBuilder 2010 - css auto complete bug?

Post by biotech »

I figured only a fair thing to do is follow up.
New version fixes this chang log here.
Thank you guys!
Post Reply