support

Forum Replies Created

Viewing 15 posts - 3,406 through 3,420 (of 7,816 total)
  • Author
    Posts
  • in reply to: run gtest in tfs build with coverage #23730
    support
    Keymaster

    We have received the logs via the support system.

    It looks like VisualGDB running from the test agent still completely fails to launch the tests (it also doesn’t get the VISUALGDB_SHOW_DIAGNOSTIC_OUTPUT variable).

    Please try adding the “/v” and “/diag” flags to the VisualGDB command line in TFS (ensure you use build 2789) and send us the updated logs.

    in reply to: run gtest in tfs build with coverage #23728
    support
    Keymaster

    Yes, we have just double-checked the attachment logic on our side and it appears to be working.

    in reply to: run gtest in tfs build with coverage #23725
    support
    Keymaster

    Sorry, it still did not work. We have just rechecked attachments on our side and they appear to be working, so the problem might be caused by your browser.

    As a workaround, please try using a file hosting service like Dropbox, or simply send the attachments via our support form.

    in reply to: aggregated coverage over different test projects #23724
    support
    Keymaster

    Hi,

    Thanks for the suggestion. VisualGDB handles the coverage reports on a per-project level (not per-solution), hence merging coverage information from multiple projects behind the scenes could cause weird results (e.g. coverage for subsequent reports belonging to the same project would differ based on the other tests executed during the same session an also the function invocation numbers would be off).

    You can somewhat work around it by configuring VisualGDB to keep the raw coverage reports and then running the VisualGDB coverage report generator to build the aggregated report.

    Please check the VisualGDB Diagnostics Console for command lines running valgrind2sprof64.exe. Each command line will reference one job file that has the following format:

    >[base source directory #1]
    [full paths to gcov files]
    >[base source directory #2]
    [full paths to gcov files]

    Please try concatenating multiple job files into one and running valgrind2sprof64.exe on the combined job file. This should produce an aggregated coverage report that can be placed into your project’s coverage report directory in order for VisualGDB to show it.

    in reply to: run gtest in tfs build with coverage #23722
    support
    Keymaster

    Sorry, unfortunately the output you mentioned did not get attached. We also rechecked everything on a clean machine and unfortunately could not reproduce the problem.

    In case the VISUALGDB_SHOW_DIAGNOSTIC_OUTPUT variable is not being handled correctly in your setup, we have added a new /diag switch to this build.

    Please run it as shown below:

    "%VISUALGDB_DIR%\visualgdb" /runtests VisualGDB\Debug\CrossCoverageTest.vgdbtestcontainer /vsoutput:testresult.trx /diag > run.log

    The output should contain lines like these:

    Downloading coverage files...
    Received X11 channel request. Trying localhost:6000...
    Directory set #1
            Build-time directory: c:\projects\temp\CrossCoverageTest\VisualGDB\Debug
            Runtime directory: /tmp/cov
    Starting coverage report converter: C:\Program Files (x86)\Sysprogs\VisualGDB\valgrind2sprof64.exe --gcov "c:\projects\temp\CrossCoverageTest\CoverageReports\2_6_2019_11_19_00_AM\job.txt" "c:\projects\temp\CrossCoverageTest\CoverageReports\2_6_2019_11_19_00_AM.scovreport"

    Please attach the updated output. It should explain what is going on inside the coverage report logic.

    in reply to: Suspected Project Import Problem or Compiler problem #23721
    support
    Keymaster

    Thanks for sending us the repro. Turns out the project included its own modified versions of the system headers and the Keil IDE included them before the regular headers, while VisualGDB included them after.

    We have updated VisualGDB to match the Keil behavior in this build: http://sysprogs.com/files/tmp/VisualGDB-5.4.100.2788.msi

    Please import the project again.

    in reply to: Clang Intellisense not working #23720
    support
    Keymaster

    Hi,

    Sorry about that. Please try the following procedure to narrow down the problem:

    1. At the beginning of the source file declare a simple function and check that its name is highlighted: void testfunc();
    2. Once you confirm that the name is shown in a different color, move the declaration to the place where IntelliSense doesn’t work. Save the file and confirm that the colors is now not shown.
    3. Move the declaration around the source file to find the location after which the highlighting breaks (most likely it will be caused by some special characters that are treated differently by VS and Clang in one of the comments).
    4. To fix the problem, simply remove the special character. You can also send us the file causing the problem (just one .c/.cpp file is sufficient) and we will add an automatic workaround for this.

    You can convert the encoding for multiple files in the same project using a simple C# program (ensure you backup your sources before):

                foreach (var fn in Directory.GetFiles(@"<dir>", "*.c", SearchOption.AllDirectories))
                {
                    var text = File.ReadAllText(fn, Encoding.GetEncoding(<CODEPAGE>));
                    File.WriteAllText(fn, text, Encoding.UTF8);
                }

     

    in reply to: Clang Intellisense not working #23714
    support
    Keymaster

    Hi,

    Thanks for renewing your license. The timing report on your screenshot does not mean that VisualGDB is running – instead it shows the timing of the last operation.

    The error you are describing might be caused by unsupported encoding (Clang IntelliSense only supports UTF-8). Please double-check the encoding used to save the files and ensure they are saved as UTF-8.

    in reply to: Dynamic Analysis error #23713
    support
    Keymaster

    Hi,

    Please try disassembling the file by running arm-eabi-objdump -D [ELF file] > disasm.txt, then search for the address shown in the error message.

    in reply to: U8G2 graphics library/component linking error #23711
    support
    Keymaster

    Hi,

    If the project builds successfully from command line, please try importing it into VisualGDB using the import wizard and then compare the manual build command line against the command line issued by VisualGDB (you can find it in the View -> Output -> Build Output window). Once you identify the part of the command line that breaks the build, we can help you configure VisualGDB to ensure it uses the correct command line as well.

    in reply to: U8G2 graphics library/component linking error #23709
    support
    Keymaster

    Hi,

    Sorry, we cannot provide much help troubleshooting 3rd-party libraries and components as a part of our product support. Our best advice would be to try searching the codebase for the definitions of the missing symbol and ensuring that the corresponding source or library file (.a) is included in the project. You may also find this tutorial useful – it explains the difference between C++ declarations and definitions and shows some tricks for finding symbol definitions in object files.

    in reply to: ESP32 with ULP support #23705
    support
    Keymaster

    Hi,

    Good to know it works. If you encounter further issues, please don’t hesitate to get back to us and we will be happy to help.

    in reply to: Suspected Project Import Problem or Compiler problem #23704
    support
    Keymaster

    Hi,

    Unfortunately, it is impossible to narrow down the problem based on the limited description you provided. If you could reproduce the problem on a smaller project and attach it here, we should be able to investigate what is going on.

    in reply to: Suspected Project Import Problem or Compiler problem #23688
    support
    Keymaster

    Hi,

    Sorry, we are not sure what you meant. The project should normally import correctly as long as the original Keil project has the correct include paths.

    Please try locating a specific header that is not being found and ensure that its location is listed in the Include Directories field in VisualGDB Project Properties.

    Alternatively please try reproducing the problem on a smaller Keil project (that builds with Keil, but doesn’t build after being imported) and attach it here so that we could investigate.

    in reply to: GTK using viusalgdb #23685
    support
    Keymaster

    Hi,

    Sorry, we don’t have a tutorial specifically for GTK+. Please try following the generic Linux project import tutorial.

Viewing 15 posts - 3,406 through 3,420 (of 7,816 total)