Skip to content

rust-analyzer expands with "$0" #1588

@otavio

Description

@otavio

Hello,

I am using rust-analyzer and when I am doing auto-complete, it is expanding to: run_with_archive($0).

No idea where the $0 comes from.

Logs below:

Command "rls" is present on the path.
Command "rust-analyzer" is present on the path.
Command "rls" is present on the path.
Command "rust-analyzer" is present on the path.
Found the following clients for /home/otavio/src/compress-tools-rs/src/lib.rs: (server-id rls, priority -1), (server-id rust-analyzer, priority 1)
The following clients were selected based on priority: (server-id rust-analyzer, priority 1)

[Trace - 06:25:10 PM] Sending request 'textDocument/codeAction - (133)'.
Params: {
  "textDocument": {
    "uri": "file:///home/otavio/src/compress-tools-rs/src/lib.rs"
  },
  "range": {
    "start": {
      "line": 87,
      "character": 24
    },
    "end": {
      "line": 87,
      "character": 24
    }
  },
  "context": {
    "diagnostics": [
      {
        "source": "rust-analyzer",
        "severity": 1,
        "range": {
          "start": {
            "line": 87,
            "character": 21
          },
          "end": {
            "line": 87,
            "character": 21
          }
        },
        "message": "Syntax Error: expected expression"
      },
      {
        "source": "rust-analyzer",
        "severity": 1,
        "range": {
          "start": {
            "line": 87,
            "character": 22
          },
          "end": {
            "line": 87,
            "character": 22
          }
        },
        "message": "Syntax Error: expected SEMI"
      },
      {
        "source": "rust-analyzer",
        "severity": 1,
        "range": {
          "start": {
            "line": 87,
            "character": 23
          },
          "end": {
            "line": 87,
            "character": 23
          }
        },
        "message": "Syntax Error: expected SEMI"
      },
      {
        "source": "rust-analyzer",
        "severity": 1,
        "range": {
          "start": {
            "line": 87,
            "character": 23
          },
          "end": {
            "line": 87,
            "character": 23
          }
        },
        "message": "Syntax Error: expected expression"
      },
      {
        "source": "rust-analyzer",
        "severity": 1,
        "range": {
          "start": {
            "line": 87,
            "character": 24
          },
          "end": {
            "line": 87,
            "character": 24
          }
        },
        "message": "Syntax Error: expected SEMI"
      }
    ]
  }
}


[Trace - 06:25:10 PM] Received response 'nil - (132)' in 999ms.
Result: []


[Trace - 06:25:10 PM] Received response 'textDocument/codeAction - (133)' in 21ms.
Result: []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions