Gitea shows wrong code on lines with comments on Conversation tab #6643

Closed
opened 2025-11-02 07:02:16 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @lakostin on GitHub (Jan 6, 2021).

  • Gitea version (or commit ref):
    1.14.0+dev-514-gd2ee1221c
  • Git version:
    2.26.2
  • Operating system:
    docker Alpine Linux v3.12
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

I added comment to line. On Conversation tab gitea shows comment with other code, line numbers are correct though.
...

Screenshots

Conversation tab:
Screenshot from 2021-01-06 13-39-01
Files changed tab:
Screenshot from 2021-01-06 13-38-39

Originally created by @lakostin on GitHub (Jan 6, 2021). - Gitea version (or commit ref): 1.14.0+dev-514-gd2ee1221c - Git version: 2.26.2 - Operating system: docker Alpine Linux v3.12 - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - Log gist: ## Description I added comment to line. On Conversation tab gitea shows comment with other code, line numbers are correct though. ... ## Screenshots Conversation tab: ![Screenshot from 2021-01-06 13-39-01](https://user-images.githubusercontent.com/29179059/103759423-c17a6200-5024-11eb-93f9-bb15239b5d35.png) Files changed tab: ![Screenshot from 2021-01-06 13-38-39](https://user-images.githubusercontent.com/29179059/103759429-c5a67f80-5024-11eb-9356-c8ab4033380c.png)
GiteaMirror added the issue/needs-feedback label 2025-11-02 07:02:16 -06:00
Author
Owner

@jpraet commented on GitHub (Jan 6, 2021):

Probably a duplicate of #13683 (which is already fixed.. but it doesn't fix the location for existing comments).

Do you know what version you were on 6 days ago when you made the comment?
Could you delete the comment and add it again to see if the problem persists?

@jpraet commented on GitHub (Jan 6, 2021): Probably a duplicate of #13683 (which is already fixed.. but it doesn't fix the location for existing comments). Do you know what version you were on 6 days ago when you made the comment? Could you delete the comment and add it again to see if the problem persists?
Author
Owner

@lakostin commented on GitHub (Jan 12, 2021):

Updated gitea, deleted comment and added a new one - the problem is gone. Thank you.

@lakostin commented on GitHub (Jan 12, 2021): Updated gitea, deleted comment and added a new one - the problem is gone. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6643