Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Michael Ennen
    @brcolow
    Did you ever figure out the questions you posted @fdinoff
    fdinoff
    @fdinoff
    @brcolow nope.
    Michael Ennen
    @brcolow
    darn
    Michael Ennen
    @brcolow
    how's it going @fdinoff
    fdinoff
    @fdinoff
    @brcolow I have honestly had very little motivation to work on programming related stuff outside of work
    So other than thinking about how to do stuff, I haven’t actually done anything
    Michael Ennen
    @brcolow
    word, that happens.
    fdinoff
    @fdinoff
    I’ll get back to it eventually. Maybe when the api is more mature.
    Torsten Schmits
    @tek
    just posted a question in #neovim when I discovered this
    I launched the client in a jar using rpcstart and successfully sent data to nvim, but I have no idea how to receive
    I registered a handler and used rpcrequest, but it just blocks infinitely
    my main loop in the jar is just while(true)
    indefinitely*
    is there a main loop in msgpack or some sort of select() method?
    fdinoff
    @fdinoff
    @tek I don’t know how usable it actually is. I also haven’t updated it in a while so some functions don’t have wrappers.
    Given all of that. I never actually tried starting it from vim. I always started it up separately.
    What are you trying to do in the request? There the a potential for deadlock if you try to call back into neovim. (I might have fixed that but I don’t remember if I did…)
    If you want to post it I can take a look at it.
    fdinoff
    @fdinoff
    But looking at it right now requests have the potential to deadlock https://github.com/fdinoff/neovim-java-client/blob/master/src/main/java/com/neovim/msgpack/MessagePackRPC.java#L216 since they execute serially on the receiver thread. I meant to move that off onto a separate thread.
    fdinoff
    @fdinoff
    Hmm… I thought I changed that. I bet it was part of the code I lost when my computer was having problems...
    Torsten Schmits
    @tek
    @fdinoff I just decorated an empty function with @NeovimHandler, but even a nonexistent name deadlocks with rpcrequest()
    fdinoff
    @fdinoff
    Hmm let me test then.
    Torsten Schmits
    @tek
    thanks a lot
    fdinoff
    @fdinoff
    Just curious, What are you trying to make?
    Torsten Schmits
    @tek
    @fdinoff just exploring
    potentially porting one of my plugins to scala
    fdinoff
    @fdinoff
    Ok.
    fdinoff
    @fdinoff
    Ah… You’re doing this with jobstart
    That connects over stdin and stdout
    I never set anything up to do that...
    Torsten Schmits
    @tek
    ah, readFromInput uses connection
    can I send via tcp from within nvim?
    fdinoff
    @fdinoff
    So If you just make a Connection that uses stdin and stdout things should work...
    Torsten Schmits
    @tek
    so subclass MessagePackRPC.Connection and return stdin in getInputStream
    fdinoff
    @fdinoff
    Yeah
    Torsten Schmits
    @tek
    great, thanks
    fdinoff
    @fdinoff
    You probably want to cache the stream. Since it gets called multiple times. (Without closing it)
    Torsten Schmits
    @tek
    ok
    Torsten Schmits
    @tek
    @fdinoff just gave it a try, works like a charm
    fdinoff
    @fdinoff
    @tek Great. Thanks for telling me.
    Wesly
    @wezzynl
    Hey there @fdinoff! Kind of intrigued by those two screenshots you shared where you have Neovim running inside IntelliJ. Any way you can share that project with me - I'm kind of struggling on getting IntelliJ to display my custom "editor".
    fdinoff
    @fdinoff
    @wezzynl https://github.com/fdinoff/intellij-neovim/tree/scratch I just committed everything that was in the working directory. I don’t know if it works.
    Wesly
    @wezzynl
    @fdinoff With some tweaking and tug-o-war with Java, I got it working somewhat :) Thanks for sharing your efforts, I'll be going over it and maybe get something rollin'. Thanks again!
    Ville Hakulinen
    @vhakulinen
    @fdinoff does this client work anymore or am I just doing something wrong?'
    fdinoff
    @fdinoff
    @vhakulinen Don't know. Haven't touched it in a long time.
    Ville Hakulinen
    @vhakulinen
    @tarruda @justinmk has there been any breaking changes in last 9 months that could have broken this clinet completelly?
    Ville Hakulinen
    @vhakulinen
    okay, its partly working since I managed to send command to embedded neovim instance
    Justin M. Keyes
    @justinmk
    @vhakulinen no breaking changes
    Ville Hakulinen
    @vhakulinen
    got it working
    Justin M. Keyes
    @justinmk
    nice