-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Running on Mac OS X #23
Comments
Thanks for giving this early version a go! Problems are definitely expected
right now.
I would guess this is to do with a number nvim is reporting back when I ask
for a buffer line count or something.
Could I get your Neovim version and Conjure logs? There's instructions to
add logging in the issue template, I think you just set CONJURE_LOG_PATH in
your env when you run nvim.
If you can reproduce it and get me that log it'll probably have the answer
in there.
Thanks! I hope your week is off to a good start other than this 😄
…On Mon, 8 Apr 2019, 22:32 scotts777, ***@***.***> wrote:
I am attempting to run Conjure through nvim in the mac's Terminal bash,
but I am getting an error when doing ConjureAdd. It probably isn't a bug
and more likely it is that I am new to nvim and doing something wrong. But
this plugin looks so good that it is finally pushing me to the vim side. I
will understand if you deem it an issue with my setup and not a bug then
please just close it.
I added this to my init.vim
`call plug#begin('~/.local/share/nvim/plugged')
Plug 'Olical/conjure', { 'tag': 'v0.8.2', 'do': 'make compile', 'for':
'clojure', 'on': 'ConjureAdd' }
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
" Initialize plugin system
call plug#end()`
I did a successful PlugInstall. I am running a prepl in another Terminal
that I can successfully connect to with nc localhost port. However, in nvim
when I do a ConjureAdd {:tag :dev, :port 40404}, it opens a vertical split
window, but I get this error message:
Error from thread 'RPC message handler': #error { :cause nil :via [{:type
java.lang.NullPointerException :message nil :at [clojure.lang.Numbers ops
Numbers.java 1068]}] :trace [[clojure.lang.Numbers ops Numbers.java 1068]
[clojure.lang.Numbers gt Numbers.java 259] [conjure.ui$append invokeStatic
ui.clj 48] [conjure.ui$info invokeStatic ui.clj 68]
[conjure.prepl$add_BANG_ invokeStatic prepl.clj 102]
[conjure.main$fn__12976 invokeStatic main.clj 34] [conjure.main$fn__12976
invoke main.clj 33] [clojure.lang.MultiFn invoke MultiFn.java 229]
[conjure.rpc$init$fn__11386 invoke rpc.clj 168]
[clojure.core$binding_conveyor_fn$fn__5756 invoke core.clj 2030]
[clojure.lang.AFn call AFn.java 18] [java.util.concurrent.FutureTask run
FutureTask.java 264] [java.util.concurrent.ThreadPoolExecutor runWorker
ThreadPoolExecutor.java 1128]
[java.util.concurrent.ThreadPoolExecutor$Worker run ThreadPoolExecutor.java
628] [java.lang.Thread run Thread.java 835]]}
When I quit out of nvim, I see this message: Conjure exited, restarting
Thanks for any assistance you may provide
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATPXQvq81KfMeR_WCBt8yXkWoF2ffsEks5ve7VogaJpZM4cjJ8K>
.
|
Oh, just a hunch, does OSX have a /tmp anymore? I create the log buffer
there (it's not saved, it's just the path used for it since it's
consistent). If that's Linux only now that's explain it.
I can rethink the log buffer name if so!
…On Tue, 9 Apr 2019, 08:23 Oliver Caldwell, ***@***.***> wrote:
Thanks for giving this early version a go! Problems are definitely
expected right now.
I would guess this is to do with a number nvim is reporting back when I
ask for a buffer line count or something.
Could I get your Neovim version and Conjure logs? There's instructions to
add logging in the issue template, I think you just set CONJURE_LOG_PATH in
your env when you run nvim.
If you can reproduce it and get me that log it'll probably have the answer
in there.
Thanks! I hope your week is off to a good start other than this 😄
On Mon, 8 Apr 2019, 22:32 scotts777, ***@***.***> wrote:
> I am attempting to run Conjure through nvim in the mac's Terminal bash,
> but I am getting an error when doing ConjureAdd. It probably isn't a bug
> and more likely it is that I am new to nvim and doing something wrong. But
> this plugin looks so good that it is finally pushing me to the vim side. I
> will understand if you deem it an issue with my setup and not a bug then
> please just close it.
>
> I added this to my init.vim
> `call plug#begin('~/.local/share/nvim/plugged')
>
> Plug 'Olical/conjure', { 'tag': 'v0.8.2', 'do': 'make compile', 'for':
> 'clojure', 'on': 'ConjureAdd' }
> Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
> Plug 'junegunn/fzf.vim'
>
> " Initialize plugin system
> call plug#end()`
>
> I did a successful PlugInstall. I am running a prepl in another Terminal
> that I can successfully connect to with nc localhost port. However, in nvim
> when I do a ConjureAdd {:tag :dev, :port 40404}, it opens a vertical split
> window, but I get this error message:
>
> Error from thread 'RPC message handler': #error { :cause nil :via [{:type
> java.lang.NullPointerException :message nil :at [clojure.lang.Numbers ops
> Numbers.java 1068]}] :trace [[clojure.lang.Numbers ops Numbers.java 1068]
> [clojure.lang.Numbers gt Numbers.java 259] [conjure.ui$append invokeStatic
> ui.clj 48] [conjure.ui$info invokeStatic ui.clj 68]
> [conjure.prepl$add_BANG_ invokeStatic prepl.clj 102]
> [conjure.main$fn__12976 invokeStatic main.clj 34] [conjure.main$fn__12976
> invoke main.clj 33] [clojure.lang.MultiFn invoke MultiFn.java 229]
> [conjure.rpc$init$fn__11386 invoke rpc.clj 168]
> [clojure.core$binding_conveyor_fn$fn__5756 invoke core.clj 2030]
> [clojure.lang.AFn call AFn.java 18] [java.util.concurrent.FutureTask run
> FutureTask.java 264] [java.util.concurrent.ThreadPoolExecutor runWorker
> ThreadPoolExecutor.java 1128]
> [java.util.concurrent.ThreadPoolExecutor$Worker run ThreadPoolExecutor.java
> 628] [java.lang.Thread run Thread.java 835]]}
>
> When I quit out of nvim, I see this message: Conjure exited, restarting
>
> Thanks for any assistance you may provide
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#23>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AATPXQvq81KfMeR_WCBt8yXkWoF2ffsEks5ve7VogaJpZM4cjJ8K>
> .
>
|
I am informed by the OSX dev to my right that it does have a Your logs will prove this though, every RPC call gets written there when it's enabled so we'll see what Conjure asked and what it got back from Neovim 😃 should be an easy fix. |
I really appreciate you taking the time to look into this. Yes the /tmp exists and I can see the buffer in the split. Here is the log output.
|
Not a problem! You're helping me make a better tool by reporting it!
Hmm, that'll be the one. So I wonder why the buffer is nil, that should be the reference to the log buffer that comes back from the Lua code. A bit convoluted I know, but I have my reasons 😅 |
Yea, it opens a vertical split and I see the name as /tmp/conjure.cljc, but if I do a :ls command the only buffer it lists is my starting buffer with clojure code.
… On Apr 9, 2019, at 7:24 AM, Oliver Caldwell ***@***.***> wrote:
Not a problem! You're helping me make a better tool by reporting it!
Received RPC message: {:type :response, :id 1, :error [0 "Wrong type for argument 1, expecting Buffer"], :result nil}
Hmm, that'll be the one. So I wonder why the buffer is nil, that should be the reference to the log buffer that comes back from the Lua code. A bit convoluted I know, but I have my reasons 😅
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#23 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AgnmyYG12AGSRYPMU6KQwanY2Aj8SrReks5vfHiKgaJpZM4cjJ8K>.
|
This means that one of these is returning nil when it should be returning the buffer ID: Lines 3 to 49 in 68c2dac
And you won't see it in the buffer list, it's a special hidden thing that can't be accidentally written to a file or clutter your buffer list etc. As long as you can see the window with the buffer name set to So why the nil... I do wonder if it could be some sort of race condition that isn't present on my machine. |
Is there anything else interesting / scaring in Lines 34 to 41 in 68c2dac
I wonder if one of those could be failing and causing the Lua function to return nil after mostly creating the buffer. |
No. I don’t see anything more than the stack trace that I pasted in my first message. If I run those commands manually in that buffer they seem to work. Of course that may not be apples to apples.
… On Apr 9, 2019, at 7:34 AM, Oliver Caldwell ***@***.***> wrote:
Is there anything else interesting / scaring in :messages? Like possibly related to these commands? https://github.com/Olical/conjure/blob/68c2dac95e2b82db693b623832371b2b2d935b93/lua/conjure.lua#L34-L41 <https://github.com/Olical/conjure/blob/68c2dac95e2b82db693b623832371b2b2d935b93/lua/conjure.lua#L34-L41>
I wonder if one of those could be failing and causing the Lua function to return nil after mostly creating the buffer.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#23 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AgnmyTA2Z6SvqcHWL0BRb86jCV7vHtlYks5vfHq2gaJpZM4cjJ8K>.
|
Just out of interest, swapping your vim-plug call to |
Changed to that commit and ran PlugUpdate and it looked like it pulled that commit version ok, but same error with same :message and same log output.
|
Okay, I'm out of lunch time now but will have a look ASAP. Just need to try and repo which seems hard 😬 I'd be surprised if it was OSX specific but maybe! Do you have other plugins / settings or is it a blank neovim? I might try to repro it in a bare bones neovim environment. Latest commit is better too, prints out the full stack trace when something goes wrong |
Ok no problem and no rush for this, so take your time. Yes I am pretty new to the vim world so it is a totally bare bones setup of Neovim that I am running in the built in Mac Terminal.app. Thanks again.
|
I'll try a stripped down neovim soon and see if I can reproduce it there. I would put money on this being some weird setting that most people have set that might not be set by default. It's so odd how the Lua, Clojure and VimL is all up and talking to each other but still manages to get a nil where it shouldn't. That nil means it couldn't find the Conjure buffer/window. This could be a race condition (ahhhhh) or it could just be a setting on the buffer / neovim instance. I'll work it out 😄 |
Great! Yes, I really like the look of your plugin and where it is heading with prepl!
… On Apr 9, 2019, at 8:40 AM, Oliver Caldwell ***@***.***> wrote:
I'll try a stripped down neovim soon and see if I can reproduce it there. I would put money on this being some weird setting that most people have set that might not be set by default. It's so odd how the Lua, Clojure and VimL is all up and talking to each other but still manages to get a nil where it shouldn't.
That nil means it couldn't find the Conjure buffer/window. This could be a race condition (ahhhhh) or it could just be a setting on the buffer / neovim instance. I'll work it out 😄
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#23 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AgnmycXA0KnNaczdCL5LbZAi7SSCvAHcks5vfIo-gaJpZM4cjJ8K>.
|
Ah! OSX's |
If my hunch is correct, this commit should fix it! If you get a chance to give it a go let me know how it goes 😄 3918cbc |
You’ve done it. It works! Interestingly when I ran the echo expand command it did print out /tmp/conjure.cljc. However, I still tried your last commit and it worked! Thanks again for your time and all your effort on Conjure
|
Well that's weird... definitely some strange path things going on here but glad the hunch was essentially correct. I think different functions in nvim are reporting different paths depending on your dir being in a symlink or not 😬 But yay! It's fixed! Thank you for your thanks, there's a lot more to do before I'm relatively happy, I hope you get a lot of value out of my work 😄 |
I am attempting to run Conjure through nvim in the mac's Terminal bash, but I am getting an error when doing ConjureAdd. It probably isn't a bug and more likely it is that I am new to nvim and doing something wrong. But this plugin looks so good that it is finally pushing me to the vim side. I will understand if you deem it an issue with my setup and not a bug then please just close it.
I added this to my init.vim
`call plug#begin('~/.local/share/nvim/plugged')
Plug 'Olical/conjure', { 'tag': 'v0.8.2', 'do': 'make compile', 'for': 'clojure', 'on': 'ConjureAdd' }
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
" Initialize plugin system
call plug#end()`
I did a successful PlugInstall. I am running a prepl in another Terminal that I can successfully connect to with nc localhost port. However, in nvim when I do a ConjureAdd {:tag :dev, :port 40404}, it opens a vertical split window, but I get this error message:
When I quit out of nvim, I see this message: Conjure exited, restarting
Thanks for any assistance you may provide
The text was updated successfully, but these errors were encountered: