Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. When selecting a version in VS 2022 QT TOOLS it doesn stick
Forum Updated to NodeBB v4.3 + New Features

When selecting a version in VS 2022 QT TOOLS it doesn stick

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shinzef
    wrote on last edited by
    #1

    For example:
    17de9141-3281-4f2b-838c-93295f007479-image.png

    Then i select ok

    d06ea07a-575e-4119-86fa-cd39982f98fa-image.png

    Now its gone

    JonBJ 1 Reply Last reply
    0
    • S shinzef

      For example:
      17de9141-3281-4f2b-838c-93295f007479-image.png

      Then i select ok

      d06ea07a-575e-4119-86fa-cd39982f98fa-image.png

      Now its gone

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @shinzef
      Hello and welcome.

      The "red no-entry" sign you see against your (attempted) choice of Qt 6.3.1... indicates there is a fatal problem with this. I forget how, but can you get more information out of that screen? E.g. if you hover the mouse over that attempted version/no-entry sign does it tell you more about what the issue is?

      S 1 Reply Last reply
      0
      • JonBJ JonB

        @shinzef
        Hello and welcome.

        The "red no-entry" sign you see against your (attempted) choice of Qt 6.3.1... indicates there is a fatal problem with this. I forget how, but can you get more information out of that screen? E.g. if you hover the mouse over that attempted version/no-entry sign does it tell you more about what the issue is?

        S Offline
        S Offline
        shinzef
        wrote on last edited by
        #3

        @JonB Hello and thanks for the reply. I tried doing the thing u asked me and there's no popup or any text at all. And i tried to click the red no entry sign but that just results in that version getting removed. I think that sign is used to remove versions.

        JonBJ 1 Reply Last reply
        0
        • S shinzef

          @JonB Hello and thanks for the reply. I tried doing the thing u asked me and there's no popup or any text at all. And i tried to click the red no entry sign but that just results in that version getting removed. I think that sign is used to remove versions.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @shinzef said in When selecting a version in VS 2022 QT TOOLS it doesn stick:

          I think that sign is used to remove versions.

          My apologies, I suspect you are correct on this....

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            This is a strange issue, and others have reported it before: https://bugreports.qt.io/browse/QTVSADDINBUG-806 There is no definite fix for it yet, but see the comments for some workarounds.

            @shinzef said in When selecting a version in VS 2022 QT TOOLS it doesn stick:

            I think that sign is used to remove versions.

            Yes, that is right.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            S 1 Reply Last reply
            0
            • JKSHJ JKSH

              This is a strange issue, and others have reported it before: https://bugreports.qt.io/browse/QTVSADDINBUG-806 There is no definite fix for it yet, but see the comments for some workarounds.

              @shinzef said in When selecting a version in VS 2022 QT TOOLS it doesn stick:

              I think that sign is used to remove versions.

              Yes, that is right.

              S Offline
              S Offline
              shinzef
              wrote on last edited by
              #6

              @JKSH
              I tried to do the workarounds in that post but nothing works.

              Here's the output when i select a version:

              vcvars: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
              Exception "Illegal characters in path.":
              at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
              at System.IO.Path.Combine(String path1, String path2)
              at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
              at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
              at QtVsTools.Core.HelperFunctions.SetVCVars(VersionInformation VersionInfo, ProcessStartInfo startInfo)
              at QtVsTools.Core.QMake.Run(Boolean setVCVars)
              Error reading VS project settings

              Stacktrace:
              at QtVsTools.Core.VersionInformation..ctor(String qtDirIn)
              at QtVsTools.Core.VersionInformation.Get(String qtDir)
              at QtVsTools.Options.QtVersionsPage.SaveSettingsToStorage() in C:\dev\source\qtlabs\vstools\QtVsTools.Package\Options\QtVersionsPage.cs:line 117
              Cannot delete a subkey tree because the subkey does not exist.

              Stacktrace:
              at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
              at Microsoft.Win32.RegistryKey.DeleteSubKey(String subkey, Boolean throwOnMissingSubKey)
              at QtVsTools.Core.QtVersionManager.RemoveVersion(String versionName)
              at QtVsTools.Options.QtVersionsPage.<SaveSettingsToStorage>g__RemoveVersion|10_0(String versionName) in C:\dev\source\qtlabs\vstools\QtVsTools.Package\Options\QtVersionsPage.cs:line 95

              S 1 Reply Last reply
              0
              • S shinzef

                @JKSH
                I tried to do the workarounds in that post but nothing works.

                Here's the output when i select a version:

                vcvars: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
                Exception "Illegal characters in path.":
                at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
                at System.IO.Path.Combine(String path1, String path2)
                at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
                at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
                at QtVsTools.Core.HelperFunctions.SetVCVars(VersionInformation VersionInfo, ProcessStartInfo startInfo)
                at QtVsTools.Core.QMake.Run(Boolean setVCVars)
                Error reading VS project settings

                Stacktrace:
                at QtVsTools.Core.VersionInformation..ctor(String qtDirIn)
                at QtVsTools.Core.VersionInformation.Get(String qtDir)
                at QtVsTools.Options.QtVersionsPage.SaveSettingsToStorage() in C:\dev\source\qtlabs\vstools\QtVsTools.Package\Options\QtVersionsPage.cs:line 117
                Cannot delete a subkey tree because the subkey does not exist.

                Stacktrace:
                at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
                at Microsoft.Win32.RegistryKey.DeleteSubKey(String subkey, Boolean throwOnMissingSubKey)
                at QtVsTools.Core.QtVersionManager.RemoveVersion(String versionName)
                at QtVsTools.Options.QtVersionsPage.<SaveSettingsToStorage>g__RemoveVersion|10_0(String versionName) in C:\dev\source\qtlabs\vstools\QtVsTools.Package\Options\QtVersionsPage.cs:line 95

                S Offline
                S Offline
                shinzef
                wrote on last edited by
                #7

                @shinzef
                So i reinstalled vs 2022

                vcvars: C:\MicrosoftVS2022\VC\Auxiliary\Build\vcvars64.bat
                Exception "Illegal characters in path.":
                at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
                at System.IO.Path.Combine(String path1, String path2)
                at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
                at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
                at QtVsTools.Core.HelperFunctions.SetVCVars(VersionInformation VersionInfo, ProcessStartInfo startInfo)
                at QtVsTools.Core.QMake.Run(Boolean setVCVars)
                Error reading VS project settings

                JKSHJ 1 Reply Last reply
                0
                • S shinzef

                  @shinzef
                  So i reinstalled vs 2022

                  vcvars: C:\MicrosoftVS2022\VC\Auxiliary\Build\vcvars64.bat
                  Exception "Illegal characters in path.":
                  at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
                  at System.IO.Path.Combine(String path1, String path2)
                  at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
                  at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
                  at QtVsTools.Core.HelperFunctions.SetVCVars(VersionInformation VersionInfo, ProcessStartInfo startInfo)
                  at QtVsTools.Core.QMake.Run(Boolean setVCVars)
                  Error reading VS project settings

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  @shinzef said in When selecting a version in VS 2022 QT TOOLS it doesn stick:

                  Exception "Illegal characters in path.":

                  Hmm... I don't know, sorry. You're not alone though: https://stackoverflow.com/questions/72007362/why-does-qt-vs-tools-throw-exception-illegal-characters-in-path-when-trying-to

                  Would you mind creating a bug report at https://bugreports.qt.io/ ?

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved