GithubHelp home page GithubHelp logo

Comments (3)

jbyuki avatar jbyuki commented on August 24, 2024

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.

tpotie avatar tpotie commented on August 24, 2024

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.

jbyuki avatar jbyuki commented on August 24, 2024

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)

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.