Visual Studio For Mac Taking Forever To Save

I'm having issues with HMR in Visual Studio 2015 (Update 3, running with ctrl-F5), but I think the issue is with webpack. I've just created a new .NET Core Angular 2 template from scratch. It runs fine, however when I make any changes these aren't applied. I've not made any changes to the settings, so I'm using the following versions (from package.json):

Visual Studio for Mac Announcement: This forum has been migrated to provide our customers one convenient and responsive system for all feedback. You can now suggest new ideas, browse and vote on existing ideas in the Visual Studio Developer Community.

Jan 21, 2009  I need to know-- why does Visual Studio take a VERY long time to save changes in some of my Web site projects? Here is the scenario. I have a simple web site project, less than 300 files with 1000 lines or less in each file. I make a global change-- such as rename a namespace-- that affects 200 of the files. I click >File, >SaveAll. It is most likely because you uninstalled some SQL Server components Visual Studio is using. Though Visual Studio still works, it's very slow. Just go to 'Programs and Features' in the Control Panel and repair Visual Studio. The needed Visual Studio components will be installed again and Visual Studio will be back as fast as before.

I'm using Node version 4.6.1:

Mac Taking Forever To Restart

NPM version 3.10.8:

For manual building I installed webpack globally using npm install -g webpack following the guide here. It's version 1.13.3 (as seen in compile output below)

There's a couple of things I've noticed.

  1. Webpack does not seem to be compiling the typescript on save. It only does it when I build. However, I manually compiled the typescript, and it's taking a long time (over twenty seconds! I've had it as high as 45 on a project that I'd added a few more components to):

This doesn't seem right.

  1. But also, even after this the browser isn't updated. main-client.js has been compiled using the manual process and HMR is running ([HMR] connected shows in console, I can see http://localhost:59267/__webpack_hmr is running).
Mac

Even if I refresh the page, the changes are not applied. I have noticed however that the server-rendering has the change, but then this is quickly replaced by an unmodified main-client.js. Here's an example:

  • Change <h1>Hello, world!</h1> to <h1>Hello, world! Change</h1>.
  • Save (nothing happens).
  • Compile manually with webpack --config webpack.config.js
  • Refresh browser. Server side rendering shows 'Change', then client kicks in and it disappears. See gif:

The only solution I've found is to close the browser, re-build with visual studio and re-launch the IIS server. I cant find any settings to configure the webpack process, so I'm struggling to find out what's wrong and why it isn't working.

Active2 years, 1 month ago

I recently installed Visual Studio for mac right after the day it was launched. It consumed 20 gb of my disc space, so I decided to remove it. I went in to the applications folder and moved recently installed components associated with the installation to the trash. But it did not free any space at all. So I searched online and followed the following link for uninstallation: Uninstalling Xamarin

After following the link and entering all the terminal commands, I was only able to free up 10 gb of storage. How do I free up the rest 10 gb of the storage ?

Shrijan AryalShrijan Aryal

2 Answers

In case anyone else having the same question visited here, please visit the official guide.

The following is quoted from the original guide which was updated at 2017-4-14.

Uninstall Visual Studio for Mac App

Step 1. Locate Visual Studio.app in the /Applications directory and drag it to the Trash Can. Alternatively, right-click and select Move to Trash.

Step 2. Remove all traces of Visual Studio for Mac

Execute the following commands in your terminal:

Uninstall Xamarin.Android

Uninstall Xamarin.iOS

Uninstall Xamarin.Mac

Uninstall Workbooks and Inspector

Uninstall the Visual Studio Installer

Uninstall Mono SDK (MDK)

Mac Taking Forever To Boot Up

Warning

Mac Taking Forever To Startup

There are other applications outside of Xamarin which also use Mono, such as Unity. Be sure that there are no other dependencies on Mono before uninstalling it.

Mac

Other apps with name prefix Xamarin

Visual Studio For Mac Taking Forever To Save

The official guide didn't mention it, but I found there were other apps named Xamarin.xxxx in my library directory. I simply moved them to trash.

DavidPostill
114k27 gold badges255 silver badges285 bronze badges
lowattlowatt

May be this would be better solution (no need to follow each step): https://raw.githubusercontent.com/MicrosoftDocs/visualstudio-docs/master/mac/resources/uninstall-vsmac.sh :

If you haven't dealt with bash script before, you may look at its documentation too: https://docs.microsoft.com/en-us/visualstudio/mac/uninstall

Actually, it is pretty easy. Create a file with extension .sh (for example, vsremover.sh) and paste the code above. Save. Open terminal application, go to the place where you saved the file (for example: cd /Users/yourname/Desktop) and type the following:

Then run it:

BrainiacBrainiac

Not the answer you're looking for? Browse other questions tagged macosuninstallvisual-studio or ask your own question.