Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread Commenting out a block doesn't work...
Mon, Nov 16 2020 11:33 AMPermanent Link

Alan Questell

Richmond Community College

Trying to comment out a block of code doesn't work.  Start a brace and the current line and next line are converted to comments, but that's all.  Adding a closing brace doesn't do anything.

See pic.



Attachments: Screen Shot 2020-11-16 at 11.32.14 AM.png
Mon, Nov 16 2020 11:34 AMPermanent Link

Alan Questell

Richmond Community College

This is Build 19.




Alan Questell wrote:

Trying to comment out a block of code doesn't work.  Start a brace and the current line and next line are converted to comments, but that's all.  Adding a closing brace doesn't do anything.

See pic.
Tue, Nov 17 2020 12:25 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Alan,

<< Trying to comment out a block of code doesn't work.  Start a brace and the current line and next line are converted to comments, but that's all.  Adding a closing brace doesn't do anything. >>

Does this reliably happen for you if you shut down the IDE and restart it ?  I've seen this a couple of times, but then the problem goes away and I can't reproduce it.

Thanks !

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Nov 17 2020 2:27 PMPermanent Link

Alan Questell

Richmond Community College

Just tried it and it happens consistently every time and in every file I've tried it with.  Comments the current line and the next line each time.


Tim Young [Elevate Software] wrote:

Alan,

<< Trying to comment out a block of code doesn't work.  Start a brace and the current line and next line are converted to comments, but that's all.  Adding a closing brace doesn't do anything. >>

Does this reliably happen for you if you shut down the IDE and restart it ?  I've seen this a couple of times, but then the problem goes away and I can't reproduce it.

Thanks !

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Nov 17 2020 11:55 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

Tim and Alan

<<Does this reliably happen for you if you shut down the IDE and restart it ?  I've seen this a couple of times, but then the problem goes away and I can't reproduce it.>>

This happens all the time. By changing the position of the opening and closing braces or adding other opening and closing braces gives all sorts of different results. There are times that when you remove all the braces you are still left with code marked as comments.

Richard
Wed, Nov 18 2020 11:31 AMPermanent Link

R&D team @ Environment Canada

I've noticed this on occasion with EWB v2, when using the block comments. As far as I could tell, it was only an editor highlighting issue, re-compiling always fixed the highlighting.

I have not seen this in EWB v3 yet. But then again, in v2.. it showed up only once in a while, and I could never figure out exactly when/why. But, as mentioned, re-compile always fixed it, so it became a minor inconvenience at worst.
Wed, Nov 18 2020 2:15 PMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 11/17/2020 2:27 PM, Alan Questell wrote:
> Just tried it and it happens consistently every time and in every file I've tried it with.  Comments the current line and the next line each time.
>

Yes - same here with build 19

Consistent -  every time.

Compiler also affected - it reports error on closing } later on

Raul

NB! I almost never use multi-line comments so did not notice this before
Mon, Nov 23 2020 12:24 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Alan,

<< Trying to comment out a block of code doesn't work.  Start a brace and the current line and next line are converted to comments, but that's all.  Adding a closing brace doesn't do anything. >>

This is now fixed for build 20.

Thanks !

Tim Young
Elevate Software
www.elevatesoft.com
Image