codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.88k stars 353 forks source link

Code Digging Results in Crash #960

Open PaltryProgrammer opened 1 year ago

PaltryProgrammer commented 1 year ago

Today I downloaded and installed CodeMaid Upon click upon "Spade" then upon click on a C++ method name in the generated list system froze then closed. Kindly Advise PS Am very surprised by the "Progressive" indicator is nothing more than an indication of activity which is never in doubt anyway and said indicator is overly large taking up entire width of text window and a number of lines thereupon. If it is merely intended to indicate activity though as stated not needed a mere small little dancing man icon a-la Fred Astair would be sufficient. One of the projects on my list is a proper Build Progress indicator i.e. to wit in particular to be specific namely a list of all files to be build and an indication for each file's build status i.e. to wit namely to be specific in particular black/pending, green/success, orange/fail maybe Fred Astair as well -Cheerios

Microsoft Visual Studio Community 2022 Version 17.5.0 Preview 1.0 VisualStudio.17.Preview/17.5.0-pre.1.0+33103.201 Microsoft .NET Framework Version 4.8.09037

Installed Version: Community

Visual C++ 2022 00482-90000-00000-AA202 Microsoft Visual C++ 2022

ASP.NET and Web Tools 17.5.90.43013 ASP.NET and Web Tools

Azure App Service Tools v3.0.0 17.5.90.43013 Azure App Service Tools v3.0.0

C# Tools 4.5.0-1.22528.5+77904ac785bbddb853161aed9eac6ca03aba0ddf C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Clear MEF Component Cache 1.4 Clears the Visual Studio MEF component cache to fix issues with cache corruption.

CPPCheckPlugin 1.2.0 cppcheck wrapper

Extensibility Essentials 2022 1.1.14 A collection of extensions that makes it much easier to write Visual Studio extensions

Extensibility Margin 1.0.9 Shows relevant information about the current file and language to extensibility authors

KnownMonikers Explorer 2022 1.2.42 A tool window for Visual Studio extension authors to explore the KnownMonikers image collection

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager 6.5.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Test Adapter for Google Test 1.0 Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

Text Macros for Visual Studio 2012-2022 1.17 Brings back text-editing macro support in Visual Studio 2012-2022

Visual Basic Tools 4.5.0-1.22528.5+77904ac785bbddb853161aed9eac6ca03aba0ddf Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 17.5.0-beta.22525.1+90f5b1ed0befe8337b923860d29dcd62d4735aef Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2 AI-assisted development for Visual Studio.

Visual Studio Spell Check Everywhere VSSpellCheckEverywhere An extension that enables spell checking within any Visual Studio file editor or tool window that uses WPF text boxes. https://GitHub.com/EWSoftware/VSSpellChecker

Visual Studio Spell Checker VSSpellChecker An editor extension that checks the spelling of comments, strings, and plain text as you type or interactively with tool windows. https://GitHub.com/EWSoftware/VSSpellChecker

VSColorOutput64 2022.2 Color output for build and debug windows - https://mike-ward.net/vscoloroutput

codecadwallader commented 1 year ago

Thanks for reporting the issue. I have not been able to reproduce it. Do you have a minimal solution that exhibits the issue that you can share?

Also, thanks for the Fred Astair recommendation. I'll keep that in mind. πŸ˜‚

PaltryProgrammer commented 1 year ago

Greetings Kind Regards

Thank You for your Kind interest re/ my concern. An attempt to duplicate spade crash w/ minimal solution did not succeed. Below is a DropBox link to the entire solution which demonstrates said crash. Also via same DropBox link is a GIF which demonstrates crash i apologize but unfortunately it must be downloaded to animate as it will not do so at site.

To open solution: Subsequent to download of Zip file and un-Zip of same navigate to Solution File via: spade crash : source : repos : cRedBlackTree : cRedBlackTree.sln

To demonstrate spade crash: open Solution Explorer : cRedBlackTree open Solution Explorer : cRedBlackTree : Source Files open Solution Explorer : cRedBlackTree : Source Files : MAIN.CPP execute Extensions : CodeMaid : spade upon completion of generation of tree list click upon any of the methods at/near top of list result will be crash

Thank You Kindly

DropBox link https://www.dropbox.com/scl/fo/6xckwnacm05bysgo2lmrx/h?dl=0&rlkey=5sdx64qvuwcg7i4u5jicijusk

On Sun, Dec 11, 2022 at 12:59 PM Steve Cadwallader @.***> wrote:

Thanks for reporting the issue. I have not been able to reproduce it. Do you have a minimal solution that exhibits the issue that you can share?

Also, thanks for the Fred Astair recommendation. I'll keep that in mind. πŸ˜‚

β€” Reply to this email directly, view it on GitHub https://github.com/codecadwallader/codemaid/issues/960#issuecomment-1345617508, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSJS4FWVMQFCQES7TUWMH3WMYI7RANCNFSM6AAAAAAS2BWZTQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Below is my "Signature" apologies for no apologies if offends "I once put instant coffee into the microwave and went back in time." - Steven Wright "Shut up and calculate" - apparently N. David Mermin possibly Richard Feynman β€œI want to sing, I want to cry, I want to laugh. Everything together. And jump and dance. The day has arrived β€” yippee!” - Desmond Tutu β€œWhen the green flag drops the bullshit stops!” "It is cheaper to save the world than it is to ruin it." "I must have had lessons" - Reverend Jim Ignatowski / Christopher Lloyd "Dripping water hollows out stone, not through force, but through persistence." - Ovid, Roman poet "... as likely as lightning striking a Leprechaun whilst riding a Unicorn." "Don't worry, the planet will do just fine without us." Personal Web Page https://mypaltrythoughts.blogspot.com

