Skip to content

Broken coding after cleanup, maybe because of GitHub copilot plugin (?) #465

@brickup-de

Description

@brickup-de

Hi there, first: Thanks for this amazing plugin, I really love it!

Lately, I got some random behaviours in the output of this plugin. It sometimes created syntax errors or completely mixed up the code on my machine. So I tried to reproduce this behaviour in any meaningful repeabable way, but it occurs quite randomly.

See below the results I got on the dummy class ZCL_ABAP_CLEANER_BUG.abap.txt while triggering cleanup with preview (Ctrl+Shift+4) in different ways and combinations. Unsaved changes and moving the TYPES declaration around seem to help getting these errors.

Image
more Screenshots of resulting coding

Image Image Image

I think it is some weird interaction between:

  • the Github Copilot plugin looking for auto-completions
  • unsaved or quite new changes in the coding and
  • the delay that comes from opening the ABAP cleaner in preview mode and confirming the proposed changes.

Because while trying to find the reason for this, I got some odd error messages implying that something really strange seems to be going on in the background. Below are some error messages I got. The coding wasn't broken after these. I didn't see any changes happening in the code editor while the ABAP cleaner preview was open.

Screenshots and plaintexts of error popups

Save Failed: Anweisung LASS unerwartet Reason: Scanning of the sources failed, see result of syntax check
line 36: Failed referential integrity test on command starting at source line 36: Opening 'CLASS' not closed. Please do not process incomplete code blocks.
Image
End position lies outside document range
Image

From next week on, I'll try deactivating the Copilot plugin and see if this helps. But I wanted to create this issue first, in case someone else has the same behaviour. In case Copilot is innocent, below are the other details of my installation (no updates pending as of today).

Eclipse Installation Details

Name Version Id Provider
  ABAP Business Object Tools (Developer Edition) 1.200.0 com.sap.adt.tools.bopf.devedition.feature.group SAP
  ABAP cleaner 1.22.0 com.sap.adt.abapcleaner.feature.feature.group null
  ABAP Core Development Tools (Developer Edition) 3.56.0 com.sap.adt.core.devedition.feature.group SAP
  ABAP Development Tools for SAP HANA (Developer Edition) 3.56.0 com.sap.adt.tools.hana.devedition.feature.group SAP
  ABAP Development Tools for Web Dynpro (Developer Edition) 1.216.0 com.sap.adt.wda.core.devedition.feature.group SAP
  ABAP Enterprise Services and Integration Development Tools (Developer Edition) 1.216.0 com.sap.adt.pitools.tlf.devedition.feature.group SAP
  ABAP Favorites 1.0.66.202507311207 ABAP_Favorites_Feature_Project.feature.group ABAPBlog.com
  ABAP Quick Fix 1.1.8.202510201128 com.abapblog.adt.quickfix.feature.feature.group ABAPblog.com
  ABAP QuickFix S4C 1.4.4.202510201751 de.leuc.adt.quickfix.feature.group leuc.de
  ADT Extensions - Commands 1.0.8.202510221253 com.abapblog.adt.extension.feature.feature.group ABAPBlog.com
  AutoCloseDebugPerspective 1.0.4.201901121736 org.eclipseplugins.autoclosedebugperspective.feature.group null
  Eclipse Platform 4.38.0.v20251201-0920 org.eclipse.platform.feature.group Eclipse.org
  Eclipse Platform 4.38.0.I20251201-0920 org.eclipse.platform.ide Eclipse.org
  Eclipse RCP 4.38.0.v20251201-0920 org.eclipse.rcp.feature.group Eclipse.org
  GitHub Copilot 0.14.0.202512112209 com.microsoft.copilot.eclipse.feature.feature.group GitHub Copilot
  JustJ Adoptium OpenJDK Hotspot JRE Complete 21.0.7.v20250502-0916 org.eclipse.justj.openjdk.hotspot.jre.full.feature.group Eclipse JustJ
  Marketplace Client 1.13.0.v20250816-1241 org.eclipse.epp.mpc.feature.group Eclipse Marketplace Client
  Oomph Setup 1.38.0.v20251223-0956 org.eclipse.oomph.setup.feature.group Eclipse Oomph Project
  Terminal Feature 1.0.100.v20251015-0620 org.eclipse.terminal.feature.feature.group Eclipse.org

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions