Skip to content

Creating comments fails after going to another tab and back #195

@jakubbortlik

Description

@jakubbortlik

Bug Description

When creating a new comment, if I switch tabs (e.g., with gt to see some context of what I'm commenting on), then I get back to the tab with the unfinished comment and try to apply it with perform_action, I get the following error: gitlab.nvim: Could not create discussion: POST https://..................../merge_requests/8/discussions: 400 {message: 400 Bad request - Note {:line_code=>["can't be blank", "must be a valid line code"]}}

Reproduction Steps

  1. Check out the feature branch
  2. Open Neovim
  3. Start a review
  4. Run lua require("gitlab").create_comment()
  5. Press gt to go the next tab (repeat until you get to the tab with the comment popup
  6. Optionally: Type some text into the comment
  7. Press the settings.popup.perform_action keybinding

Metadata

Metadata

Assignees

No one assigned

    Labels

    cannot replicateThe maintainer cannot replicate this issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions