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

Exception when viewing object from SQL Server Object Explorer #115

Open
RandScullard opened this issue Feb 5, 2014 · 0 comments
Open

Exception when viewing object from SQL Server Object Explorer #115

RandScullard opened this issue Feb 5, 2014 · 0 comments

Comments

@RandScullard
Copy link

In Visual Studio 2012, in the SQL Server Object Explorer window, I right-clicked a table constraint and chose the View Code command. The following exception occurred:

System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetDirectoryName(String path)
   at GitScc.Diff.DiffUpdateBackgroundParser..ctor(ITextBuffer textBuffer, ITextBuffer documentBuffer, TaskScheduler taskScheduler, ITextDocumentFactoryService textDocumentFactoryService, IGitCommands commands)
   at GitScc.Diff.ViewModel.DiffMarginViewModel..ctor(DiffMargin margin, IWpfTextView textView, ITextDocumentFactoryService textDocumentFactoryService, IGitCommands gitCommands)
   at GitScc.Diff.DiffMargin..ctor(IWpfTextView textView, DiffMarginFactory factory)
   at GitScc.Diff.DiffMarginFactory.CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin)
   at Microsoft.VisualStudio.Text.Utilities.ContainerMargin.<AddMargins>b__2(IWpfTextViewMarginProvider mp)
   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)

Since a SQL object doesn't have a path in the usual sense, I can see why NormalizePath wouldn't like it.

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

1 participant