VS 2015 diagnostic tools failed unexpectedly
Asked Answered
A

2

19

I try to run diagnostic tools in Visual Studio 2015 Community for a test project.

My code:

#include<iostream>

int main()
{
  for (;;)
  {
    std::cout << "Hello, World!";
    getchar();
  }
  return 0;
}

I use x64 platform in configuration Debug. The Window Diagnostic Tools fail unexpectedly, saying the following:

The diagnostic tools failed unexpectedly. The Diagnostic Hub output in the Output window may contain additional information.

Image1

Diagnostic Hub:

The scratch directory cannot have a trailing junction point.

What does it mean? How do I correct this error?

Image2

Antacid answered 27/8, 2015 at 10:56 Comment(1)
Upvoting because I can find no reference to this on Google at all (aside from this question and a terrible nasty fraudulent scraper git)Let
E
5

It's complaining that the "scratch directory" isn't actually a directory but some kind of reparse point. Reparse points are used to implement various NTFS file system features, notably junction points and symbolic links.

I'm not sure which directory the scratch directory is supposed to be, but my guess is that it's your TEMP directory (normally something like C:\Users\ROSSRI~1\AppData\Local\Temp) and you've done something like moved it to another drive using a junction point or symbolic link. You can check to see if your TEMP directory isn't really a directory by entering the following command in the Windows command prompt:

for /d %i in ("%TEMP%") do @echo %~ai

If it prints d-------- then it's a normal directory, but if it prints d-------l then it's a junction point.

Assuming I'm correct the solution would be either to move the TEMP directory back or point the TEMP and TMP environment variables to the location where you moved it.

Echeverria answered 27/8, 2015 at 19:5 Comment(0)
C
1

Just :) restart your computer (yes nothing else helped me).

Canonist answered 19/6, 2016 at 6:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.