Skip to content

Godot addon: Line numbers disappear after linting finds results #169

@jonathan-robertson

Description

@jonathan-robertson

Details

  • Given a script file with linting violations (MAX-LINE-LENGTH in my case)
  • When linting completes (via Format script menu, Command Palette, or on-save)
  • Then line numbers in the left gutter of the script file disappear

Note

before linting
Image
after linting
Image

More Context

  • GDQuest/GDScript-formatter is the only plugin I have installed in this project.
  • installed under res://addons/GDQuest_GDScript_formatter
  • version installed: 0.14.0 (according to AssetLib posting)
    • I believe I'm using the latest available edition of GDScript-formatter since I installed this plugin just today
      • Image
    • Actual plugin version reported in the Project Settings entry still shows 0.1.0 due to plugin.cfg reflecting that text
  • also, adjustments to linting settings I make, such as Lint Line Length and Lint Ignored Rules seem to be ignored, but checking the box Lint On Save does work
    • I'm not sure if that helps to provide more context on whether I have a bad version/install or not

Steps to reproduce

  1. start with a gdscript file which has some long lines in it (or presumably.. any linter error but I haven't tested others)
    • Image
  2. run Lint GDSCript from the Command Palette (or just save the file if you have linting triggered on save)
    • Image
  3. cry just a little as your beautiful line numbers vanish
    • Image

Temporary Workaround

Simply close and reopen your script file.

Unfortunately, switching script 'tabs' is not enough to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions