1
Cannot add comment either with CTRL+D or triple slash shortcut
Problem reported by Serge ARADJ - 3/10/2022 at 12:43 AM
Resolved
Hi,

I am using GhostDoc community Version 2022.1.21330 on Visual Studio Version 17.1.0.
Since a few days, when I try to add a comment, if I use CTRL+D I just see the Loading popup for a couple of seconds, and with the triple slash shortcut it just removes completely any existing comment on the current object (a class, a member).

Here follows the log output :
Log Message (10/03/2022 09:15:11) : DocumentThisCommandImplementation->Run...
Log Message (10/03/2022 09:15:11) : User defined TEMP folder C:\Users\*****\AppData\Local\Temp\
Log Message (10/03/2022 09:15:12) : _projectFile == null for currentProject with name: C:\Users\*****\Projects\*****\******.Data\Migrations\*****.cs
Log Message (10/03/2022 09:15:12) : _projectFile == null for currentProject with name: C:\Users\*****\Projects\*****\******.Data\Migrations\*****.cs
Log Message (10/03/2022 09:15:12) : Loading CodeAnalysisAssembly. The "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\ManagedLanguages\VBCSharp\LanguageServices\Microsoft.CodeAnalysis.dll" does not exist.
Log Message (10/03/2022 09:15:12) : Loading CodeAnalysisAssembly. The "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\ManagedLanguages\VBCSharp\LanguageServices\Microsoft.CodeAnalysis.dll" does not exist.
Log Message (10/03/2022 09:15:12) : Loading CodeAnalysisAssembly. The "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\ManagedLanguages\VBCSharp\LanguageServices\Microsoft.CodeAnalysis.dll" does not exist.
Log Message (10/03/2022 09:15:12) : Loading CSharpAssembly. The "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\ManagedLanguages\VBCSharp\LanguageServices\Microsoft.CodeAnalysis.CSharp.dll" does not exist.
Date and Time: 10/03/2022 09:15:12
IP Address: {0}
OS Platform: Win32NT
Processor: AMD64
OS version: 10.0.22000.0
Current user role:  User;

Allocated Memory: 2942 Mb
Available Physical Memory: 1 Mb
Available Virtual Memory: 1 Mb
Total Physical Memory: 3955 Mb
Total Virtual Memory: 2931 Mb
Percentage of physical memory In use: 96 %

NET Framework version: 4.0.30319.42000
Visual Studio version: 17.0
Visual Studio file: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.exe
Visual Studio file version: 17.1.32210.238

Application Domain: DefaultDomain
Product Version: 
Assembly Codebase: file:///c:/users/*****/appdata/local/microsoft/visualstudio/17.0_2e62b7f4/extensions/4qivurl5.khn/SubMain.GhostDoc.Core.DLL
Assembly Version: 2.2.0.0
Assembly Build Date: 05/01/2022 00:10:15
Assembly Full Name: SubMain.GhostDoc.Core, Version=2.2.0.0, Culture=neutral, PublicKeyToken=94c677ee32cc1929

Exception Source: SubMain.GhostDoc.Package.clr4.6
Exception Type: System.NullReferenceException
Exception Message: Realtime preivew: Object reference not set to an instance of an object.
Exception Target Site: 

---- Stack Trace ----
 A.c14c33fc102b45afccf1216874e075154.c0012a3cfd6f80130a0508007ae497b4b( As Object,  As String)
 SubMain.GhostDoc.Core.DLL: N 00039
 A.c8e5452c60a3efeb37eeca16644507ce3.c75fdd85d8190ea8de2b60f7a205da5d7()
 SubMain.GhostDoc.Core.DLL: N 00056
 A.c6fcba48a14367e4d07cc253faa366530.c2c3d5f8b3731be34f316130b2bc0d89d( As Object)
 SubMain.GhostDoc.Core.DLL: N 00020
 A.c26ba03f684e945e3d74ab13c2238691d.c9def1423bd110f792f784a2d9a0f1e76( As IDictionary`2,  As String,  As Object,  As StringBuilder,  As caaa39122dda9ddb32ba7951e201874d5)
 SubMain.GhostDoc.Core.DLL: N 00486
 A.c7a4ef23f51d5c7f20d91e51722cae3e9.c256ac57df91f786a222a4be91bd28ce9( As IDictionary`2,  As CodeLanguage,  As caaa39122dda9ddb32ba7951e201874d5)
 SubMain.GhostDoc.Core.DLL: N 00313
 A.cba7a0ea294e9e174dfc17c379f5f490e.cbd9be4288aa6c4bc190ab23d9ae14956( As _DTE,  As Object,  As ICompilationUnit,  As Boolean,  As Boolean,  As Boolean,  As Boolean,  As String,  As caaa39122dda9ddb32ba7951e201874d5)
 SubMain.GhostDoc.Core.DLL: N 01303

Log Message (10/03/2022 09:29:43) : CheckSubscriptions method start
Log Message (10/03/2022 09:29:43) : Finish CheckSubscriptions without updating, last update was 143 hours ago.
Log Message (10/03/2022 09:39:10) : Created DpiAwareness scope: True

4 Replies

Reply to Thread
0
Misha Zhutov Replied
Employee Post
Hi Serge, 

We are aware about the issue and it has already been fixed. Please download and install the latest build from https://submain.com/download/ghostdoc/pro/
0
Serge ARADJ Replied
Thanks !
Doing it right now.
0
Serge ARADJ Replied
Hi again,

It seems to have fixed the issue, now when I type /// I get the generated comments. But, it also generates less comments than before this version. 
For a constructor, the summary is empty after generation, and so are the descriptions for the parameters.

Moreover, previously when I added /// after the last line of existing comments, it used to "fix" the comments in-place (i.e. add the missing <param/> tags). It does not do that anymore.

Is there any setting I am missing to achive this previous behavior ?

Many thanks.
0
Misha Zhutov Replied
Employee Post
Hi Serge, 

Could you please provide us with information on what GhostDoc edition are you using? Also, please provide us with a code snippet that can reproduce the issue.

Reply to Thread