CRAG666 / code_runner.nvim

Neovim plugin.The best code runner you could have, it is like the one in vscode but with super powers, it manages projects like in intellij but without being slow
MIT License
539 stars 38 forks source link

[Bug] `RunProject <mode>` does not work for me #58

Closed Fau818 closed 1 year ago

Fau818 commented 1 year ago

Description

If I use RunProject command in a project, it works well.

But if I use RunProject <mode>, it does not work, e.g. RunProject toggleterm.

Vim Version

NVIM v0.8.1 Build type: Release LuaJIT 2.1.0-beta3

Fau818 commented 1 year ago

After I updated to the latest version and executed the command, it threw some errors. Then the command worked correctly.

Error executing Lua callback: ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:177: attempt to index global 'opt' (a nil value)
stack traceback:
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:177: in function 'call_mode'
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:196: in function 'run_mode'
        ...cker/start/code_runner.nvim/lua/code_runner/commands.lua:274: in function <...cker/start/code_runner.nvim/lua/code_runner/commands.lua:271>
        ...e/pack/packer/start/code_runner.nvim/lua/code_runner.lua:78: in function <...e/pack/packer/start/code_runner.nvim/lua/code_runner.lua:77>
Fau818 commented 1 year ago

Thank you very much for your efforts, it works very well.