2 issues with new version

Sysprogs forums Forums VisualGDB 2 issues with new version

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #12651
    rohmer
    Participant
    1. So, there has been a toolchain update.  All projects updated, but one.  See TC1 and TC2.  I did the same thing for this one that I did the others.  I assume I can edit the vdbsettings file, but this is kinda annoying
    2. Every time I open the project it asks for an “Upgrade” the projects.  I have saved projects, etc.  But I get this popup EVERY time.  See Upgrade.PNG

     

    Attachments:
    You must be logged in to view attached files.
    #12658
    support
    Keymaster

    Hi,

    It looks like VisualGDB did not manage to save one project file after modifying it (TC2.jpg). This sometimes happens if the project is not loaded correctly in the Solution Explorer, or if some other bug prevents it from being saved. Could you try locating the project that fails to update (e.g. by checking which of the projects did not get modified)? Does excluding it from solution solve the problem? If yes, could you compare that .vcxproj file with other .vxcproj files to see if some manual modifications could be causing this?

    This problem also sometimes happens when you try pressing ‘upgrade’ while VS is still loading the projects, so simply waiting 10-15 seconds before pressing it may help.

    With ‘missing toolchain ID’, the logic responsible for fixing it could get interrupted by broken toolchain updating process, so once you resolve problem #1, the problem #2 should get automatically resolved as well.

    #12676
    rohmer
    Participant

    Ok, I tried pausing (For like 10 minutes) didnt work.

     

    Another oddity, the “Convert to MS Build” option isnt available on any of my projects 🙁

     

    #12677
    support
    Keymaster

    Hi,

    Thanks for checking this. If waiting for 10 minutes does not help, looks like we will need further information from your in order to resolve it. Please try following the instructions from the first part of the previous reply.

    Regarding the ‘convert to MSBuild’, please try attaching a screenshot of your VisualGDB Project Properties window so that we could check for common problems.

    #12682
    rohmer
    Participant

    Attached are the screenies.

     

    Would deleting the vdgsettings file allow me to recreate them, or would it break everything?

    Attachments:
    You must be logged in to view attached files.
    #12693
    support
    Keymaster

    Hi,

    The screenshots look OK, so it’s hard to say what is causing this. You can try holding SHIFT while right-clicking on the project – this will force all VisualGDB menu commands to appear.

    Deleting .vgdbsettings files unfortunately won’t help as this will lose all VisualGDB settings associated with the project. Re-creating the project via the wizard and comparing the .vxcproj and .vgdbsettings files via a diff tool might help through.

    We understand this is annoying and we will try to help you resolve it ASAP, so please follow the steps below to isolate it:

    • Can you locate a specific project that fails to upgrade? If yes, what happens if you move add it to an empty solution (so that the solution will only have 1 project)?
    • If the project still fails to upgrade, please locate a similar project that works, add it to another empty solution and double-check that it works. Then compare the .vxcproj files and .vgdbsettings files for the working and non-working project. If you don’t see anything out of the ordinary, please attach the files here (or send them via our support form) and we will check for common issues.
    #12705
    rohmer
    Participant

    Ok, when I do the shift, I get a popup that says “The project contains no configurations that can be converted to MSBuild”

    #12706
    rohmer
    Participant

    Here are some examples of files that wont upgrade:

    RobotLib.vgbsettings:

    <?xml version="1.0" encoding="utf-8"?>
     <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     <PropertyGroup />
     </Project>

    RobotLib-Debug.vgdbsettings:

    <?xml version="1.0"?>
     <VisualGDBCommonSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <TestFrameworkID>com.sysprogs.unittest.CppUTest</TestFrameworkID>
     <TestFrameworkSubdirectory>TestFramework</TestFrameworkSubdirectory>
     <TestFrameworkSettings>
     <Entries />
     </TestFrameworkSettings>
     </VisualGDBCommonSettings>

    Now my release is very different:

    <?xml version="1.0"?>
     <VisualGDBProjectSettings2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <ConfigurationName>Release</ConfigurationName>
     <Project xsi:type="com.visualgdb.project.linux">
     <CustomSourceDirectories>
     <Directories />
     <PathStyle>MinGWUnixSlash</PathStyle>
     </CustomSourceDirectories>
     <DeploymentHost>
     <HostName>192.168.2.43</HostName>
     <Transport>SSH</Transport>
     <UserName>root</UserName>
     </DeploymentHost>
     <AllowChangingHostForMainCommands>false</AllowChangingHostForMainCommands>
     <SkipBuildIfNoSourceFilesChanged>false</SkipBuildIfNoSourceFilesChanged>
     <IgnoreFileTransferErrors>false</IgnoreFileTransferErrors>
     <RemoveRemoteDirectoryOnClean>false</RemoveRemoteDirectoryOnClean>
     <SkipDeploymentTests>false</SkipDeploymentTests>
     <MainSourceDirectoryForLocalBuilds>$(ProjectDir)</MainSourceDirectoryForLocalBuilds>
     </Project>
     <Build xsi:type="com.visualgdb.build.msbuild">
     <ToolchainID>
     <ID>com.visualgdb.raspberry_pi</ID>
     <Version>
     <GCC>4.9.2</GCC>
     <GDB>7.7.1</GDB>
     <Revision>4</Revision>
     </Version>
     </ToolchainID>
     <Toolchain>
     <UnixSystem>false</UnixSystem>
     <AdditionalPathDirectories>
     <string>C:\SysGCC\raspberry\bin</string>
     </AdditionalPathDirectories>
     <RequireCtrlBreak>false</RequireCtrlBreak>
     <SourceDirMapping>
     <Directories />
     <PathStyle>MinGWUnixSlash</PathStyle>
     </SourceDirMapping>
     <Name>Raspberry PI</Name>
     <UniqueID>com.visualgdb.raspberry_pi</UniqueID>
     <Location>C:\SysGCC\raspberry</Location>
     <GCC>C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gcc.exe</GCC>
     <GXX>C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-g++.exe</GXX>
     <GDB>C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-gdb.exe</GDB>
     <AR>C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-ar.exe</AR>
     <OBJCOPY>C:\SysGCC\raspberry\bin\arm-linux-gnueabihf-objcopy.exe</OBJCOPY>
     <Make>C:\SysGCC\raspberry\bin\make.exe</Make>
     <UseCygwinBash>false</UseCygwinBash>
     </Toolchain>
     <ProjectFile>RobotLib.vcxproj</ProjectFile>
     <ParallelJobCount>0</ParallelJobCount>
     <SuppressDirectoryChangeMessages>true</SuppressDirectoryChangeMessages>
     </Build>
     <Debug xsi:type="com.visualgdb.debug.remote">
     <AdditionalStartupCommands />
     <AdditionalGDBSettings>
     <Features>
     <DisableAutoDetection>false</DisableAutoDetection>
     <UseFrameParameter>false</UseFrameParameter>
     <SimpleValuesFlagSupported>false</SimpleValuesFlagSupported>
     <ListLocalsSupported>false</ListLocalsSupported>
     <ByteLevelMemoryCommandsAvailable>false</ByteLevelMemoryCommandsAvailable>
     <ThreadInfoSupported>false</ThreadInfoSupported>
     <PendingBreakpointsSupported>false</PendingBreakpointsSupported>
     <SupportTargetCommand>false</SupportTargetCommand>
     <ReliableBreakpointNotifications>false</ReliableBreakpointNotifications>
     </Features>
     <EnableSmartStepping>false</EnableSmartStepping>
     <FilterSpuriousStoppedNotifications>false</FilterSpuriousStoppedNotifications>
     <ForceSingleThreadedMode>false</ForceSingleThreadedMode>
     <UseAppleExtensions>false</UseAppleExtensions>
     <CanAcceptCommandsWhileRunning>false</CanAcceptCommandsWhileRunning>
     <MakeLogFile>false</MakeLogFile>
     <IgnoreModuleEventsWhileStepping>true</IgnoreModuleEventsWhileStepping>
     <UseRelativePathsOnly>false</UseRelativePathsOnly>
     <ExitAction>None</ExitAction>
     <DisableDisassembly>false</DisableDisassembly>
     <ExamineMemoryWithXCommand>false</ExamineMemoryWithXCommand>
     <StepIntoNewInstanceEntry>main</StepIntoNewInstanceEntry>
     <ExamineRegistersInRawFormat>true</ExamineRegistersInRawFormat>
     <DisableSignals>false</DisableSignals>
     <EnableAsyncExecutionMode>false</EnableAsyncExecutionMode>
     <EnableNonStopMode>false</EnableNonStopMode>
     </AdditionalGDBSettings>
     <LaunchGDBSettings xsi:type="GDBLaunchParametersNewInstance">
     <GDBEnvironment>
     <Records>
     <Record>
     <VariableName>LANG</VariableName>
     <Value>en_US.UTF-8</Value>
     </Record>
     <Record>
     <VariableName>PATH</VariableName>
     <Value>C:\SysGCC\raspberry\bin;%PATH%</Value>
     </Record>
     </Records>
     <EnvironmentSetupFiles />
     </GDBEnvironment>
     <DebuggedProgram>$(TargetPath)</DebuggedProgram>
     <GDBServerPort>2000</GDBServerPort>
     <ProgramArguments />
     </LaunchGDBSettings>
     <GenerateCtrlBreakInsteadOfCtrlC>false</GenerateCtrlBreakInsteadOfCtrlC>
     <DeploymentTargetPath>/tmp/$(TargetFileName)</DeploymentTargetPath>
     <X11WindowMode>Local</X11WindowMode>
     <KeepConsoleAfterExit>false</KeepConsoleAfterExit>
     <RunGDBUnderSudo>false</RunGDBUnderSudo>
     <DeploymentMode>Auto</DeploymentMode>
     <DeployWhenLaunchedWithoutDebugging>true</DeployWhenLaunchedWithoutDebugging>
     <SuppressTTYCreation>false</SuppressTTYCreation>
     </Debug>
     <CustomBuild>
     <PreSyncActions />
     <PreBuildActions />
     <PostBuildActions />
     <PreCleanActions />
     <PostCleanActions />
     </CustomBuild>
     <CustomDebug>
     <PreDebugActions />
     <PostDebugActions />
     <DebugStopActions />
     <BreakMode>Default</BreakMode>
     </CustomDebug>
     <CustomShortcuts>
     <Shortcuts />
     <ShowMessageAfterExecuting>true</ShowMessageAfterExecuting>
     </CustomShortcuts>
     <UserDefinedVariables />
     <ImportedPropertySheets />
     <CodeSense>
     <Enabled>Unknown</Enabled>
     <ExtraSettings>
     <HideErrorsInSystemHeaders>true</HideErrorsInSystemHeaders>
     <SupportLightweightReferenceAnalysis>false</SupportLightweightReferenceAnalysis>
     </ExtraSettings>
     <CodeAnalyzerSettings>
     <Enabled>false</Enabled>
     </CodeAnalyzerSettings>
     </CodeSense>
     <BuildContextDirectory>VisualGDB\VisualGDBCache</BuildContextDirectory>
     </VisualGDBProjectSettings2>
    • This reply was modified 6 years, 6 months ago by support. Reason: formatting
    #12707
    rohmer
    Participant

    Sorry, there was a mistake, RobotLib-Debug is:

    <?xml version="1.0"?>
     <VisualGDBProjectSettings2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <ConfigurationName>Debug</ConfigurationName>
     <Project xsi:type="com.visualgdb.project.linux">
     <CustomSourceDirectories>
     <Directories />
     <PathStyle>MinGWUnixSlash</PathStyle>
     </CustomSourceDirectories>
     <BuildHost>
     <Transport>None</Transport>
     </BuildHost>
     <DeploymentHost>
     <HostName>192.168.1.140</HostName>
     <Transport>SSH</Transport>
     <UserName>pi</UserName>
     </DeploymentHost>
     <MainSourceTransferCommand>
     <SkipWhenRunningCommandList>false</SkipWhenRunningCommandList>
     <RemoteHost>
     <Transport>None</Transport>
     </RemoteHost>
     <LocalDirectory>$(ProjectDir)</LocalDirectory>
     <RemoteDirectory>/tmp/VisualGDB/$(ProjectDirUnixStyle)</RemoteDirectory>
     <FileMasks>
     <string>*.cpp</string>
     <string>*.h</string>
     <string>*.hpp</string>
     <string>*.c</string>
     <string>*.cc</string>
     <string>*.cxx</string>
     <string>*.mak</string>
     <string>Makefile</string>
     <string>*.txt</string>
     <string>*.cmake</string>
     </FileMasks>
     <TransferNewFilesOnly>true</TransferNewFilesOnly>
     <IncludeSubdirectories>true</IncludeSubdirectories>
     <SelectedDirectories />
     <DeleteDisappearedFiles>false</DeleteDisappearedFiles>
     <ApplyGlobalExclusionList>true</ApplyGlobalExclusionList>
     </MainSourceTransferCommand>
     <AllowChangingHostForMainCommands>false</AllowChangingHostForMainCommands>
     <SkipBuildIfNoSourceFilesChanged>false</SkipBuildIfNoSourceFilesChanged>
     <IgnoreFileTransferErrors>false</IgnoreFileTransferErrors>
     <RemoveRemoteDirectoryOnClean>false</RemoveRemoteDirectoryOnClean>
     <SkipDeploymentTests>false</SkipDeploymentTests>
     <MainSourceDirectoryForLocalBuilds>$(ProjectDir)</MainSourceDirectoryForLocalBuilds>
     </Project>
     <Build xsi:type="com.visualgdb.build.make">
     <ToolchainID>
     <ID>com.visualgdb.raspberry_pi</ID>
     <Version>
     <GCC>6.3.0</GCC>
     <GDB>7.12</GDB>
     <Revision>1</Revision>
     </Version>
     </ToolchainID>
     <MakeFilePathRelativeToSourceDir>Makefile</MakeFilePathRelativeToSourceDir>
     <MakeConfigurationName>Debug</MakeConfigurationName>
     <AdditionalMakeArguments />
     <MakeCommandTemplate>
     <SkipWhenRunningCommandList>false</SkipWhenRunningCommandList>
     <RemoteHost>
     <HostName>BuildMachine</HostName>
     <Transport>BuiltinShortcut</Transport>
     </RemoteHost>
     <Command>$(ToolchainMake)</Command>
     <Arguments>$(ToolchainMakeArgs)</Arguments>
     <WorkingDirectory>$(BuildDir)</WorkingDirectory>
     <BackgroundMode xsi:nil="true" />
     </MakeCommandTemplate>
     </Build>
     <Debug xsi:type="com.visualgdb.debug.remote">
     <AdditionalStartupCommands />
     <AdditionalGDBSettings>
     <Features>
     <DisableAutoDetection>false</DisableAutoDetection>
     <UseFrameParameter>false</UseFrameParameter>
     <SimpleValuesFlagSupported>false</SimpleValuesFlagSupported>
     <ListLocalsSupported>false</ListLocalsSupported>
     <ByteLevelMemoryCommandsAvailable>false</ByteLevelMemoryCommandsAvailable>
     <ThreadInfoSupported>false</ThreadInfoSupported>
     <PendingBreakpointsSupported>false</PendingBreakpointsSupported>
     <SupportTargetCommand>false</SupportTargetCommand>
     <ReliableBreakpointNotifications>false</ReliableBreakpointNotifications>
     </Features>
     <EnableSmartStepping>false</EnableSmartStepping>
     <FilterSpuriousStoppedNotifications>false</FilterSpuriousStoppedNotifications>
     <ForceSingleThreadedMode>false</ForceSingleThreadedMode>
     <UseAppleExtensions>false</UseAppleExtensions>
     <CanAcceptCommandsWhileRunning>false</CanAcceptCommandsWhileRunning>
     <MakeLogFile>false</MakeLogFile>
     <IgnoreModuleEventsWhileStepping>true</IgnoreModuleEventsWhileStepping>
     <UseRelativePathsOnly>false</UseRelativePathsOnly>
     <ExitAction>None</ExitAction>
     <DisableDisassembly>false</DisableDisassembly>
     <ExamineMemoryWithXCommand>false</ExamineMemoryWithXCommand>
     <StepIntoNewInstanceEntry>main</StepIntoNewInstanceEntry>
     <ExamineRegistersInRawFormat>true</ExamineRegistersInRawFormat>
     <DisableSignals>false</DisableSignals>
     <EnableAsyncExecutionMode>false</EnableAsyncExecutionMode>
     <EnableNonStopMode>false</EnableNonStopMode>
     </AdditionalGDBSettings>
     <LaunchGDBSettings xsi:type="GDBLaunchParametersNewInstance">
     <DebuggedProgram>$(TargetPath)</DebuggedProgram>
     <GDBServerPort>1996</GDBServerPort>
     <ProgramArguments />
     </LaunchGDBSettings>
     <GenerateCtrlBreakInsteadOfCtrlC>false</GenerateCtrlBreakInsteadOfCtrlC>
     <DeploymentTargetPath>/tmp/$(TargetFileName)</DeploymentTargetPath>
     <X11WindowMode>Local</X11WindowMode>
     <KeepConsoleAfterExit>false</KeepConsoleAfterExit>
     <RunGDBUnderSudo>false</RunGDBUnderSudo>
     <DeploymentMode>Always</DeploymentMode>
     <LdLibraryPath />
     <DeployWhenLaunchedWithoutDebugging>true</DeployWhenLaunchedWithoutDebugging>
     <SuppressTTYCreation>false</SuppressTTYCreation>
     </Debug>
     <CustomBuild>
     <PreSyncActions />
     <PreBuildActions />
     <PostBuildActions />
     <PreCleanActions />
     <PostCleanActions />
     </CustomBuild>
     <CustomDebug>
     <PreDebugActions />
     <PostDebugActions />
     <DebugStopActions />
     <BreakMode>Default</BreakMode>
     </CustomDebug>
     <CustomShortcuts>
     <Shortcuts />
     <ShowMessageAfterExecuting>true</ShowMessageAfterExecuting>
     </CustomShortcuts>
     <UserDefinedVariables />
     <ImportedPropertySheets />
     <CodeSense>
     <Enabled>True</Enabled>
     <CFLAGS />
     <CXXFLAGS />
     <ExternalSourceFileList />
     <ExtraSettings>
     <HideErrorsInSystemHeaders>true</HideErrorsInSystemHeaders>
     <SupportLightweightReferenceAnalysis>false</SupportLightweightReferenceAnalysis>
     <DiscoverySettings>
     <Mode>Silent</Mode>
     <SearchInProjectDir>true</SearchInProjectDir>
     <SearchInSourceDirs>true</SearchInSourceDirs>
     <SearchInIncludeSubdirs>true</SearchInIncludeSubdirs>
     <IgnoredDirs />
     <IgnoredHeaders />
     </DiscoverySettings>
     </ExtraSettings>
     <CodeAnalyzerSettings>
     <Enabled>true</Enabled>
     <SelectedAnalyzers>
     <string>alpha.core.BoolAssignment</string>
     <string>core.builtin.BuiltinFunctions</string>
     <string>core.builtin.NoReturnFunctions</string>
     <string>core.CallAndMessage</string>
     <string>core.DivideZero</string>
     <string>core.DynamicTypePropagation</string>
     <string>core.NonNullParamChecker</string>
     <string>core.NullDereference</string>
     <string>core.StackAddressEscape</string>
     <string>core.UndefinedBinaryOperatorResult</string>
     <string>core.uninitialized.ArraySubscript</string>
     <string>core.uninitialized.Assign</string>
     <string>core.uninitialized.Branch</string>
     <string>core.uninitialized.CapturedBlockVariable</string>
     <string>core.uninitialized.UndefReturn</string>
     <string>core.VLASize</string>
     <string>cplusplus.NewDelete</string>
     <string>cplusplus.NewDeleteLeaks</string>
     <string>deadcode.DeadStores</string>
     <string>nullability.NullPassedToNonnull</string>
     <string>nullability.NullReturnedFromNonnull</string>
     <string>security.insecureAPI.getpw</string>
     <string>security.insecureAPI.gets</string>
     <string>security.insecureAPI.mkstemp</string>
     <string>security.insecureAPI.mktemp</string>
     <string>security.insecureAPI.UncheckedReturn</string>
     <string>security.insecureAPI.vfork</string>
     <string>unix.API</string>
     <string>unix.cstring.BadSizeArg</string>
     <string>unix.cstring.NullArg</string>
     <string>unix.Malloc</string>
     <string>unix.MallocSizeof</string>
     <string>unix.MismatchedDeallocator</string>
     <string>unix.Vfork</string>
     </SelectedAnalyzers>
     <ExtraArguments>
     <string>-analyzer-store=region</string>
     <string>-analyzer-opt-analyze-nested-blocks</string>
     <string>-analyzer-eagerly-assume</string>
     </ExtraArguments>
     </CodeAnalyzerSettings>
     </CodeSense>
     <BuildContextDirectory>VisualGDB\VisualGDBCache</BuildContextDirectory>
     <CommonSettingsFile>RobotLib.vgdbsettings</CommonSettingsFile>
     </VisualGDBProjectSettings2>
    • This reply was modified 6 years, 6 months ago by support. Reason: formatting
    #12713
    support
    Keymaster

    Hi,

    The RobotLib.vgbsettings file looks wrong (it looked like an empty .vcxproj file); we also did not see your actual .vcxproj file. Please try archiving all project files (except for the actual .c/.cpp/.h files) and either attach them here or send them via our support form so that we could have a look.

    #12717
    rohmer
    Participant

    The project is open source and at https://github.com/rohmer/PiMower

    All the files are in there.

    Thanks!

    Ron

    #12724
    support
    Keymaster

    Hi,

    Thanks for the link. Looks like you are using the ‘VisualGDB’ platform for non-MSBuild projects. Unfortunately this is not supported (as VisualGDB internally uses the platform name to distinguish between MSBuild and non-MSBuild configurations). We have added a warning for this in the upcoming v5.3R4 build.

    To fix this, please rename the ‘VisualGDB’ platform in your project files to ‘x86’ or ‘Win32’ (depending on the VS version you are using).

    We have also noticed that you are using CMake. VisualGDB 5.3 comes with a very powerful Advanced CMake Project Subsystem that basically creates a 2-way mapping between CMakeLists.txt files and the Solution Explorer (see this tutorial). We would advise switching to this subsystem (VisualGDB supports importing Embedded CMake projects) as it provides much better user experience with CMake.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.