8000 Go to definition fails on methods of block parameters · Issue #541 · kexhq/kex · GitHub
[go: up one dir, main page]

Skip to content

Go to definition fails on methods of block parameters #541

Open

Description

@akoskovacs

On 3111d30, go to definition on t.text in a migration block misses. Repro against Slick at b0b7207 with Harmat checked out beside it:

changeColumn(:conversations,
  from: { |t| t.text(:kind, oneOf: ["channel", "direct"]) },

t is declared: changeColumn(name: Atom, from: Block<TableBuilder, Column>, …). t.text should land on TableBuilder.text (harmat/src/harmat/column.kex:69).

Over stdio (textDocument/definition at the text in t.text) the server answers null — while changeColumn in the same file resolves correctly into Harmat, so dependencies are loaded. In the editor the same click lands on the wrong text instead.

So the failure is specifically the block-parameter receiver: the parameter type is declared but the method call on it does not resolve.

Activity

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

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0