Coder Social home page Coder Social logo

Comments (9)

Hanaasagi avatar Hanaasagi commented on July 16, 2024 2

I open a pull request for this, #23.

from aw-watcher-vim.

EricDriussi avatar EricDriussi commented on July 16, 2024 1

Similar stuff for me:

Error detected while processing function HTTPPostOnExitNeovim: 
line 2: 
E716: Key not present in Dictionary: "7" 
E116: Invalid arguments for function str2nr 
E15: Invalid expression: str2nr(s:http_response_code[l:jobid_str][0]) 
line 3: 
E121: Undefined variable: l:status_code 
E116: Invalid arguments for function HTTPPostOnExit

nvim -v:

NVIM v0.5.1
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/neovim/src/neovim-0.5.1/build/config -I/build/neovim/src/neovim-0.5.1/src -I/usr/include -I/build/neovim/src/neovim-0.5.1/build/src/nvim/auto -I/build/neovim/src/neovim-0.5.1/build/include
Compiled by builduser

from aw-watcher-vim.

sreeram-dev avatar sreeram-dev commented on July 16, 2024

I am facing the same issue with v0.10.0
nvim: 0.4.4

from aw-watcher-vim.

johan-bjareholt avatar johan-bjareholt commented on July 16, 2024

Interesting, I also use nvim 0.4.4 and v0.10.0 (aw-server-rust) and have not had this issue.
My completely uneducated guess would that there might possibly be something wrong with error handling if for example the server is slow to respond to a heartbeat.

from aw-watcher-vim.

mzfr avatar mzfr commented on July 16, 2024

I can confirm that I am having the same issue:

Error detected while processing function HTTPPostOnExitNeovim:
line    2:
E716: Key not present in Dictionary: 4
E116: Invalid arguments for function str2nr
E15: Invalid expression: str2nr(s:http_response_code[l:jobid_str][0])
line    3:
E121: Undefined variable: l:status_code
E116: Invalid arguments for function HTTPPostOnExit%

I am using nvim 0.4.3.

The only thing that I could add here is that I am using nvim inside wsl and the was watcher runs on my host machine. so I had to enable the plugin by putting the following line in the config:

let g:aw_apiurl_host = <IP_OF_THE_HOST>

from aw-watcher-vim.

saforem2 avatar saforem2 commented on July 16, 2024

Same issue here

from aw-watcher-vim.

carsin avatar carsin commented on July 16, 2024

+1

from aw-watcher-vim.

Hanaasagi avatar Hanaasagi commented on July 16, 2024

Sometimes appears when I exit nvim.

Error detected while processing function HTTPPostOnExitNeovim:
line    2:
E716: Key not present in Dictionary: "13"
E116: Invalid arguments for function str2nr
line    3:
E121: Undefined variable: l:status_code
E116: Invalid arguments for function HTTPPostOnExit%  

My Nvim version:

NVIM v0.6.0
Build type: Release
LuaJIT 2.0.5
Compiled by builduser

from aw-watcher-vim.

bighu630 avatar bighu630 commented on July 16, 2024

我尝试注释以下代码后,看似没有再报错了,但这肯定不是一个很好的解决方法

function! HTTPPostOnExitNeovim(jobid, exitcode, eventtype)
"let l:jobid_str = printf('%d', a:jobid)
"let l:status_code = str2nr(s:http_response_code[l:jobid_str][0])
"call HTTPPostOnExit(l:jobid_str, l:status_code)
endfunc

from aw-watcher-vim.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.