Comments (3)
Hello there,
I might have misunderstood your explanation so I'm just checking to make sure.
However, I closed neovim and now when I reopen it, I keep getting the complete output of my test file on start-up.
Are you running neovim with just nvim
or are you running the file at the same time? Why would you get the file output at startup?
I have tried uninstalling this plugin but this still occurs when opening neovim (I tried running it in headless, and it still prints the file test output on startup without any errors)
Same question, are you running the file immediatly at startup?
Usually, the "server" instance is opened and then lua require"osv".launch
is called and only then the file is executed, for example with :luafile myscript.lua
.
Needs more clarifcation to see what the issue is.
from one-small-step-for-vimkind.
Hi! Thanks for the response.
I ended up trying a few things locally and thanks to your questions, it was able to lead me down a path of getting a few answers as to what I was running up against.
Are you running neovim with just nvim or are you running the file at the same time? Why would you get the file output at startup?
This was my mistake. I had included my test file into the initial config of nvim (I had added code before attempting to run and get the debugger working and I had left it in...)
Add this to my misunderstanding of how to run the debugger, it compounded the issue (as when the script was loaded on start it was not allowing me to invoke require"osv".run_this()
on the file either)
I came across this screencast of yours which helped clear it up: #7 (comment)
My workflow with running debuggers in general, is closer to the alternative steps:
- Open a lua file
- Place breakpoint
- Invoke require"osv".run_this()
And then letting the debugger itself take care of running the code (or binary in other setups) without needing to do it manually.
Would there be a simple way to get "dap".continue()
to run "osv.run_this()
on lua files instead? (With the config?) So I can manage to keep the same keymaps and logic between the DAP debuggers I use
(I'm slowly diving into the world of lua plugin development as it is interesting, so I'm trying to figure out the dev environment)
from one-small-step-for-vimkind.
I don't clearly understand the question now, sorry for not coming back to it sooner. If you have more questions, please ask them again here.
from one-small-step-for-vimkind.
Related Issues (20)
- 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
- Debugger couldn't connect to 127.0.0.1:8086: ECONNREFUSED while debugging lazy plugins HOT 2
- Stdout (print, io.write) doesn't seem to work HOT 4
- Launching osv via cli args HOT 3
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.