Forum Replies Created
-
AuthorPosts
-
Seidleroni
ParticipantJust in case someone needs this information in the future, what I did was this:
Command: cmd.exe
Arguments: /c py -3 “\_build\pre_build.py” (or whatever/wherever your python script is)
The “/c” is essentially telling the command line to execute the string passed to it. In this way, it will search PATH for py.exe
Seidleroni
ParticipantThat fixed it, thank you!
Seidleroni
ParticipantI was clicking around and got Clang Intellisense to crash. The minidump is attached.
-
This reply was modified 1 year, 7 months ago by
Seidleroni.
Attachments:
You must be logged in to view attached files.August 2, 2022 at 12:16 in reply to: Clang Intellisense: Cannot connect to the smart tag backend. #32939Seidleroni
ParticipantThanks for the tip, following the instructions for Resetting Cache did the trick.
Seidleroni
ParticipantWhat are the pro/cons of using Advanced CMake rather than MSBuild? I thought VisualGDB prefers people to use MSBuild for embedded applications, is that no longer the case?
-
This reply was modified 4 years, 4 months ago by
Seidleroni.
Seidleroni
ParticipantFair point. For someone (or me!) who is looking at this in the future, TeamCity sets a bunch of environment variables by itself, so the pre-build step can inspect to see if the environment variable exists or not, and use that. TeamCity sets BUILD_NUMBER to the build number as well as other variables that may be useful such as the commit hash, project name, etc. To see what is available, have the build server send “set” so the log will contain all the environment variables.
Seidleroni
ParticipantHow would this be done, then? I have my Build Server pre-build step that executes a command line to say “set BUILDVER=5”, but when it calls msbuild, wouldn’t that environment variable no longer be active since its in a separate command line window because it is a separate build step?
-
This reply was modified 4 years, 5 months ago by
Seidleroni.
Seidleroni
ParticipantAfter spending an inordinate amount of time on this, I fixed the issue by deleting my PreBuild action and then recreating it. Attached is an image comparing the vgdbsettings file change that made it happen. What could cause this? Is this just a stupid error on my part?
Attachments:
You must be logged in to view attached files.Seidleroni
ParticipantSo by doing this, here is the hierarchy and breakdown:
- devenv.exe (Path is present)
- MSBuild.exe (Path is *not present*)
- vgagent.exe (Path is *not present*)
- cmd.exe (Path is *not present*)
- notepad.exe (Path is *not present*)
- cmd.exe (Path is *not present*)
- vgagent.exe (Path is *not present*)
- MSBuild.exe (Path is *not present*)
What are the next steps to work around this?
Seidleroni
ParticipantNone of the other variables get overridden, just ‘path’ which is now empty. I noticed that if I open the project via Visual Studio (Start–>Visual Studio 2017, and then doing File->Open->Solution), I now have access to ‘path’. If I have *never* opened it that way, but only just opened it by double-clicking the solution, then the path is missing.
Way to reproduce (for me):
- Take a working project
- Copy and paste the project (so it creates a new folder. can be in the same directory.)
- Double-click the solution
- Create a pre-build batch file that just has “set” or “python -h” in it.
- Build the project
- The project will not show path as a system env variable. It will also complain about not being able to find python (due to missing path).
- Open Visual Studio Start->Visual Studio 2017
- Open solution
- Build project again. Now you will see that it does have the path variable and “python -h” shows the appropriate python help info.
Can you reproduce it with this? You can try one of your own projects, but be sure to do a copy/paste.
-
This reply was modified 5 years, 4 months ago by
Seidleroni.
Seidleroni
ParticipantIn case someone comes across this in the future like I did, here is what you need to do:
-Include the cmsis_os.c/.h files from “\Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS”
-Add the port.c and portmacro.h files from “\Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM7\r0p1”
February 18, 2019 at 14:40 in reply to: Why Can One Only Rename Variables When Selecting Declaration? #23891Seidleroni
ParticipantI understand, but I hope you do add it in the future as it would be very very useful.
Seidleroni
ParticipantAwesome, new build works great. The syntax highlighting as part of variable renaming preview is not that big of a deal.
Seidleroni
ParticipantI just submitted the PO so it should be renewed today or tomorrow. I fixed the issue by uninstalling/reinstalling visual studio and then VisualGDB. Just reinstalling VS didn’t fix it for some reason. I also deleted and reinstalled all the VGDB packages as well. Now it is all set.
Seidleroni
ParticipantI tried using a Nucleo board with the onboard ST Link and I am having the same problem (working on desktop, not on laptop). Is there anything that is PC specific that could allow programming to work but not Fast Semihosting? I didn’t mention it before, but I am able to run the project without a problem if I comment out my printf statements.
-
This reply was modified 1 year, 7 months ago by
-
AuthorPosts