MgSam / DataTableVisualizer

A custom, non-modal DataTable Visualizer with built in search.
7 stars 3 forks source link

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

Open bp2008 opened 6 years ago

bp2008 commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

Apologies for the inconvenience. Microsoft completely broke the extension model this plugin relied upon with one of their recent VS updates. I will have to rework how this extension works when I get some time.

On Mon, Sep 10, 2018 at 12:29 PM theit8514 notifications@github.com wrote:

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).

& .\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 "rnrn//ShineTools.DataTableVisualizerrn[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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MgSam/DataTableVisualizer/issues/1#issuecomment-419975833, or mute the thread https://github.com/notifications/unsubscribe-auth/AB3-Aj9lypLTxOgSviYpR-mTaSdh5_fuks5uZpNqgaJpZM4STpcY .