madskristensen / WebEssentials2015

A Visual Studio extension for web developers
Other
300 stars 92 forks source link

Crash. The Uri scheme is too long. #241

Open wstaelens opened 7 years ago

wstaelens commented 7 years ago

I was typing and changing the source from the image tag. I started to type in a new source at the beginning (while the other path was still there, so that I could quickly type it over, because it was only a minor difference in the new path). Suddenly when I was typing visual studio gave an error message that something crashed and I should check activitylog.xml.

<img class="img-responsive" src="@Foo.Bar.Web.Logic.Media.. @Foo.Bar.Web.Logic.MediaFileHelperCreator.Create(i).GetFilePathThumbnail(@Foo.Bar.Domain.Model.ThumbnailFormat.Small, true)" alt="@i.Title" />

Turned out to be from web essentials...

ActivityLog.xml from VisualStudio: file:///C:/Users//AppData/Roaming/Microsoft/VisualStudio/14.0/ActivityLog.xml

1090 ERROR System.UriFormatException: Invalid URI: The Uri scheme is too long. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at System.Uri..ctor(String uriString, UriKind uriKind) at MadsKristensen.EditorExtensions.ProjectHelpers.ToAbsoluteFilePath(String relativeUrl, String projectRoot, String baseFolder) in C:\projects\webessentials2015\EditorExtensions\Shared\Helpers\ProjectHelpers.cs:line 207 at MadsKristensen.EditorExtensions.ProjectHelpers.ToAbsoluteFilePath(String relativeUrl, String relativeToFile) in C:\projects\webessentials2015\EditorExtensions\Shared\Helpers\ProjectHelpers.cs:line 181 at MadsKristensen.EditorExtensions.ImageQuickInfo.GetFullUrl(String text, String sourceFilename) in C:\projects\webessentials2015\EditorExtensions\CSS\QuickInfo\Image\ImageQuickInfo.cs:line 103 at MadsKristensen.EditorExtensions.ImageQuickInfo.GetFullUrl(String text, ITextBuffer sourceBuffer) in C:\projects\webessentials2015\EditorExtensions\CSS\QuickInfo\Image\ImageQuickInfo.cs:line 85 at MadsKristensen.EditorExtensions.Html.ImageHtmlQuickInfo.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan& applicableToSpan) in C:\projects\webessentials2015\EditorExtensions\HTML\QuickInfo\ImageHtml\ImageQuickInfo.cs:line 39 at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate() at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start() at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoBroker.TriggerQuickInfo(ITextView textView, ITrackingPoint triggerPoint, Boolean trackMouse) at Microsoft.Html.Editor.QuickInfo.HtmlQuickInfoController.OnMouseHover(Object sender, MouseHoverEventArgs e) at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()

Editor or Editor Extension 2016/11/21 11:08:28.955 1091 ERROR System.UriFormatException: Invalid URI: The Uri scheme is too long. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at System.Uri..ctor(String uriString, UriKind uriKind) at MadsKristensen.EditorExtensions.ProjectHelpers.ToAbsoluteFilePath(String relativeUrl, String projectRoot, String baseFolder) in C:\projects\webessentials2015\EditorExtensions\Shared\Helpers\ProjectHelpers.cs:line 207 at MadsKristensen.EditorExtensions.ProjectHelpers.ToAbsoluteFilePath(String relativeUrl, String relativeToFile) in C:\projects\webessentials2015\EditorExtensions\Shared\Helpers\ProjectHelpers.cs:line 181 at MadsKristensen.EditorExtensions.ImageQuickInfo.GetFullUrl(String text, String sourceFilename) in C:\projects\webessentials2015\EditorExtensions\CSS\QuickInfo\Image\ImageQuickInfo.cs:line 103 at MadsKristensen.EditorExtensions.ImageQuickInfo.GetFullUrl(String text, ITextBuffer sourceBuffer) in C:\projects\webessentials2015\EditorExtensions\CSS\QuickInfo\Image\ImageQuickInfo.cs:line 85 at MadsKristensen.EditorExtensions.Html.ImageHtmlQuickInfo.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan& applicableToSpan) in C:\projects\webessentials2015\EditorExtensions\HTML\QuickInfo\ImageHtml\ImageQuickInfo.cs:line 39 at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate() at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start() at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e) at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()

Editor or Editor Extension 2016/11/21 11:08:28.957