rosieks / rosieks.visualstudio.angular Goto Github PK
View Code? Open in Web Editor NEWA set of extensions to Visual Studio which improves developer productivity.
A set of extensions to Visual Studio which improves developer productivity.
Hello,
if I try to edit an html file in VS2017 Community, an error message appears.
error from Activity.log:
System.ComponentModel.Composition.CompositionContractMismatchException:
Cannot cast the underlying exported value of type 'Microsoft.Html.Editor.Completion.Def.IHtmlCompletionListProvider' to type 'Microsoft.Html.Editor.Completion.Def.IHtmlCompletionListProvider'.
at System.ComponentModel.Composition.ExportServices.CastExportedValue[T](ICompositionElement element, Object exportedValue)
at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export)
at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass11_0`2.<CreateStronglyTypedLazyOfTM>b__1()
at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Lazy`1.get_Value()
at Microsoft.Html.Editor.Completion.Engine.HtmlCompletionEngine.GetElementCompletionProviders(String completionType, String elementPrefix, String elementName)
at Microsoft.Html.Editor.Completion.Engine.HtmlCompletionEngine.GetCompletionForAttributes(ElementNode element, String& completionType)
at Microsoft.Html.Editor.Completion.Engine.HtmlCompletionEngine.GetAttributeNameCompletions(RootNode rootNode, Int32 position, ElementNode element, AttributeNode attribute, ITextRange& range, String& completionType)
at Microsoft.Html.Editor.Completion.Engine.HtmlCompletionEngine.GetCompletionForLocation(RootNode rootNode, IContentType contentType, Int32 position, ElementNode& element, AttributeNode& attribute, ITextRange& range, String& completionType, Boolean autoShownCompletion)
at Microsoft.Html.Editor.Completion.HtmlCompletionSource.PopulateCompletionList(Int32 position, ICompletionSession session, IList`1 completionSets) at Microsoft.Html.Editor.Completion.HtmlCompletionSource.AugmentCompletionSession(ICompletionSession session, IList`1 completionSets)
at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.Start()
at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionBroker.TriggerCompletion(ITextView textView)
at Microsoft.Web.Editor.Completion.CompletionController.TriggerCompletion()
at Microsoft.Web.Editor.Completion.CompletionController.ShowCompletion(Boolean autoShownCompletion)
at Microsoft.Web.Editor.Completion.CompletionController.OnPostTypeChar(Char typedCharacter)
at Microsoft.Html.Editor.Completion.HtmlCompletionController.OnPostTypeChar(Char typedCharacter)
at Microsoft.Web.Editor.Completion.TypingCommandHandler.OnPostTypeChar(Char typedChar)
at Microsoft.Web.Editor.Completion.TypingCommandHandler.PostProcessInvoke(CommandResult result, Guid group, Int32 id, Object inputArg, Object& outputArg)
at Microsoft.Html.Editor.Commands.HtmlTypingCommandHandler.PostProcessInvoke(CommandResult result, Guid group, Int32 id, Object inputArg, Object& outputArg)
at Microsoft.Web.Editor.Controller.Controller.Invoke(Guid group, Int32 id, Object inputArg, Object& outputArg)
at Microsoft.Web.Editor.Controller.ViewController.Invoke(Guid group, Int32 id, Object inputArg, Object& outputArg)
at Microsoft.Html.Editor.Commands.HtmlMainController.Invoke(Guid group, Int32 id, Object inputArg, Object& outputArg)
at Microsoft.VisualStudio.Html.Interop.CommandTargetToOleShim.Exec(Guid& guidCommandGroup, UInt32 commandID, UInt32 commandExecOpt, IntPtr variantIn, IntPtr variantOut)
at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
at Rosieks.VisualStudio.Angular.Commands.CommandTargetBase`1.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
in D:\projects\Rosieks.VisualStudio.Angular\Rosieks.VisualStudio.Angular\Commands\CommandTargetBase.cs:line 56
at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
at Rosieks.VisualStudio.Angular.Commands.CommandTargetBase`1.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
in D:\projects\Rosieks.VisualStudio.Angular\Rosieks.VisualStudio.Angular\Commands\CommandTargetBase.cs:line 56
at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(Guid cmdGroup, UInt32 cmdID, Object inParam)
at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(TextCompositionEventArgs args)
at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c.<DispatchTextInputEvents>b__6_0(KeyProcessor p, TextCompositionEventArgs args)
at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass10_1`1.<Dispatch>b__0()
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
Using ASPNET core with Angular 4.0, the html file is a component template. It does not matter what you edit (tag parameter, text, tags ....) the error appears once at the 1st html file that was opened after VS is started. After this error, working on the html code is possible without any problem.
Hi
I hope this isn't too picky, but it would be good if this product was named correctly - ie. AngularJS instead of Angular (which implies Angular 2/4 at present).
It comes up in google for the wrong version of Angular :)
After installing v0.5.8, vs2017 opens an error popup indicating "An exception has been encountered. This may be caused by an extension" and dumps the following information in the ActivityLog.xml:
System.Collections.Generic.KeyNotFoundException: key
 at Microsoft.VisualStudio.Utilities.PropertyCollection.GetProperty(Object key)
 at Rosieks.VisualStudio.Angular.Completion.JsCommandFilter.GetCaretClassifications() in D:\projects\Rosieks.VisualStudio.Angular\Rosieks.VisualStudio.Angular\Completion\JavaScriptIntellisenseController.cs:line 122
 at Rosieks.VisualStudio.Angular.Completion.JsCommandFilter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in D:\projects\Rosieks.VisualStudio.Angular\Rosieks.VisualStudio.Angular\Completion\JavaScriptIntellisenseController.cs:line 135
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Rosieks.VisualStudio.Angular.Commands.CommandTargetBase'1.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in D:\projects\Rosieks.VisualStudio.Angular\Rosieks.VisualStudio.Angular\Commands\CommandTargetBase.cs:line 56
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Rosieks.VisualStudio.Angular.Commands.CommandTargetBase'1.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in D:\projects\Rosieks.VisualStudio.Angular\Rosieks.VisualStudio.Angular\Commands\CommandTargetBase.cs:line 56
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.VsMouseProcessor.DisplayContextMenu(Point mousePosition)
 at Microsoft.VisualStudio.Editor.Implementation.VsMouseProcessor.HandlePreprocessRightButtonUp(InputEventArgs e)
 at Microsoft.VisualStudio.Editor.Implementation.VsMouseProcessor.PreprocessMouseRightButtonUp(MouseButtonEventArgs e)
 at Microsoft.VisualStudio.Text.Utilities.WpfMouseProcessor.<>c__DisplayClass41_0.<UIElement_MouseRightButtonUp>b__0(IMouseProcessor p)
 at Microsoft.VisualStudio.Text.Utilities.WpfMouseProcessor.<>c__DisplayClass56_1.<MouseProcessorHandler>b__0()
 at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
Don't understand this error. I have a D: drive but no "projects" folder on root as indicated in the error message, not sure if that relevent to my local workstation.
Hi,
Thanks for your vs extension, it was useful for VS 2017. I just updated to VS 2019 and I miss using your extension. Will you plan to update to the new version of VS?
thanks
Hi another issue with this is that when I try to go to definition in any typescript files by pressing F12 on simple variables or functions or select it in menu I face an error message window with nothing but "KEY" written as the error's description and Error as the title.
And there's nothing in visual studio as log
Although peek definition is working (Alt+F12)
When I'm working on a directive, trying to edit a templateUrl
, I experience the following issues:
backspace
gives me a error dialogs "Cannot find a part of the path: path I'm typing in
(of course it can't find the path, as I'm not finished typing it yet!)backspace
keyI like this plugin, but I'm disabling it for now, as this bug is getting rather frustrating.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.