hfn92 / cmake-gtest.nvim Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
When I try to :ConfigureGtest
I get this error:
Error executing Lua callback: ~/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:193: Cannot call async function from non-async context
stack traceback:
[C]: in function 'error'
~/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:193: in function 'wait'
~/.local/share/nvim/lazy/nvim-nio/lua/nio/control.lua:141: in function 'wait'
~/.local/share/nvim/lazy/neotest-gtest/lua/neotest-gtest/executables/init.lua:28: in function ~/.local/share/nvim/lazy/neotest-gtest/lua/neotest-gtest/executables/init.lua:27>
Versions:
v0.10.0-dev-2754+g12240600f
v5.0.1
@ e07fe82
6e794ac
At work, I have a setup similar to:
repo <--- top of a "monorepo"
.git
subdir <--- I work in this tree (pwd for neovim)
CMakeLists.txt
lib
CMakeLists.txt <--- library built here
tests
test_foo.cpp
CMakeLists.txt <--- tests added here
build
CTestTestfile.cmake <--- top level index into tests
lib
tests
test_foo <--- test executable
Reproduce:
:e lib/tests/test_foo.cpp
require("neotest").summary.open()
-- everything works correctly (I see a list of my tests, tests in current file are highlighted in purple)m
to mark my tests in the split window (now highlighted in orange):ConfigureGtest
and I get the messages pasted aboveSelect executable for marked nodes:
1: build/lib/tests/test_foo
2: Enter path...
Type number and <Enter> or click with the mouse (q or empty cancels):
build/lib/tests/test_foo
require("neotest").run.run(vim.fn.expand("%"))
neotest-gtest: ~/.local/share/nvim/lazy/nvim-nio/lua/nio/init.lua:119: The coroutine failed with this message:
vim/_editor.lua:0: E5560: nvim_echo must not be called in a lua loop callback
stack traceback:
[C]: in function 'nvim_echo'
vim/_editor.lua: in function 'notify'
~/.local/share/nvim/lazy/neotest-gtest/lua/neotest-gtest/report.lua:238: in function '_notify_if_incomplete_results'
~/.local/share/nvim/lazy/neotest-gtest/lua/neotest-gtest/report.lua:223: in function 'results'
~/.local/share/nvim/lazy/neotest/lua/neotest/client/runner.lua:132: in function '_run_spec'
~/.local/share/nvim/lazy/neotest/lua/neotest/client/runner.lua:89: in function ~/.local/share/nvim/lazy/neotest/lua/neotest/client/runner.lua:88>
Use test or build directory to prevent source dir being spammed with gtest result files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.