Skip to Content
2

ADT 2.68 - Bugs (Templates, Block-selection)

Oct 24, 2016 at 02:46 PM

501

avatar image

Hello,

I updated to ADT 2.68.1 today and have noticed a few bugs

  • Templates with surrounding texts ${line_selection}, ${word_selection}

I have changed the "IF" template to

if ${expr}.
  ${word_selection}${cursor}
endif. " ${expr}

Before 2.68, the template used to work but now it seems to be broken.

The "ENDIF" is repeated twice. I have tried with other templates - DO, WHILE - the results are the same.

  • Block selection mode

When i activate the block selection mode (alt+shift+A), all the text is turned grey.

I am running ADT 2.68.1 on an ABAP 740 SP12 backend.

BR,

Suhas

PS - Sorry for the quality of the images. Had to merge the images together because of the limit of only 2 attachments per post :(

untitled.jpg (140.4 kB)
untitled.png (78.0 kB)
adt | aie
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

8 Answers

avatar image
Former Member Nov 21, 2016 at 10:19 AM
2

Hello,

after some more investigation i found the bug and reprodusable example.

1. option "Allways insert full signature on completion" disable

insert of template work right.

2. Option activate

template by auto complete feature (CTRL + space) not work

Kind regards

Falk


Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hello Falk,

thanks for digging the settings.

When i disable the "Allways insert full signature on completion" the templates work as expected :)

This setting is anyway not documented, i'm not sure what's the effect of disabling it.

BR,

Suhas

0
Former Member
Suhas Saha

Hi Suhas,

when active it switch the "insert full signature" feature of autocomplete.

exp.

Insert a methode mit autocomplete feature, only methode name will insert. To insert the full methode (name and signuature) you have to press SHIFT + ENTER.

With this setting activ the autocomplete feature will always insert the full methode. If you only want to insert the name you have to press SHIFT + ENTER.

Kind regards

Falk

1

Hi Falk,

Thanks for the clarification. I always wondered why my colleagues have to hit <Shift+Enter> to get the method signature ;)

BR,

Suhas

0
Christian Guenter Oct 24, 2016 at 03:30 PM
1

Hi Suhas,

the templates work for me but block selection is erroneous too.

Btw today version 2.68.2 was released, maybe that fixed the template thing.

Regards Christian

Share
10 |10000 characters needed characters left characters exceeded
Christian Guenter Oct 25, 2016 at 08:44 AM
1

What's interesting block selection mode with the vrapper plugin still works...


Share
10 |10000 characters needed characters left characters exceeded
Raghu Govindarajan Oct 25, 2016 at 09:29 PM
1

Suhas, I just tried the block selection mode in 2.68.2 and it appears to work correctly. I am on a Mac though, so there may be a difference.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

I have updated the ADT to 2.68.2, but still the block selection & templates seem to be broken :(

What is the ABAP backend version you are using?

0

740 SP12 with Eclipse Neon.1a - Release 4.6.1.

I have a feeling this may be a frontend only issue.

0
Christian Guenter Oct 28, 2016 at 04:59 PM
1

Just got the information from SAP support that the syntax highlighting in block selection mode was disabled due to performance reasons. They are working on reactivating it.

Share
10 |10000 characters needed characters left characters exceeded
Suhas Saha
Oct 24, 2016 at 07:56 PM
0

Hello Christian,

Did you try with the same template as mine?

if${expr}.${word_selection}${cursor}endif." ${expr}

I have changed the standard SAP delivered template for IF-block. Btw, which version of ADT are you using & with which ABAP backend?

Best, Suhas

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Yes I tried your template. I use ADT 2.68.2 with backends ranging from 7.31 SP05 to 7.50 SP04.

1
Suhas Saha
Oct 25, 2016 at 07:56 AM
0

Thanks Christian. I'll have to wait for ADT 2.68.2 then.

Currently i cannot use the ADT update site (due to some proxy issues), have to download from SAP Support website. :(

The version 2.68.2 is not yet updated there, duhhh

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Suhas,

2.68.2 doens't contain the fixes you are waiting for. We analyze the Block-Selection problem, but we can't reproduce the issue with the template (neither in Eclipse Neon nor in Mars).

If it's still reproducable on your side, please provide us more context about the source you have inserted the template into. In ideal case you can post the complete source of a development object you can reproduce the issue with and the exact selection before you triggered the insertion of the template.

Regards, Felix

2
Former Member
Felix Otto

Hi Felix,

hope you see the reproducable example for the template bug (Version 2.68.5 not contain a correction)

If not it depence of the configuration

com.sap.adt.tools.abapsource.ui.COMPLETION_INSERTS_SIGNATURE=true

If activ it produce the bug if template insert by code completion feature (CTRL + SPACE)

Kind regards

Falk

0
Suhas Saha
Nov 16, 2016 at 03:17 PM
0

Hello all,

an update. With 2.68.3 the block selection seems to be working.

@Felix: I'll post the code for your analysis as soon as a get sometime, have been busy of late. Sorry :(

BR,

Suhas

Share
10 |10000 characters needed characters left characters exceeded