Skip to content

textDocument/definition not working #2654

Closed
@dewijones92

Description

@dewijones92

Your environment

Which OS do you use:
POP OS

haskell LSP server version
ce41b6459af131c845f942bd39e356f02b6306fa master, tag: 1.6.0.0

Which LSP client (editor/plugin) do you use:
emacs

Describe your project (alternative: link to the project):
stack.yaml

Steps to reproduce

Hover over noto on line 16 and try to go to it's definition
In this file https://github.com/dewijones92/helloworld/blob/master/app/Main.hs

Expected behaviour

Cursour should go to line 9 where noto is defined

Actual behaviour

nothing - the lsp server does not return the function definition location

Include debug information

[Trace - 10:51:17 PM] Sending request 'textDocument/definition - (200)'.                                                                                                                                                               
Params: {                                                                                                                                                                                                                              
  "textDocument": {                                                                                                                                                                                                                    
    "uri": "file:///home/dewi/tmp/haskellTut/helloworld/Setup.hs"                                                                                                                                                                      
  },                                                                                                                                                                                                                                   
  "position": {                                                                                                                                                                                                                        
    "line": 15,                                                                                                                                                                                                                        
    "character": 13                                                                                                                                                                                                                    
  }                                                                                                                                                                                                                                    
}                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                       
[Trace - 10:51:17 PM] Received response 'textDocument/definition - (200)' in 1ms.                                                                                                                                                      
Result: []   

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous integrationbuild tool: stacktype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..type: supportUser support tickets, questions, help with setup etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions