Skip to content

I can't find any references #63

Open
@brookate

Description

@brookate

Hi, I'm using gemini cli and configured settings.json

    "clangd-lsp": {
      "command": "/home/test/go/bin/mcp-language-server",
      "args": [
        "--workspace",
        "/home/test/repo/mcp_server/mcp-language-server/integrationtests/workspaces/clangd",
        "--lsp",
        "/usr/bin/clangd"
      ],
      "env": {
        "LOG_LEVEL": "DEBUG"
       },
      "alwaysAllow": [],
      "trust": true
    }

and

dell➜  clangd git:(main) ll
total 44K
-rwxr-xr-x 1 uuu uuu  16K Jul  9 16:15 clean_program
-rw-r--r-- 1 uuu uuu 6.3K Jul  9 16:15 compile_commands.json
drwxr-xr-x 1 uuu uuu   20 Jul  9 16:14 include
-rw-r--r-- 1 uuu uuu 3.0K Jul  9 16:14 Makefile
-rwxr-xr-x 1 uuu uuu  16K Jul  9 16:15 program
drwxr-xr-x 1 uuu uuu  248 Jul  9 16:15 src
dell➜  clangd git:(main) 

but when I try to find references

╭────────────────────────────────────────╮
│  > find all references helperFunction  │
╰────────────────────────────────────────╯

 ╭──────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✔  references (clangd-lsp MCP Server) {"symbolName":"helperFunction"}                    │
 │                                                                                          │
 │    No references found for symbol: helperFunction                                        │
 ╰──────────────────────────────────────────────────────────────────────────────────────────╯
 ╭──────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✔  SearchText 'helperFunction' in *.{cpp,hpp} within ./                                  │
 │                                                                                          │
 │    No matches found                                                                      │
 ╰──────────────────────────────────────────────────────────────────────────────────────────╯
✦ I could not find any references or definitions for helperFunction in the current directory. It
  seems this symbol does not exist in the codebase.

Using 1 GEMINI.md file and 5 MCP servers (ctrl+t to view)            YOLO mode (ctrl + y to toggle)
╭─────────────────────────────────────────────────────────────────────────────────────────────────╮
│ >   Type your message or @path/to/file                                                          │
╰─────────────────────────────────────────────────────────────────────────────────────────────────╯

~/mcp_server/mcp-language-server/integration  no sandbox   gemini-2.5-flash (98| ✖ 1 error 
tests/workspaces/clangd (main*)               (see /docs) context left)          (ctrl+o for 
                                                                                 details)


where is my wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions