question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension fails to capture some of the executables

See original GitHub issue

Checklist

  • The issue is about this extension and NOT about a fork.
  • Check the known issues list.
  • The latest version of the extension was used.

Describe the bug

I am trying to use this extension with GTest.

The extension seems to fail to capture most of my unittest executables, although the pattern seems to be ok. The log file shows it going through all of the right executables but it is only able to capture a couple. Here is the error message I get for the ones not captured: [2020-07-23 12:13:02.828] [DEBUG] Not a test executable: c:\local\hulloncos\sources\unittest\cos_unittest\cos_unittest.exe reason: [Error: Not a supported test executable: c:\local\hulloncos\sources\unittest\cos_unittest\cos_unittest.exe

I can confirm the executable works fine and running cos_unittest.exe --gtest_list_tests shows a list of all tests. I can’t really see the difference between this executable and one that the extension is able to capture. I wonder what is the procedure to capture a “supported test executable”? Maybe that could help me find what I need to do.

To Reproduce

Nothing special, just hitting the reload button in the test tab. Here are my settings:

"testMate.cpp.test.advancedExecutables": [
      {
        "pattern": "{sources,unittest}/**/*{unittest}*",
        "cwd": "${absDirpath}",
        "env": {
          "PATH" : "${env:PATH};${workspaceFolder}/nupashull/windowsNT/ncgbin",
          "ncgbin" : "${workspaceFolder}/nupashull/windowsNT/ncgbin",
          "ncgbin64" : "${workspaceFolder}/nupashull/windowsNT/ncgbin64",
        }
      }
    ]

All unittest executables have the suffix _unittest and are inside sources/unittest (yes I realize that’s a silly place to put executables, not a decision that’s up to me 😛)

Desktop

  • Extension Version: 3.2.10
  • VS Code Version: 1.47.2
  • Catch2 / Google Test / DOCTest Version: 1.10.0 (gtest)
  • OS Type and Version: Windows 10 Pro
  • Using remote-ssh/docker/wsl?: No

Log (optional but recommended) The relevant log message I can see is this one: [2020-07-23 12:13:02.828] [DEBUG] Not a test executable: c:\local\hulloncos\sources\unittest\cos_unittest\cos_unittest.exe reason: [Error: Not a supported test executable: c:\local\hulloncos\sources\unittest\cos_unittest\cos_unittest.exe

Let me know if more is needed though.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:29 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
daniel-kuncommented, Dec 7, 2021

@Sol1du2 Thanks for the reply! I found out that the “C++ TestMate Legacy” extension works just fine for me.

0reactions
Sol1du2commented, Dec 7, 2021

@daniel-kun this issue turned out to be an issue with my setup not the plugin

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Azure Windows VM extension failures
Open a Command Prompt in the VM and execute a command to reproduce the error. The VM Agent uses the Administrator cmd.exe and...
Read more >
Error when trying to compile C code with C/C++ extension in ...
The following excerpt is found under a screenshot showing the exact error you have. If you get an error trying to build and...
Read more >
Chrome Extension Troubleshooting
This page presents the most frequent reasons for which the UiPath Extension for Chrome might not work properly, and how to solve these...
Read more >
Installation error during "install" phase: Failed to create ... - IBM
Corrupted installation file due to download or files not being fully extracted after the download. Resolving The Problem. Follow the appropriate ...
Read more >
Torizon Extension in VS 2019 Issues - Toradex Community
Some notes: All is well until step 3. ... Any help is appreciated. ... to run moses.exe manually to get the extension to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found