Comments (3)
I see this as well. It prints the same error to the output as if you open the root source directory and type ctest with no flags.
I agree that it appears to be an issue with passing the command arguments to the function.
from cmake-tools.nvim.
when i tried to switch to toggleterm for runner i get the following error while it does work correctly:
...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: attempt to call method 'match' (a nil value)
stack traceback:
...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: in function 'on_output'
...vim/lazy/cmake-tools.nvim/lua/cmake-tools/toggleterm.lua:36: in function 'handler'
...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:384: in function <...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:382>
...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: attempt to call method 'match' (a nil value)
stack traceback:
...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: in function 'on_output'
...vim/lazy/cmake-tools.nvim/lua/cmake-tools/toggleterm.lua:36: in function 'handler'
...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:384: in function <...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:382> function: builtin#18 ...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: attempt to call method 'match' (a nil value)
stack traceback:
...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: in function 'on_output'
...vim/lazy/cmake-tools.nvim/lua/cmake-tools/toggleterm.lua:36: in function 'handler'
...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:384: in function <...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:382>
...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: attempt to call method 'match' (a nil value)
stack traceback:
...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: in function 'on_output'
...vim/lazy/cmake-tools.nvim/lua/cmake-tools/toggleterm.lua:36: in function 'handler'
...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:384: in function <...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:382> function: builtin#18 ...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: attempt to call method 'match' (a nil value)
stack traceback:
...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: in function 'on_output'
...vim/lazy/cmake-tools.nvim/lua/cmake-tools/toggleterm.lua:36: in function 'handler'
...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:384: in function <...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:382> function: builtin#18 ...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: attempt to call method 'match' (a nil value)
stack traceback:
...are/nvim/lazy/cmake-tools.nvim/lua/cmake-tools/utils.lua:153: in function 'on_output'
...vim/lazy/cmake-tools.nvim/lua/cmake-tools/toggleterm.lua:36: in function 'handler'
...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:384: in function <...re/nvim/lazy/toggleterm.nvim/lua/toggleterm/terminal.lua:382>
from cmake-tools.nvim.
for some reason there is no concat with args in _terminal.run() in terminal.lua file on line 530, to fix it i just needed to swap
cmd
to cmd .. " " .. table.concat(args, " ")
on line 559
from cmake-tools.nvim.
Related Issues (20)
- CMakeGenerate does not work HOT 2
- Toggleterm executor opens new tab instead of rewriting existing one
- Error during the lazy initialization, when it is triggered by pressing hotkeys HOT 11
- Symlink compile_commands.json doesn't appear to work on windows HOT 7
- quick start HOT 4
- on_exit in default terminal.lua HOT 1
- How to choose target when every build/run HOT 18
- targets in buildPresets of CMakePresets.json not honored
- Build Directory Creation will Fail if it Requires a Recursive Create on Windows HOT 4
- Build Directory and Build Targets Not Always Found HOT 11
- Support fish shell HOT 4
- CMakeRun No Output on Windows HOT 5
- Slowdown every time cursor is moved HOT 4
- Whitespace makes CMakeGenerate error HOT 3
- Directory path starting with number causes error
- Feature:Easier to use
- neotest-ctest adapter HOT 3
- Presets are not ignored when `cmake_use_preset` is set to false HOT 5
- Copy compile_commands to a user specified directory after CMake Configure
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 cmake-tools.nvim.