PaltryProgrammer commented 1 year ago

Greetings Re/ GIF link provided above it is no longer necessary to download to animate as corrected link below will function as expected Thank You Kindly https://www.dropbox.com/s/hntq6v0z7y06z0i/spade%20Crash.gif?raw=1

On Sun, Dec 11, 2022 at 5:14 PM Bernard @.***> wrote:

Greetings Kind Regards

Thank You for your Kind interest re/ my concern. An attempt to duplicate spade crash w/ minimal solution did not succeed. Below is a DropBox link to the entire solution which demonstrates said crash. Also via same DropBox link is a GIF which demonstrates crash i apologize but unfortunately it must be downloaded to animate as it will not do so at site.

To open solution: Subsequent to download of Zip file and un-Zip of same navigate to Solution File via: spade crash : source : repos : cRedBlackTree : cRedBlackTree.sln

To demonstrate spade crash: open Solution Explorer : cRedBlackTree open Solution Explorer : cRedBlackTree : Source Files open Solution Explorer : cRedBlackTree : Source Files : MAIN.CPP execute Extensions : CodeMaid : spade upon completion of generation of tree list click upon any of the methods at/near top of list result will be crash

Thank You Kindly

DropBox link

https://www.dropbox.com/scl/fo/6xckwnacm05bysgo2lmrx/h?dl=0&rlkey=5sdx64qvuwcg7i4u5jicijusk

On Sun, Dec 11, 2022 at 12:59 PM Steve Cadwallader < @.***> wrote:

Thanks for reporting the issue. I have not been able to reproduce it. Do you have a minimal solution that exhibits the issue that you can share?

Also, thanks for the Fred Astair recommendation. I'll keep that in mind. πŸ˜‚

β€” Reply to this email directly, view it on GitHub https://github.com/codecadwallader/codemaid/issues/960#issuecomment-1345617508, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSJS4FWVMQFCQES7TUWMH3WMYI7RANCNFSM6AAAAAAS2BWZTQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Below is my "Signature" apologies for no apologies if offends "I once put instant coffee into the microwave and went back in time." - Steven Wright "Shut up and calculate" - apparently N. David Mermin possibly Richard Feynman β€œI want to sing, I want to cry, I want to laugh. Everything together. And jump and dance. The day has arrived β€” yippee!” - Desmond Tutu β€œWhen the green flag drops the bullshit stops!” "It is cheaper to save the world than it is to ruin it." "I must have had lessons" - Reverend Jim Ignatowski / Christopher Lloyd "Dripping water hollows out stone, not through force, but through persistence." - Ovid, Roman poet "... as likely as lightning striking a Leprechaun whilst riding a Unicorn." "Don't worry, the planet will do just fine without us." Personal Web Page https://mypaltrythoughts.blogspot.com

-- Below is my "Signature" apologies for no apologies if offends "I once put instant coffee into the microwave and went back in time." - Steven Wright "Shut up and calculate" - apparently N. David Mermin possibly Richard Feynman β€œI want to sing, I want to cry, I want to laugh. Everything together. And jump and dance. The day has arrived β€” yippee!” - Desmond Tutu β€œWhen the green flag drops the bullshit stops!” "It is cheaper to save the world than it is to ruin it." "I must have had lessons" - Reverend Jim Ignatowski / Christopher Lloyd "Dripping water hollows out stone, not through force, but through persistence." - Ovid, Roman poet "... as likely as lightning striking a Leprechaun whilst riding a Unicorn." "Don't worry, the planet will do just fine without us." Personal Web Page https://mypaltrythoughts.blogspot.com

codecadwallader commented 1 year ago

Thanks, I appreciate you sharing your solution. It works as expected for me (navigates to line 17 on clicking the serialize item). I tried a few different things like clicking it immediately on load, dragging it to a new location in the file, etc. and it worked as expected.

Since it's a hang (vs. a crash) I'm not sure if it will help but you could try enabling CodeMaid's diagnostics mode to see if there's any interesting output, such as an infinite loop of activities. It's in the CodeMaid->Options->General->Diagnostics mode area. When it's turned on it will create a CodeMaid pane in the Output tool window and be pretty chatty about different events that CodeMaid is responding to and activities it's taking.

T365 commented 1 year ago

I'm using visual micro in vs2022, and codemaid crashes most of the time when I use the scrollbars. Turning on the diagnostics does not help because when I got a crash vs closes directly, and my data must be recoverd.

Hakoyu commented 1 year ago

Is it possible to add an option for the auto refresh of digging to be placed in the digging screen? If I use save a lot, auto-refresh can easily crash the program. Refreshing only when I need to use digging should improve the crashing problem.

T365 commented 1 year ago

@PaltryProgrammer

I disabled VSColorOutput64, enabled Code Digging again, and now it's working for a few hours without a crash.