Skip to content

Trailing spaces from commenter causing builds to fail #56

@raja-s

Description

@raja-s

The Ada commenter currently returns the comment prefix -- followed by two spaces to follow GNAT coding style. The IDE seems to comment empty lines as well, which results in trailing spaces in those lines causing builds to fail.
There does not seem to be a way to implement "dynamic" commenting in the IntelliJ platform, for example a commenter that takes as an argument the line to be commented and returns a prefix to comment that line with, so we need to find another way to solve this. The simplest solution would probably be some hack involving a change listener that figures out which lines were commented and manually strips them from trailing spaces immediately after the comment action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions