Git Product home page Git Product logo

visualchatgptstudio's People

Contributors

atfmxyl avatar graham83 avatar jeffdapaz avatar rabosa616 avatar rsimon77 avatar stimeke avatar tinyforge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

visualchatgptstudio's Issues

Method not found: EnvDTE.Solution

I got the latest version of the source code and started debugging the extension with VS 2022. When I use any of the Visual chatGPT Studio commands (e.g Explain) I get the following error popup:

Visual chatGPT Studio

Method not found: 'EnvDTE.Solution
EnvDTE._DTE.get_Solution()

The exception stack trace is:

   at JeffPires.VisualChatGPTStudio.Options.Commands.OptionCommands.<GetCommandAsync>d__8.MoveNext() in D:\Projects\VisualChatGPTStudio-master\VisualChatGPTStudioShared\Options\Commands\OptionCommands.cs:line 139
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
   at JeffPires.VisualChatGPTStudio.Options.Commands.OptionCommands.GetCommandAsync(CommandsType commandType) in D:\Projects\VisualChatGPTStudio-master\VisualChatGPTStudioShared\Options\Commands\OptionCommands.cs:line 98
   at JeffPires.VisualChatGPTStudio.Explain.GetCommand(String selectedText) in D:\Projects\VisualChatGPTStudio-master\VisualChatGPTStudioShared\Commands\Explain.cs:line 17
   at JeffPires.VisualChatGPTStudio.Commands.BaseGenericCommand`1.<RequestAsync>d__10.MoveNext() in D:\Projects\VisualChatGPTStudio-master\VisualChatGPTStudioShared\Commands\BaseGenericCommand.cs:line 98
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at JeffPires.VisualChatGPTStudio.Commands.BaseGenericCommand`1.<ExecuteAsync>d__9.MoveNext() in D:\Projects\VisualChatGPTStudio-master\VisualChatGPTStudioShared\Commands\BaseGenericCommand.cs:line 77

I hope the base API can be configured.

I hope to can change Base API because in some countries and regions, access to api.openai.com of OpenAI is not possible. Therefore i to use a reverse proxy to proxy the API, and I hope to be able to change the Base API.

Thank you very much.

Update supported/configurable models

Hello,

first of all i would like to say i love this extension! Is nice to see the old good Visual Studio getting some love!
I just recently (today) started using this extension, and noticed some of the configurable models are out-of-date... See the screenshot down below:
image
image

I understand that models are volatile and i don't know if it's possible to retrieve them from some API, but i stumbled upon this link, which i believe contains all the models available as of today.

It would be nice if the extension could reflect that list :)

Add Summary generates additional garbage code

this is original code:

public class ByTransactionState : Specification<TransactionPosition>
            {
                private int stateId;

                public ByTransactionState(int stateId)
                {
                    this.stateId = stateId;
                }

after selecting first line and generating Summary (Alt+F7), it produced a Summary, but with additional lines:

            /// <summary>
            /// Specification for filtering TransactionPositions by their TransactionState.
            /// </summary>
            /// <param name="state">The TransactionState to filter by.</param>
            public ByTransactionState(TransactionState state)

        // ...


            // ...

public class ByTransactionState : Specification<TransactionPosition>
            {
                private int stateId;

                public ByTransactionState(int stateId)
                {
                    this.stateId = stateId;
                }

Seems like it starts adding some garbage after several Summary generations on classes.
Works well on class Properties, Constructors.

GPT3 even with Model Language set to "GPT_4"

Not sure if this is the result of me doing something wrong either in the extension or in the OpenAI platform config but even though I have selected "GPT_4" as "Model language" in the settings for Visual ChatGGTP I still seem to get GPT3 according to the AI itself ("What version of OpenAI are you?").

image

Thanks for a really nice extension BTW!

Does not work on VS 2022 17.9 Preview on ARM64

Hi, I'm using VS 2022 17.9 Preview 2 (which I believe is not the problem) on ARM64 (which I believe is the problem) and I am getting the message from VS saying the Visual chatGPT Studio failed when loading.

In the ActivityLog.xml, there is a FileNotFoundException:

SetSite failed for package [VisuallChatGPTStudioPackage]Source: 'mscorlib' Description: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.118.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified.
   at JeffPires.VisualChatGPTStudio.Utils.ChatRepository.CreateDataBase()
   at JeffPires.VisualChatGPTStudio.ToolWindows.Turbo.TerminalWindowTurboControl..ctor() in C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\ToolWindows\Turbo\TerminalWindowTurboControl.xaml.cs:line 35
   at JeffPires.VisualChatGPTStudio.ToolWindows.Turbo.TerminalWindowTurbo..ctor() in C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\ToolWindows\Turbo\TerminalWindowTurbo.cs:line 31
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Microsoft.VisualStudio.Shell.Package.InstantiateToolWindow(Type toolWindowType, Object context)
   at Microsoft.VisualStudio.Shell.Package.<>c__DisplayClass87_0.<CreateToolWindow>g__CreateToolWindowWorker|1()
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags, Object context, Guid persistenceGuid)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool, Object context)
   at Microsoft.VisualStudio.Shell.AsyncPackage.<CreateToolWindowAsync>d__38.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass47_0.<<FindToolWindowAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Shell.ToolWindowCollection.ToolWindowListener.<>c__DisplayClass1_0.<<-ctor>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()
   at Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass16_0.<<GetValueAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Shell.AsyncPackage.<FindToolWindowAsync>d__47.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Shell.AsyncPackage.<FindToolWindowAsync>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at JeffPires.VisualChatGPTStudio.Commands.TerminalWindowTurboCommand.<InitializeToolWindowAsync>d__12.MoveNext() in C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\Commands\TerminalWindowTurboCommand.cs:line 101
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at JeffPires.VisualChatGPTStudio.Commands.TerminalWindowTurboCommand.<InitializeAsync>d__10.MoveNext() in C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\Commands\TerminalWindowTurboCommand.cs:line 78
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at JeffPires.VisualChatGPTStudio.VisuallChatGPTStudioPackage.<InitializeAsync>d__8.MoveNext() in C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\VisuallChatGPTStudioPackage.cs:line 64
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.118.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Data.SQLite, Version=1.0.118.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'
   at JeffPires.VisualChatGPTStudio.Utils.ChatRepository.CreateDataBase()
   at JeffPires.VisualChatGPTStudio.ToolWindows.Turbo.TerminalWindowTurboControl..ctor() in C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\ToolWindows\Turbo\TerminalWindowTurboControl.xaml.cs:line 35
   at JeffPires.VisualChatGPTStudio.ToolWindows.Turbo.TerminalWindowTurbo..ctor() in C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\ToolWindows\Turbo\TerminalWindowTurbo.cs:line 31

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Because it is saying that Could not load file or assembly 'System.Data.SQLite, Version=1.0.118.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified. the problem is with System.Data.SQLite, I think I know where the problem may be: System.Data.SQLite is not providing ARM64 version of the sqlite .dll library at all, only x86 and x64 versions are there.

I checked out the .csproj file of VisualChatGPT, and there is only a reference to "System.Data.SQLite.x64". Yet, the vsixmanifest is advertising arm64 support, so it was shown in my Extension Manager.

I had a same situation when preparing an ARM64 version for a Flow.Launcher, and there is a package called Microsoft.Data.Sqlite, which is source-compatible with System.Data.SQLite, and based on SQLiteRawPCL, which means there are native sqlite libraries for everything under the sun – however, I do not know how to pack native (arch-dependent) dependencies in a VSIX extension, never worked with that.

Missing in toolbars

After installing and reinstalling several times, I still do not see the Visual ChatGPT Studio in my toolbars menu.

image

Buffer the response of the request for better integration in the text editor

Hi,
In BaseChatGPTCommand.RequestAsync(string selectedText), you should buffer the result of the request to the API in the handler and then produce the modifications in the doc once await ChatGPT.RequestAsync(OptionsGeneral, command, ResultHandler) returned. that way, the changes in the doc could easily be undo or redo as one operation instead of a lot of small ones.

Also, you could also prefix the plain text response with the doc's default single line comment to produce a better integration (command Explain, etc.).

Cannot Log with Azure account

Hello,

mis it possible to help me to connect with your Visual chatGPT Studio with Azure account?

I don’t know which information to put into the configuration screen.

thanks for help.

Add a new command to get exception resolution from chatGPT

The idea is to add a new command to the Exception Unhandled window so that a request can be made to the OpenAI API requesting details of the exception and also possible solutions:

image

I tried several ways to add this command, but I had no luck. If anyone knows a way, show me so that I can implement it or implement by yourself.

License file?

Hi Jeff - what's the licence for this most excellent plugin?

The openai proxy interface is recommended

Hello, your software is very useful and has solved many problems for me.
However, in China, we can't access openai, and most people don't understand azure, so I built an openai agent for the developers around me, which is fully compatible with openai, and the backend uses azure service nodes.
Can you promote it to Chinese users? In your software, the price of this agent interface is the same as that of openai, so I don't make money.
The interface address is: https://chat.wangshuyu.top/#/ApiDoc

你好,你的软件非常好用,解决了我很多问题。
但是在**我们是访问不了openai的,大部分人对azure也不了解,所以我对给身边的开发人员自建了一个openai的代理,是完全兼容openai的,后端使用的是azure服务节点。
你是否可以推广给**的用户呢,在你的软件里面, 这个代理接口价格和openai是一致的,我是不赚钱的。
接口地址是: https://chat.wangshuyu.top/#/ApiDoc

Remember what Visual ChatGPT Studio windows are open

I only use the Visual chatGPT Studio Window.
I never have the Visual chatGPT Studio Turbo or Visual chatGPT Studio Solution Contexts windows open.
When I open my solution all 3 windows loads regardless of what was open when the solution was saved and I have to close the
"extra" to windows.

Please make it so that it only open the window I select and not all 3 every time

Add code completion using chatGPT like Code Snippets and/or "Display statement completion"

The ideia is enter the prompt within the Editor similar to code snippet flow. Then select output from ChatGPT for statement completion, or modify prompt to regenerate response (using same chat thread). Similar to implementing code snippets and / or statement completion.

See:

https://learn.microsoft.com/en-us/visualstudio/extensibility/walkthrough-implementing-code-snippets?view=vs-2022&tabs=csharp

https://learn.microsoft.com/en-us/visualstudio/extensibility/walkthrough-displaying-statement-completion?view=vs-2022&tabs=csharp

For AzureOpenAI, may need another depolyment id?

I am using Azure OpenAI, and I have no problem with the Visual chatGPT studio, but when I am trying to use turbo chat, the API returns 404 resource not found. I noticed that I can only have one model for each deployment in the Azure AI Studio (the depolyment ID I put in Visual Studio Options uses TextDavinci003), so may be I need have another deploymentId for GPT_3_5_Turbo? (If so maybe there will have to be two API instances - one for main and one for turbo chat?) Anyway, seems a difference between AzureOpenAI and OpenAI.

can remove GetCommentChars(string filePath) default return

hello jeffdapaz,
can remove GetCommentChars(string filePath) default return "<!--"?because some language not list in code can use "The pre-defined commands setting" setting answer format replacement , so defalut return just need return "",thank you。

VS2022 crash when using ChatGPT Turbo Window in 2.4.1

I just installed version 2.4.1 of Visual ChatGPT Studio.
When I open the ChatGPT Turbo Window and click on any previous created chats or write a query in a new chat my VS2022 crashes to the desktop.

Here is the ouput from the Windows Eventviewer Log:
Anwendung: devenv.exe Frameworkversion: v4.0.30319 Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet. Ausnahmeinformationen: System.UnauthorizedAccessException bei MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32) bei MS.Internal.Text.TextInterface.FontList.get_Item(UInt32) bei MS.Internal.FontFace.PhysicalFontFamily.MapGlyphTypeface(System.Windows.FontStyle, System.Windows.FontWeight, System.Windows.FontStretch, System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, Int32 ByRef, Int32 ByRef) bei MS.Internal.Shaping.TypefaceMap.MapByFontFaceFamily(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, System.Globalization.CultureInfo, MS.Internal.FontFace.IFontFamily, System.Windows.FontStyle, System.Windows.FontWeight, System.Windows.FontStretch, MS.Internal.FontFace.PhysicalFontFamily ByRef, Int32 ByRef, MS.Internal.FontFace.IDeviceFont, Boolean, Double, MS.Internal.SpanVector, Int32, Boolean, Int32 ByRef) bei MS.Internal.Shaping.TypefaceMap.MapByFontFamily(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, System.Globalization.CultureInfo, MS.Internal.FontFace.IFontFamily, MS.Internal.FontCache.CanonicalFontFamilyReference, System.Windows.FontStyle, System.Windows.FontWeight, System.Windows.FontStretch, MS.Internal.FontFace.PhysicalFontFamily ByRef, Int32 ByRef, MS.Internal.FontFace.IDeviceFont, Double, Int32, MS.Internal.SpanVector, Int32, Int32 ByRef) bei MS.Internal.Shaping.TypefaceMap.MapOnceByFontFamilyList(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, System.Globalization.CultureInfo, System.Windows.Media.FontFamily[], MS.Internal.FontFace.PhysicalFontFamily ByRef, Int32 ByRef, MS.Internal.FontFace.IDeviceFont, Double, Int32, MS.Internal.SpanVector, Int32, Int32 ByRef) bei MS.Internal.Shaping.TypefaceMap.MapByFontFamilyList(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, System.Globalization.CultureInfo, System.Windows.Media.FontFamily[], MS.Internal.FontFace.PhysicalFontFamily ByRef, Int32 ByRef, MS.Internal.FontFace.IDeviceFont, Double, Int32, MS.Internal.SpanVector, Int32, Int32 ByRef) bei MS.Internal.Shaping.TypefaceMap.MapItem(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, MS.Internal.Span, MS.Internal.Generic.SpanVector1 ByRef, Int32)
bei MS.Internal.Shaping.TypefaceMap.GetShapeableText(System.Windows.Media.TextFormatting.CharacterBufferReference, Int32, System.Windows.Media.TextFormatting.TextRunProperties, System.Globalization.CultureInfo, Boolean, System.Collections.Generic.IList1<MS.Internal.TextFormatting.TextShapeableSymbols>, MS.Internal.TextFormatting.IShapeableTextCollector, System.Windows.Media.TextFormattingMode) bei MS.Internal.Shaping.GlyphingCache.GetShapeableText(System.Windows.Media.Typeface, System.Windows.Media.TextFormatting.CharacterBufferReference, Int32, System.Windows.Media.TextFormatting.TextRunProperties, System.Globalization.CultureInfo, Boolean, System.Collections.Generic.IList1<MS.Internal.TextFormatting.TextShapeableSymbols>, MS.Internal.TextFormatting.IShapeableTextCollector, System.Windows.Media.TextFormattingMode)
bei System.Windows.Media.TextFormatting.TextCharacters.MS.Internal.TextFormatting.ITextSymbols.GetTextShapeableSymbols(MS.Internal.Shaping.GlyphingCache, System.Windows.Media.TextFormatting.CharacterBufferReference, Int32, Boolean, Boolean, System.Globalization.CultureInfo, System.Windows.Media.TextFormatting.TextModifierScope, System.Windows.Media.TextFormattingMode, Boolean)
bei MS.Internal.TextFormatting.TextStore.CreateTextLSRuns(MS.Internal.TextFormatting.TextRunInfo, System.Collections.Generic.IList1<System.Windows.Media.TextEffect>, System.Globalization.CultureInfo, Int32, Int32, Int32, System.Windows.Media.TextFormattingMode, Boolean, Int32 ByRef) bei MS.Internal.TextFormatting.TextStore.CreateLSRuns(MS.Internal.TextFormatting.TextRunInfo, System.Collections.Generic.IList1<System.Windows.Media.TextEffect>, System.Globalization.CultureInfo, Int32, Int32, Int32, System.Windows.Media.TextFormattingMode, Boolean, Int32 ByRef, Int32 ByRef)
bei MS.Internal.TextFormatting.TextStore.CreateLSRunsUniformBidiLevel(MS.Internal.SpanVector, MS.Internal.SpanVector, Int32, Int32, Int32, Int32, System.Windows.Media.TextFormattingMode, Boolean, Int32 ByRef)
bei MS.Internal.TextFormatting.TextStore.FetchLSRun(Int32, System.Windows.Media.TextFormattingMode, Boolean, MS.Internal.TextFormatting.Plsrun ByRef, Int32 ByRef, Int32 ByRef)
bei MS.Internal.TextFormatting.LineServicesCallbacks.FetchRunRedefined(IntPtr, Int32, Int32, IntPtr, Char*, Int32, Int32 ByRef, Char* ByRef, Int32 ByRef, Int32 ByRef, MS.Internal.TextFormatting.LsChp ByRef, IntPtr ByRef)

Ausnahmeinformationen: System.UnauthorizedAccessException
bei MS.Internal.TextFormatting.TextMetrics+FullTextLine.FormatLine(MS.Internal.TextFormatting.FullTextState, Int32, Int32, Int32, Int32, Int32, MS.Internal.TextFormatting.LineFlags, MS.Internal.TextFormatting.FormattedTextSymbols)
bei MS.Internal.TextFormatting.TextMetrics+FullTextLine..ctor(MS.Internal.TextFormatting.FormatSettings, Int32, Int32, Int32, MS.Internal.TextFormatting.LineFlags)
bei MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(System.Windows.Media.TextFormatting.TextSource, Int32, Int32, Double, System.Windows.Media.TextFormatting.TextParagraphProperties, System.Windows.Media.TextFormatting.TextLineBreak, System.Windows.Media.TextFormatting.TextRunCache)
bei MS.Internal.TextFormatting.TextFormatterImp.FormatLine(System.Windows.Media.TextFormatting.TextSource, Int32, Double, System.Windows.Media.TextFormatting.TextParagraphProperties, System.Windows.Media.TextFormatting.TextLineBreak)
bei ICSharpCode.AvalonEdit.Rendering.TextView.CalculateDefaultTextMetrics()
bei ICSharpCode.AvalonEdit.Rendering.TextView.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
bei System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
bei System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
bei System.Windows.TreeWalkHelper.InvalidateTreeDependentProperty(System.Windows.TreeChangeInfo, System.Windows.DependencyObject, MS.Internal.FrameworkObject ByRef, System.Windows.DependencyProperty, System.Windows.FrameworkPropertyMetadata, System.Windows.Style, System.Windows.Style, System.Windows.ChildRecord ByRef, Boolean, Boolean, Boolean, Boolean)
bei System.Windows.TreeWalkHelper.InvalidateTreeDependentProperties(System.Windows.TreeChangeInfo, System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Windows.Style, System.Windows.Style, System.Windows.ChildRecord ByRef, Boolean, Boolean, Boolean, Boolean)
bei System.Windows.FrameworkElement.InvalidateTreeDependentProperties(System.Windows.TreeChangeInfo, Boolean, Boolean)
bei System.Windows.FrameworkElement.OnAncestorChangedInternal(System.Windows.TreeChangeInfo)
bei System.Windows.TreeWalkHelper.OnAncestorChanged(System.Windows.DependencyObject, System.Windows.TreeChangeInfo, Boolean)
bei System.Windows.DescendentsWalker1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].StartWalk(System.Windows.DependencyObject, Boolean) bei MS.Internal.PrePostDescendentsWalker1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].StartWalk(System.Windows.DependencyObject, Boolean)
bei System.Windows.TreeWalkHelper.InvalidateOnTreeChange(System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Windows.DependencyObject, Boolean)
bei System.Windows.FrameworkElement.OnVisualParentChanged(System.Windows.DependencyObject)
bei System.Windows.Media.Visual.FireOnVisualParentChanged(System.Windows.DependencyObject)
bei System.Windows.Media.Visual.AddVisualChild(System.Windows.Media.Visual)
bei System.Windows.FrameworkElement.set_TemplateChild(System.Windows.UIElement)
bei System.Windows.Controls.ContentPresenter+UseContentTemplate.BuildVisualTree(System.Windows.FrameworkElement)
bei System.Windows.StyleHelper.ApplyTemplateContent(System.Windows.UncommonField1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.DependencyObject, System.Windows.FrameworkElementFactory, Int32, System.Collections.Specialized.HybridDictionary, System.Windows.FrameworkTemplate) bei System.Windows.FrameworkTemplate.ApplyTemplateContent(System.Windows.UncommonField1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.FrameworkElement)
bei System.Windows.FrameworkElement.ApplyTemplate()
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
bei System.Windows.Controls.ScrollContentPresenter.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
bei System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.ScrollViewer.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
bei System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.StackPanel.StackMeasureHelper(System.Windows.Controls.IStackMeasure, System.Windows.Controls.IStackMeasureScrollData, System.Windows.Size)
bei System.Windows.Controls.StackPanel.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
bei System.Windows.Controls.ItemsPresenter.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
bei System.Windows.Controls.ScrollContentPresenter.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
bei System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.ScrollViewer.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
bei System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
bei System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
bei System.Windows.UIElement.Measure(System.Windows.Size)
bei System.Windows.ContextLayoutManager.UpdateLayout()
bei System.Windows.Controls.TabItem.OnPreviewGotKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs)
bei System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
bei System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
bei System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
bei System.Windows.Input.KeyboardDevice.TryChangeFocus(System.Windows.DependencyObject, System.Windows.Input.IKeyboardInputProvider, Boolean, Boolean, Boolean)
bei System.Windows.Input.KeyboardDevice.Focus(System.Windows.DependencyObject, Boolean, Boolean, Boolean)
bei System.Windows.Input.KeyboardDevice.Focus(System.Windows.IInputElement)
bei System.Windows.UIElement.Focus()
bei System.Windows.Controls.TabItem.SetFocus()
bei System.Windows.Controls.TabControl.OnSelectionChanged(System.Windows.Controls.SelectionChangedEventArgs)
bei System.Windows.Controls.Primitives.Selector+SelectionChanger.End()
bei System.Windows.Controls.Primitives.Selector+SelectionChanger.SelectJustThisItem(ItemInfo, Boolean)
bei System.Windows.Controls.Primitives.Selector.OnSelectedItemChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
bei System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
bei System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
bei System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
bei System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
bei System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean)
bei System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)
bei JeffPires.VisualChatGPTStudio.ToolWindows.Turbo.TerminalWindowTurboControl.OpenTab(JeffPires.VisualChatGPTStudio.ToolWindows.Turbo.ChatUserControlsItem)
bei System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
bei System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
bei System.Windows.Controls.Control.HandleDoubleClick(System.Object, System.Windows.Input.MouseButtonEventArgs)
bei System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
bei System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
bei System.Windows.UIElement.OnMouseDownThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
bei System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
bei System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
bei System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
bei System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

`

Add a way to stop waiting for response and stop receiving response by StreamCompletionAsync

The idea is to add a way to stop waiting for the response and also to stop continuing to receive the response when the request is made via StreamCompletionAsync.

I tried to do this but was unsuccessful. I also looked to see if somehow the library OkGoDoIt.OpenAI-API-dotnet allowed this but I didn't find anything.

I also created an issue in the library repository to see if I can get some help directly from the developers.

Comment code indentation issue (potentially with other code-generation feature)

Hello,

i stumbled upon this issue when commenting an entire method:

image
image

The first comment line seems fine, then the next 3 are shifted to start of line. I dont know if this is extended to other features too and if it's maybe some conflict with auto-indentation. Maybe if possible, add a Format-Document command after the code-writing ended?

Will check and update the issue if i find this problem with other features.

Putting unnecessary texts in the answer

Hello, the reply that comes from chat gpt contains unnecessary texts.

For example, when I want to write a test for the following method:
public static string FixLengthNumeric(string fieldName, dynamic lenghtNumber) => string.Format(Validations.FixLengthNumeric, fieldName, lenghtNumber.ToString());

He writes as follows:

```csharp
using Xunit;

public class ValidationTests
{
    [Fact]
    public void FixLengthNumeric_WithFieldNameAndLengthNumber_ShouldReturnFormattedString()
    {
        // Arrange
        string fieldName = "Field1";
        dynamic lengthNumber = 10;

        // Act
        string result = YourClassName.FixLengthNumeric(fieldName, lengthNumber);

        // Assert
        Assert.Equal("ExpectedFormattedString", result); // Update ExpectedFormattedString with the expected result
    }
}
 ` ``` `
In the test method `FixLengthNumeric_WithFieldNameAndLengthNumber_ShouldReturnFormattedString`, you can replace `YourClassName` with the actual class name where the `FixLengthNumeric` method is located. Update the `Assert.Equal` statement with the expected formatted string that should be returned by the `FixLengthNumeric` method.

The beginning of the return code is ```csharp and the end is ``` . and description text without // characters This is true for the rest of the commands as well.

Add Visual Studio 2019 compatibility

Extension projects for Visual Studio 2022 are not backwards compatible and vice versa.

Separate projects are required for each edition, including separate publications in the marketplace.

However, it is possible to use the "shared project" technique so that the two projects share most of the code.

Due to this effort and taking into account that most developers are or will be using Visual Studio 2022, a version of this extension for Visual Studio 2019 will not be available at the moment.

However, if anyone is willing to implement the shared project technique, they have my support.

So I leave this issue open and the articles that explain how to proceed:

Update a Visual Studio extension for Visual Studio 2022

Target a previous version when creating an extension in Visual Studio 2022

Text editor background theme that follows Visual Studio theme (light or dark)

After adding highlighting to the text editors, I implemented the dark theme in the editor boxes following the VS theme, but the text colors didn't show up very well in the dark theme.

Need to find a way to resolve so be possible add the dark theme.

Here how to get VS theme:

VSColorTheme.ThemeChanged += VSColorTheme_ThemeChanged;

var defaultBackground = VSColorTheme.GetThemedColor(EnvironmentColors.ToolWindowBackgroundColorKey);
var defaultForeground = VSColorTheme.GetThemedColor(EnvironmentColors.ToolWindowTextColorKey);

Use a submenu to list the ChatGPT commands

The context menu can really be too cluttered for small screens with many extensions active, you should introduce a submenu "chatGPT >" to list the availlable commands and add default shortcuts.

Make possible to use the Azure OpenAI API

Make possible to use the Azure Open API instead OpenAI API.

The idea is add new option parameters to possibility the VS user select Azure Open API instead OpenAI API, and set especifics Azure Open API parameters.

Invalid Request Error: str type expected

Hi, I am trying to use the extension with my local OpenAPI-compatible LLM, but I am facing an "str type expected error".

This is the error response:

{
    "object": "error",
    "message": "[{'loc': ('body', 'messages'), 'msg': 'str type expected', 'type': 'type_error.str'}, {'loc': ('body', 'messages', 0, 'content'), 'msg': 'str type expected', 'type': 'type_error.str'}]",
    "type": "invalid_request_error",
    "param" null,
    "code": null
}

Upon inspecting the requests, I noticed that the plugin is sending the request in this structure:

{
    "messages": [
        {
            "role": "system",
            "content": [
                {
                    "type": "text",
                    "text": "You are a programmer assistant called ..."
                }
            ]
        }
    ],
    ...
}

However, the OpenAI API reference shows this structure instead:

{
    "messages": [
        {
            "role": "system",
            "content": "You are a programmer assistant called ..."
        }
    ],
    ...
}

May I know what could be the issue? Thanks! 🙏

Error on commands using SHIFT keys

An user related this:

When you press and hold the Shift button and click on a command, an error window appears stating "Null Reference."

Need to check and fix.

Endless waiting and no results.

Hello. I've just installed the plugin over VS2022, generated a ChatGPT code and place it in the options.
Yet i got the progressbar going forever even for a simple request, and nothing. It never results anything just the progressbar going and never stopping.
image

OpenAI API new Edit mode

Hi, OpenAI released new modes to query the API : Edit and Insert, in addition to the Chat mode.
I used Playground to try them and I think it would produce better results than the chat mode for this extension, at least for refactor commands :
image

I see that the extension is using OpenAI byOkGoDoIt V1.6.0, but it does not have these modes yet. But a fork exists : OpenAI-DotNet, more up to date with the API, including the Edit mode. It's the same init, that could be intersting to try it out.

Anyway, big thanks for your hard work!

Pause

How can I stop a request?
After starting request, for exampe, by Alt + 2 (unit-test), I watch a typing in my document by ChatGPT and I can't stop this process

Make custom commands available

The idea is to make new custom commands available in the context menu, and customizable through options.

This way will be possible create new commands other than those previously defined.

Maybe two commands it´s good enough for now.

Example:

...
Ask Anything ALT+8
Custom 1 ALT+9
Custom 2 ALT+0

安装》使用报错:未能正确加载***包

Installed For VS 2022

image

image

补充说明

  • AppData\Local 下并没有上面错误提示的“**.db”文件,全盘搜索也没有。
  • 另一个插件 “Codeium VSPackage”(也是一个AI插件)也报同样的错误了,这个插件安装、正常使用已经一周多了,今天安装完VisualChatGPTStudio 后报同样的错误了。
  • VS2022版本:最新 17.8.1

##ActivityLog.xml 中的异常信息
SetSite failed for package [VisuallChatGPTStudioPackage]Source: 'VisualChatGPTStudio' Description: 未将对象引用设置到对象的实例。
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 JeffPires.VisualChatGPTStudio.Utils.ChatRepository.GetChats() 位置 C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\Utils\ChatRepository.cs:行号 93
在 JeffPires.VisualChatGPTStudio.ToolWindows.Turbo.TerminalWindowTurboControl.StartControl(OptionPageGridGeneral options, Package package) 位置 C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\ToolWindows\Turbo\TerminalWindowTurboControl.xaml.cs:行号 98
在 JeffPires.VisualChatGPTStudio.Commands.TerminalWindowTurboCommand.d__12.MoveNext() 位置 C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\Commands\TerminalWindowTurboCommand.cs:行号 108
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 JeffPires.VisualChatGPTStudio.Commands.TerminalWindowTurboCommand.d__10.MoveNext() 位置 C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\Commands\TerminalWindowTurboCommand.cs:行号 78
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 JeffPires.VisualChatGPTStudio.VisuallChatGPTStudioPackage.d__8.MoveNext() 位置 C:\TFS_GitHub\jeffdapaz\VisualChatGPTStudio\VisualChatGPTStudioShared\VisuallChatGPTStudioPackage.cs:行号 64
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass21_0.<b__1>d.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
在 Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.