Comments (5)
If you can run your script using the embedded lua debugger ( luajit 2.1 ) just go ahead and invoke run_this()
with the script open. If you want to use an external lua interpreter I'm afraid it's currently not possible. Have you looked at lua-debug?
from one-small-step-for-vimkind.
It would perfectly possible for me to implement debugging for non-Neovim code, it's just that I never use it outside Neovim so I didn't build any.
from one-small-step-for-vimkind.
Ok, thanks. Could you hint what are the diffs between .lua.t
files and just .lua
? and where @annotations
in .lua.t
come from?
from one-small-step-for-vimkind.
Sure, I'm coding in the lua.t
files which in turn generate the lua
files using a literate programming plugin called ntangle.nvim. I've coded the past year with it and sticky with it for the moment.
If you want you can install the plugin and it should be ready to use. The docs also explain about the syntax. I would be happy to review any PR.
from one-small-step-for-vimkind.
If you can run your script using the embedded lua debugger ( luajit 2.1 ) just go ahead and invoke
run_this()
with the script open. If you want to use an external lua interpreter I'm afraid it's currently not possible. Have you looked at lua-debug?
Hi,
I have luajit 2.1 on my OS, however running run_this()
in any non-neovim file gives module 'osv'
not found error.
Error Log
E5108: Error executing lua Vim:Error invoking 'nvim_exec_lua' on channel 6:
Error executing lua: [string "<nvim>"]:1: module 'osv' not found:
no field package.preload['osv']
no file './osv.lua'
no file '/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/osv.lua'
no file '/usr/local/share/lua/5.1/osv.lua'
no file '/usr/local/share/lua/5.1/osv/init.lua'
no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/osv.lua'
no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/osv/init.lua'
no file './osv.so'
no file '/usr/local/lib/lua/5.1/osv.so'
no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/osv.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
[string "<nvim>"]:1: in main chunk
stack traceback:
[C]: in function 'rpcrequest'
...packer/start/one-small-step-for-vimkind/lua/osv/init.lua:706: in function 'run_this'
[string ":lua"]:1: in main chunk
It seems this error is similar to #11 , however I'm using default config, not nvim -u ${CONFIG_FILE}
.
from one-small-step-for-vimkind.
Related Issues (20)
- Vim:Error invoking 'nvim_exec_lua' on channel 7 HOT 3
- Possible docs improvement
- Possible way to resolve symlink issue HOT 1
- Debug adapter disconnected HOT 4
- Is there anyway to prevent the debugger from entering outside projects? HOT 7
- Is port number correct? HOT 1
- Any instruction on how to get the debugger going using LunarVim? HOT 12
- Can dap continue launch the lua file? HOT 1
- Missing line field in StackFrame, causes errors in Vimspector HOT 1
- Print value of global variable? HOT 2
- How to debug key mapping or auto commands HOT 5
- How to debug Lua scripts in Unreal Engine? HOT 1
- Cannot launch with another rpc client HOT 4
- No response or event received HOT 3
- Get error when restart session HOT 1
- Evaluation only displays an empty rectangle HOT 6
- Plugin does not support wrapped `nvim` executable? HOT 6
- nvim gets spawned recursively? HOT 4
- Repl evaluate doesn't have access to function upvalues HOT 2
- Frames for pre-compiled sources report wrong path/line/column HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from one-small-step-for-vimkind.