bug re closing brackets - WeBuilder 2014 version 12 (12.0.0.

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;
Post Reply
ted
Posts: 9
Joined: Sun Feb 10, 2013 4:08 pm

bug re closing brackets - WeBuilder 2014 version 12 (12.0.0.

Post by ted »

Using WeBuilder 2014 version 12 (12.0.0.147)

If I have code such as the following

<?php

$this->Recipe->find('all', array('conditions' => array('id' => $this->Recipe->id));

?>

You should see that I am missing one closing bracket at the end. WeBuilder correctly highlights the missing bracket.

If however I place my cursor between the final d and the first of the two final brackets and then try to enter the missing closing bracket, WeBuilder will not allow me to. It instead takes me one character right. If I repeat this attempted insert the same thing happens. Only when I have the cursor between the final bracket and semi-colon, will WeBuilder allow me to enter another bracket. WeBuilder should not restrict where this bracket is entered.

Dave
User avatar
Nikolajs
Blumentals Software Developer
Posts: 108
Joined: Mon Sep 19, 2011 8:28 am

Re: bug re closing brackets - WeBuilder 2014 version 12 (12.

Post by Nikolajs »

I think that bracket handling is by design. It happens because “Auto close round brackets” is turned on. Turn off that option in order to manage brackets yourself.
Nikolay Dutchuk
Blumentals Software
ted
Posts: 9
Joined: Sun Feb 10, 2013 4:08 pm

Re: bug re closing brackets - WeBuilder 2014 version 12 (12.

Post by ted »

I think that's the easy way out?

If I turn it off, then I lose the benefits of auto closing brackets on code that I'm writing?

Whilst auto close may be causing this issue, it suggests that it is broken as the feature should auto insert a closing bracket for a newly entered opening bracket. I have not entered a new opening bracket, therefore this functionality should not be called. Equally it does not insert anything either. This functionality therefore can't be by design.

No other editors I've used which have auto closing brackets have this problem, so it must be the implementation.

Dave
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: bug re closing brackets - WeBuilder 2014 version 12 (12.

Post by Aivars »

This is by design. It's not a bug. It allows typing Func((2 + 3) * 4) with bracket auto complete on and getting what was typed instead of Func((2 + 3) * 4))).
Blumentals Software Programmer
ted
Posts: 9
Joined: Sun Feb 10, 2013 4:08 pm

Re: bug re closing brackets - WeBuilder 2014 version 12 (12.

Post by ted »

I understand the example you've given, but it cannot be right that the editor stops a user from entering characters which is what it is doing.
RaBe
Posts: 19
Joined: Wed Feb 06, 2013 5:27 pm

Re: bug re closing brackets - WeBuilder 2014 version 12 (12.

Post by RaBe »

Perhaps you can add the condition: "If there is an open bracket in a line, do allow ) to be inserted before any other )" - this would not "break" your example "Func((2 + 3) * 4)" but would allow to insert missing brackets like in "if ($one || ($two && $three)"
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: bug re closing brackets - WeBuilder 2014 version 12 (12.

Post by Aivars »

We'll think about it, but for now either disable the bracket autocomplete or simply type the closing bracket _after_ the other closing bracket(s).
Blumentals Software Programmer
ted
Posts: 9
Joined: Sun Feb 10, 2013 4:08 pm

Re: bug re closing brackets - WeBuilder 2014 version 12 (12.

Post by ted »

With the greatest of respect, I shouldn't have to disable a feature because it doesn't work, or while you think about it.

I am new customer of yours having purchased the software about 2 weeks ago, and would like to think that if I report a bug it will at some stage be fixed. I accept that this is not a high priority bug, and am not expecting it to be fixed overnight. Of course the irony here is that most/all users of your software are programmers, and offer similar support in turn to their own customers i.e. a hopefully a good level of customer service.

To return the issue, an editor should not prevent the user from entering characters and RaBe's solution may be the answer. From my own point of view, the auto complete function should not even be called, and therefore interfere with input unless an opening bracket has been typed?

Thanks

Dave
Post Reply