GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Change instance variable numbers for line numbers instead of counter · Issue #132 · liquid-java/liquidjava

Change instance variable numbers for line numbers instead of counter #132

New issue
Copy link
New issue
Copy link
Open
#271
Open
Change instance variable numbers for line numbers instead of counter#132
#271
Copy link
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers

Description

@CatarinaGamboa
CatarinaGamboa
opened on Dec 10, 2025
Issue body actions

Whenever we are creating a new instance of a variable or a fresh one, we keep the variable name and concatenate it with an incremental counter (e.g., a0, x1, y2).
A simple change would be to use the line number where this value was introduced, instead of the counter.
Example:

Image

The error could be #x_25 == #x_24 - 10 where 24 and 25 are the lines where these were introduced.
A question could be, if multiple vars are changed could we still use the same tactic? Lets try and make some tests to see.

Activity

  1. CatarinaGamboa
    added
    enhancementNew feature or requestNew feature or request
    good first issueGood for newcomersGood for newcomers
    on Dec 10, 2025
  2. alcides commented on Dec 10, 2025

    @alcides
    alcides
    on Dec 10, 2025
    Collaborator
    More actions

    Ideally the UI should hide the numbers (using colors, maybe?) and refer to the definition location (with the same color).

    But for now, having numbers is good. But what if you are calling a function with a parameter x also defined in the line 22 (but another file)? Are there any chances of collisions?

  3. CatarinaGamboa commented on Dec 10, 2025

    @CatarinaGamboa
    CatarinaGamboa
    on Dec 10, 2025
    CollaboratorAuthor
    More actions

    But what if you are calling a function with a parameter x also defined in the line 22 (but another file)? Are there any chances of collisions?

    For instances of local variables this should be okay since we have different scopes and the context is not shared between them. Now, for fields this could be an issue yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.