Closed alok closed 7 years ago
More specifically, running :Pytest file
gives this error: E120: Using <SID> not in a script context: s:HandleOutput
.
I couldn't reproduce with the NeoVim version I had. Do you know what version are you using where this is a problem?
I'm using the latest build from git.
@Alok and what version is that?
This is problematic for the plugin because it is a backwards incompatible change within the same major release.
I'm considering dropping a continuous support for NeoVim if this keeps up.
The current version I am trying that works is 0.1.4, for a backwards incompatible change I am unsure how could I go around supporting both ways
NVIM v0.2.0-211-g9009c20
I will leave this issue open, but will not fix it anytime soon since this requires to support a development version that would break whoever is using the stable one(s)
I am really struggling making this work. This used to rely on the fact that I could pass tempfile
which is where the stdout lived:
let s:id = jobstart(s:cmdline, {
\ 'tempfile': tempfile,
\ 'on_exit': 's:HandleOutput' })
But with the new way I can't, or I am failing to find a way to pass the location of tempfile
as an argument to HandleOutput
.
If anyone can help propose something I would be happy to review
I think this https://github.com/alfredodeza/pytest.vim/commit/455889dcd4a69cfced3526cd838fa66636d3585c fixes it. Can you guys test it please so I can merge this?
/cc @Alok @decko
@Alok @decko ping?
https://github.com/alfredodeza/pytest.vim/commit/455889dcd4a69cfced3526cd838fa66636d3585c fixed the problem for me using nvim v0.2.0 (release version).
Merged 88624df7f8f22f31dd54676d7f94e94696fed177 to master. Thanks for being so patient! :)
I think you have to modify some function calls as specified here.