Giter VIP home page Giter VIP logo

Comments (9)

illusion-walk avatar illusion-walk commented on June 9, 2024 2

Yes, after closing all open .cs files the auto format on save is working well!
Thanks a lot for the hint!
This is definitely much easier than reinstalling VS :D

from codemaid.

paro77 avatar paro77 commented on June 9, 2024 1

Thanks for the tip. This will work if nothing else helps. But that can't be the way to solve this problem. Completely uninstalling Visual Studio is very time-consuming if you also want to have the many extensions back in the same individual configuration.

@illusion-walk I completely agree with your point. I just listed everything I tried. In fact, I had multiple re-installations of VS that just didn't help. Closing all open .cs files for a solution that had probably hundreds of them is what actually made it work, for me.

from codemaid.

TimDN avatar TimDN commented on June 9, 2024

Seeing the same issue on my machine using the same environment as OP

from codemaid.

JackmanA avatar JackmanA commented on June 9, 2024

I am seeing the same issue on my machine. Only difference from OP is that I am using Visual Studio Professional 2022 v17.7.2.

I can confirm that a different machine that is running Visual Studio Professional 2022 v17.6.4 IS working as expected.

from codemaid.

paro77 avatar paro77 commented on June 9, 2024

Same issue on my end too. Running CodeMaid in Diagnostics mode resulted in this message in the Output:

[CodeMaid Diagnostic 07:24:02 PM] WindowEventListener.OnWindowChange raised for 'C:*****\Application.cs'

Only explicit call to 'Cleanup Active Document' from the extension menu invokes CodeMaid.

Hope this helps.
Thanks!

UPDATE: Issue persists after latest update to VS 2022 Community 17.7.3
Re-installing CodeMaid didn't help

from codemaid.

gopo9 avatar gopo9 commented on June 9, 2024

Same issue on my machine
VS 2022 Community 17.7.2
C++ language

from codemaid.

paro77 avatar paro77 commented on June 9, 2024

This is my second update on the issue. Here is a list of steps that brought CodeMaid's cleanup-on-save back in the game for me:

  • Uninstalled VS 2022
  • Cleaned up any relevant app data I could find
  • Cleaned up shared librares and other leftover files and folders under "Program Files" and "Program Files (x86)". Basically sweeped everything having "Microsoft\Visual Studio" or "VisualStudio" in its path
  • Reinstalled VS2022
  • Reinstalled CodeMaid
  • As odd as it may sound, closed all open windows in a solution for which CodeMaid had stopped cleaning on save. The count might have been up to hundreds (did not check it explicitly) open files. The cleanup on save started working immediately after this step.

In my efforts to solve the case by myself, I cloned and debugged the CodeMaid.2022 project. It had issues that pointed to possible library version conflicts (there were "method not found" exceptions). This made me try re-installation with manual VS files cleanup. Once the debug started working, it turned out it nicely cleans on save some small test app projects with a couple of open source file windows. That's when I went for closing the windows in the bigger solution.

Hope this may help.

from codemaid.

illusion-walk avatar illusion-walk commented on June 9, 2024

Thanks for the tip. This will work if nothing else helps.
But that can't be the way to solve this problem. Completely uninstalling Visual Studio is very time-consuming if you also want to have the many extensions back in the same individual configuration.

from codemaid.

Related Issues (20)

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.