Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upCompletion for user defined bindings on same file #134
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
purcell
Jun 10, 2018
Collaborator
Yes, this is certainly related, and is indeed because elm-oracle only knows about symbols in installed packages. Approaches to address this could include:
- Building a set of known exported bindings in all open Elm files
- Performing searches on demand for referenced modules, and then identifying exported symbols
- Waiting for upstream tool support that I believe Evan has been talking about building
Of these, the last one is the most likely to happen, unless someone steps up to try one of the other approaches.
|
Yes, this is certainly related, and is indeed because
Of these, the last one is the most likely to happen, unless someone steps up to try one of the other approaches. |
purcell
added
the
enhancement
label
Jun 10, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vitorqb
Jun 10, 2018
@purcell Thanks for the answer. I wished I knew enough of elm/elisp to help (hopefully I will some day). I ended up using company-dabbrev-code-modes to at least get some completion for the symbols. Works fine enough for me.
Feel free to close the issue if you want.
vitorqb
commented
Jun 10, 2018
|
@purcell Thanks for the answer. I wished I knew enough of elm/elisp to help (hopefully I will some day). I ended up using Feel free to close the issue if you want. |
vitorqb commentedJun 9, 2018
Hello and thanks for the nice work on elm-mode :).
I have recently installed elm-mode and I'm using it with company-mode. I currently have nice completions for binds from imported modules, but I have no completion whatsoever for variable binds in the same file. I was reading #124 and I think this might be because elm-oracle does not parse bindings from the same file.
I was wondering if you know any way to overcome this issue. I know that there is currently no nice way to get the type of the binds, but I was wondering if there is any way to at least get completion for the variable names (without type signatures).
Thanks!