Forum Replies Created
-
AuthorPosts
-
bbrParticipant
Hi,
the specific setting which breaks the template functionality is the project type. It is only not working for embedded projects.
bbrParticipantHi,
thanks for the explanation. I managed to come up with a solution using multiple statements which looks feasible for us.
To make our life even more convenient I tried to create a target template. Here is what I have tried:
- Create a new embedded project using CMake
- Copy the TargetDefinitions directory from this tutorial into the project directory
- In the VisualGDB project properties set the custom target definitions directory to the copied directory
- Add a new item to the project
- In the “Add New Project Item” dialogue the “Sample Custom Target Template” is not listed
When using a different project type (e.g. MinGW) the “Sample Custom Target Template” is listed in the “Add New Project Item” dialogue.
Any idea what is going on?
September 6, 2021 at 22:15 in reply to: Visual Studio Freezes when selecting a Unit Test with Simulation Platform #31260bbrParticipantHi,
thank you, the new build solved the issue.
September 2, 2021 at 21:54 in reply to: Visual Studio Freezes when selecting a Unit Test with Simulation Platform #31251bbrParticipantHi,
attached is the call stack of the main thread and the mentioned lock owning Thread 9948.
Attachments:
You must be logged in to view attached files.bbrParticipantThanks, the new build works as expected.
As the command line build is mainly used for continuous integration I doubt that the batch file is a suitable solution. Wouldn’t it require to manually regenerate the batch file when certain project changes are made? Also is there an option to force a rebuild with the batch file?
- This reply was modified 3 years, 4 months ago by bbr.
bbrParticipantHi,
in my first post I have attached a sample project based on a basic example containing code which should have a build error when compiled with -O3 and -Wall with GCC.
To reproduce the problem following steps should be used:
- Download and extract the ZIP file
- Open the solution inside Visual Studio
- Select Release as Configuration
- Rebuild the solution
- Note that the build fails due to build errors. This is correct and expected behaviour.
- Switch to a command line and navigate inside the extracted directory.
- Build the project from command line with
"C:\Program Files (x86)\Sysprogs\VisualGDB\VisualGDB.exe" /rebuild .\VisualGDBRebuildBug\VisualGDBRebuildBug.vgdbcmake /platform:VisualGDB /config:Release
- Note that the build succeeds which is neither expected nor correct.
bbrParticipantHi,
of course this explains my second observation that when a build with /rebuild once succeeded on the command line it will succeed again with only /build.
But this does not explain why the command line build with /rebuild does not have a build error at all.
March 14, 2021 at 22:52 in reply to: Clang IntelliSense wrong pointer size in embedded projects #30157bbrParticipantHi,
thank you, the new build solved the issue.
bbrParticipantHi,
thanks, the build solves the problem with publishing the unit tests results and they are now showing up inside TFS.
I was following the Creating Simulation Platforms to Test Embedded Code without Hardware tutorial which recommends to run /listtests using .<span class=”crayon-i”>vgdbcmake. I have attached a sample project with the issue including the used command line and output. The only difference between “listtests fail.txt” and “listtests success.txt” is that add_bsp_based_executable(…) in CMakeLists.txt was commented out.</span>
Thanks!
Attachments:
You must be logged in to view attached files.bbrParticipantThanks, this build solves the issue.
bbrParticipantHi,
I am using Visual Studio Professional 2019 version 16.8.2.
I did the steps you recommend but unfortunately the View->Output->Tests keeps empty after clearing it.
Regards,
Bernhard
bbrParticipantHi,
Thank you for your explanations. I will try them out and test if they could work for us.
Regarding the test explorer: The progress indicator is shown when the build starts and disappears before the build is finished. The Output->Test view does only show the test discovery after opening the solution. During or after the build Output->Test is not updated. Please let me know if I can provide any further information on this.
Thanks,
Bernhard
-
AuthorPosts