Sysprogs forums › Forums › VisualGDB › Installing VisualGDB 5.2 Preview 1 changes a lot of settings
- This topic has 18 replies, 2 voices, and was last updated 8 years, 6 months ago by
support.
-
AuthorPosts
-
July 27, 2016 at 19:03 #8716
CurtisHx
ParticipantI installed VisualGDB 5.2 Preview 1 this morning, and a lot of settings have been changed automatically. Code formatting was completely changed (uses tabs instead of spaces, tab size, ect). In addition, any project created with a previous version of VisualGDB will switch to using Clang-based IntelliSense when opened in 5.2 Preview 1. They were set to use the default Visual Studio Intellisense. I’ll keep updating this as I come across other settings.
July 28, 2016 at 05:13 #8719support
KeymasterHi,
VisualGDB 5.2 changed the internal settings engine to a new hierarchical one, so it will indeed not import some of the settings from the older version. However this will happen only once; after you change the settings again, VisualGDB 5.2 and all subsequent versions will use them.
Regarding the old projects, they got switched to Clang IntelliSense because the global “default engine” setting got reset to it. Please change it back via Tools->Options->VisualGDB and the projects will open under the VS IntelliSense again.
July 28, 2016 at 14:36 #8720CurtisHx
ParticipantAre there plans to add a migration for the 5.2 release? Having settings get changed out from underneath you is really annoying.
July 28, 2016 at 17:52 #8721support
KeymasterHi,
Currently not as it only affects the global settings (not per-project settings), so the change needs to be done only once. We will monitor the feedback on this and consider adding automatic settings conversion.
August 4, 2016 at 15:32 #8740CurtisHx
ParticipantI’m running across another problem where Visual Studio’s Intellisense is just… not working with the C standard headers. I have $(ARM_TOOLCHAIN_ROOT)\lib\bcc\arm-eabi\5.3.0\include as one of the directories under IntelliSense Settings. The full path is valid and contains the standard headers I need (stdint and stdbool), assuming $(ARM_TOOLCHAIN_ROOT) points to C:\SysGCC\arm-eabi.
Also, VisualGDB keeps overwriting the IntelliSense preprocessor definitions. I would like that list to include “NRF52” so the header chain for the Nordic NRF52 works correctly with IntelliSense.
August 4, 2016 at 15:39 #8741CurtisHx
ParticipantI took a closer look at the IntelliSense problem: It would appear that IntelliSense is not picking up the ARM_TOOLCHAIN_ROOT variable, or any of VisualGDB’s variables for that matter. I tried changing all of the references to TOOLCHAIN_ROOT with the same results.
August 4, 2016 at 18:59 #8745support
KeymasterThe environment variables will only be picked up if you are using Clang IntelliSense. Are you using the default VS one?
August 4, 2016 at 20:06 #8747CurtisHx
ParticipantWe are using the default Visual Studio intellisense.
August 5, 2016 at 19:20 #8750support
KeymasterHi,
The default VS IntelliSense won’t indeed pick up the VisualGDB variables like TOOLCHAIN_ROOT, however it should pick up the environment variables like ARM_TOOLCHAIN. If it does not, please open VS Project Properties, go to the NMake page, select “Include Search Path -> Edit” and then click “Macros” and check for the environment variables pointing to your toolchain directory.
August 9, 2016 at 16:25 #8761CurtisHx
ParticipantARM_TOOLCHAIN is not in the available macros.
August 9, 2016 at 16:34 #8762CurtisHx
ParticipantAlso, how can I add “NRF52” to the __VisualGDB_CFG_Release and __VisualGDB_CFG_Debug preprocessor definition? The include header chain doesn’t work properly without that definition, and VisualGDB keeps overwriting any changes I make to the “Processor Definitions” in the IntelliseSense settings.
August 10, 2016 at 04:42 #8765support
KeymasterHi,
Does ARM_TOOLCHAIN expand properly when you open cmd.exe and run “echo %ARM_TOOLCHAIN%”? If not, perhaps the toolchain is not configured as relocatable on that computer? You can mark it as relocatable via Tools->Embedded Tools Manager.
You can add the NRF52 macro directly to the Preprocessor Macros field on the Build Settings page. This will affect both building and IntelliSense.
August 11, 2016 at 17:45 #8772CurtisHx
ParticipantWhere’s the Embedded Tools Manager? It is not under Visual Studio -> Tools menu.
August 11, 2016 at 18:04 #8773support
KeymasterHi,
If you are using version 5.2, it has been renamed to “Manage VisualGDB Packages”.
August 15, 2016 at 15:50 #8859CurtisHx
ParticipantAlright. Found that.
On another note: Is there a way to force VisualGDB to use the existing C/C++ Code Formatting? We have solutions that create Windows applications and Embedded apps, and our devs want to be able to format both kinds of projects with the same formating. Currently, if you make a change in one, you have to manually update the other.
-
AuthorPosts
- You must be logged in to reply to this topic.