fidley / ABAPQuickFix

ABAP Quick Fix
https://abapblog.com
MIT License
42 stars 9 forks source link

align Types does not work with CONSTANTS 😢 #45

Closed Ennowulff closed 1 year ago

Ennowulff commented 1 year ago

Unfortunately the quick "Align TYPEs" fix does not work with CONSTANTS.

fidley commented 1 year ago

Can you show example? For me it works.

align types

Ennowulff commented 1 year ago
INTERFACE zif_test_2
  PUBLIC .

  CONSTANTS demo TYPE c LENGTH 1 VALUE 'D'.
  CONSTANTS verfifications TYPE c LENGTH 1 VALUE 'V'.
  CONSTANTS savemode TYPE c LENGTH 1 VALUE 'S'.

ENDINTERFACE.

image

Ennowulff commented 1 year ago

PS: check spelling "Mehtods"! 😃

fidley commented 1 year ago

I think I know why. Put for example an DATA statement before constants. Then it should work.

I might have problem in the code for the first statements and last statements. I'll look into it in the evening

Ennowulff commented 1 year ago

I think I know why. Put for example an DATA statement before constants. Then it should work. confirmed.

don't bother. It's not really urgent... 😄

fidley commented 1 year ago

it will not let me sleep ;D

fidley commented 1 year ago

I've corrected this yesterday. I'll publish soon in on beta update site

Ennowulff commented 1 year ago

thanks, mate!

fidley commented 1 year ago

You can update from beta site and check. I've added also help to the plugin.

fidley commented 1 year ago

solved with #47