-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[completion] can --display Foo.hx@0 work together with -D display-stdin? #9074
Comments
I think |
But it's still mentionned in the doc : https://haxe.org/manual/cr-completion-overview.html
OTOH that would explain my problem ^^. It's also mentionned here https://haxe.org/manual/cr-completion-top-level.html
Native functions in vim seem to count the offset with wide UTF-8 characters differently than in Haxe (the completion happens somewhere else, often somewhere invalid if you use unicode characters in the source code, which I love to do, this also breaks the vaxe plugin when you use wide chars in the code), so I thought of using the |
Btw, have you considered using haxe-language-server with one of the myriad languageclient plugins that exist for vim rather than implementing things from scratch (vshaxe/vshaxe#328 (comment))? Even |
This was going to be a mere patch of Vaxe, so I would not have to process the response. But if it's legacy already, I'm glad you told me. I was not aware of an haxe-language-server, JSON-RPC based display API. I will start reading the url, even though what is discussed there is alien to me at first glance. Thanks! (is there a manual page, or PR, or release note, some more or less official reference to help me catch up? Even if hopefully I can find one of those plugins I hate to use something blindly) |
@jdonaldson has actually done some work on integrating haxe-language-server into vaxe: https://github.com/jdonaldson/vaxe/tree/neovaxe |
Ok what i was missing is that Microsoft have defined a Langage Server Protocol, and that a Haxe implementation is shipped with haxe extension for VSCode... Hence the name haxe-language-server. Information is quite scattered, and since I use vim and not neovim it might add to my pain haha. Will post if I find anything usable amongst the myriads of urls there seems to be. |
coc-nvim actually works on stock vim8. Thanks for all the hard work here! |
Glald to hear it's working so well! :) I guess this can be closed then. |
Trying to use #5120 and I have a question (asking because I didn't understand the outcome in #7917, and also there is
not muchnothing in the completion doc about-D display-stdin
).Using haxe 4.0.5:
haxe --wait 10000
in one windowlocalhost:10000
from the vim editor,-D display-stdin
and--display MyFile.hx@0
,0x01
, then send to the same socket the file content with a|
char as inmyVar.|
to mark completion point (i.e. it's not using offset), and finally0x00
.On the socket, I receive an
Error: No completion point was found
. Even though I can see one sent (myVar.|
)Are both features (
-D display-stdin
and--display <file>@0
with a|
character to mark the completion point) supposed to work together right now? Otherwise I probably overlooked something.The text was updated successfully, but these errors were encountered: