Skip to content

Global variable not being correctly recognized #2

@Huang-Xuwei

Description

@Huang-Xuwei

Hi, I’ve encountered an issue where the global variable c is not being correctly recognized in my project. The issue arises in the context of analyzing the symbol for c in the code, particularly when trying to use it within functions or across the document.

I’ve attempted to address this by modifying the TODO section in the ./LSPRAG/src/lsp/symbol.ts file. However, despite my changes, it seems that the recognition issue still persists, and c isn’t being detected as expected.

What I've done so far:

Modification: I updated the TODO section in the symbol.ts file, attempting to improve the handling of global variables.

Testing: After implementing the change, I tried rerunning the relevant functionality, but the issue remained unresolved.

Current Observation:

The variable c is still not correctly identified as a global variable and doesn’t seem to be properly handled during symbol analysis.

Request for guidance:
I would like to contribute to fixing this issue. Could you please guide me in the right direction? Specifically:

Are there any additional changes needed in the logic that handles global variables?

Should there be adjustments in other parts of the code (e.g., the LSP server or symbol processing logic)?

Any hints on what might be missing or incorrect in my current approach?

I’d really appreciate your advice on how to resolve this issue so that I can contribute a fix.

Thank you!
Image

Image

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