When selecting a version in VS 2022 QT TOOLS it doesn stick
-
@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?
-
@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?
@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.
-
@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.
-
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.
-
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.
@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.WhereEnumerableIterator
1.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 settingsStacktrace:
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 -
@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.WhereEnumerableIterator
1.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 settingsStacktrace:
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@shinzef
So i reinstalled vs 2022vcvars: 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.WhereEnumerableIterator
1.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 -
@shinzef
So i reinstalled vs 2022vcvars: 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.WhereEnumerableIterator
1.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@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/ ?