Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShineTools.DataTableVisualizer not in the dropdown list of visualizers #1

Open
bp2008 opened this issue Feb 26, 2018 · 3 comments
Open

Comments

@bp2008
Copy link

bp2008 commented Feb 26, 2018

Hello!

I'm using Visual Studio Professional 2017 Version 15.5.6 where the built-in DataTable Visualizer doesn't work ("Could not load this custom viewer") so I installed yours. Your DataTable Visualizer panel appeared when I started Visual Studio, but when I'm debugging and I try to visualize a DataTable, only the default "DataTable Visualizer" appears in the dropdown list. There is no "ShineTools.DataTableVisualizer" as expected from your instructions.

image

The new panel remains empty like this:

image

@MgSam
Copy link
Owner

MgSam commented Mar 17, 2018

@bp2008 Hi! Sorry I missed this post sooner. Had to fix up my Github notification settings.

Can you check C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers and verify that you see ShineTools.DataTableVisualizer.dll?

After that, can you click on the Original folder (in the same directory) and open autoexp.cs? You should see the following line at the end of the file:

[assembly: DebuggerVisualizer(typeof(ShineTools.DataTableVisualizer), Target = typeof(System.Data.DataTable))]

This file is where custom visualizers are registered.

I did just notice after updating my Visual Studio that the update process wiped out all custom visualizers registered, so if that's the case, please try re-installing the extensions. I'll have to look to see if there's any solution to this.

@theit8514
Copy link

theit8514 commented Sep 10, 2018

Having this problem as well. The visualizer DLL is in the correct spot, but there is no Original folder and no autoexp.cs file. The install powershell script encounters a lot of errors but the installer did not seem to detect that the install failed.

I think the script could use some checking to see if the directory and file exists before trying to use them. I also don't seem to have msbuild 15 installed at the location expected (currently C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\Roslyn\csc.exe).

edit: I have Enterprise installed, so I guess I didn't correct the install path when the installer loaded. My bad on that part.

& .\InstallDataTableVisualizer.ps1 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional"
cp : Cannot find path 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\Original\autoexp.cs' because it does not exist.
At C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\InstallDataTableVisualizer.ps1:13 char:1
+ cp $autoexp ($autoexp + ".bak")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...inal\autoexp.cs:String) [Copy-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
 
cat : Cannot find path 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\Original\autoexp.cs' because it does not exist.
At C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\InstallDataTableVisualizer.ps1:17 char:1
+ cat $autoexp | where {$_ -notmatch 'ShineTools.DataTableVisualizer'}  ...
+ ~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...inal\autoexp.cs:String) [Get-Content], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
 
cp : Cannot find path 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\Original\autoexp.cs.tmp' because it does not exist.
At C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\InstallDataTableVisualizer.ps1:18 char:1
+ cp $autoexpTmp $autoexp
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...\autoexp.cs.tmp:String) [Copy-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
 
ac : Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\Original\autoexp.cs'.
At C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\InstallDataTableVisualizer.ps1:22 char:1
+ ac $autoexp "`r`n`r`n//ShineTools.DataTableVisualizer`r`n[assembly: D ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...inal\autoexp.cs:String) [Add-Content], DirectoryNotFoundException
    + FullyQualifiedErrorId : GetContentWriterDirectoryNotFoundError,Microsoft.PowerShell.Commands.AddContentCommand
 
cd : Cannot find path 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\Original\' because it does not exist.
At C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\InstallDataTableVisualizer.ps1:25 char:1
+ cd $autoexpDir
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...izers\Original\:String) [Set-Location], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
 
& : The term 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn\csc.exe' is not recognized as the name of a cmdlet, function, script file, or operable 
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Packages\Debugger\Visualizers\InstallDataTableVisualizer.ps1:28 char:3
+ & $csc /t:library $autoexp /lib:$visualizersDir /r:ShineTools.DataTab ...
+   ~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...\Roslyn\csc.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

@MgSam
Copy link
Owner

MgSam commented Sep 11, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants