Open MCB-Algirdas opened 8 years ago
No, this should just work. What version of ReSharper are you using?
I'm using Resharper Ultimate 2016.1.2 I added some screenshots.
What are the two screenshots? They seem to be showing the same file?
Yes, In the first one I entered "ng" and you see that it has some suggestions If I continue forward by entering "ng-" all suggestions disappear
Not sure if that is relevant.
Ah. There is a bug where the "abbreviations" still appear if there are no parsed directives. Is the angular.js file included in the project? Is it the normal version or minimised? The parser doesn't work with the minimised version, so it requires the normal version to be a part of the project, even if it's not deployed.
There are actually two versions of angular included 1.2.27 and 1.5.7 Removing one does not help.
Are you able to share the project? You can email it to me confidentially at matt.ellis at jetbrains.com
The only other thing I can suggest right now is to clear the caches (ReSharper → Options → General → Clear caches) and restart Visual Studio.
Sorry but I cannot share the project. I just tried updating the AngularJS plugin and I've got a lot of errors after the installation. Could this have anything to do with it? The log file is pretty big. 400k+ lines
Most of it looks like this:
--- EXCEPTION #2/2 [LoggerException]
Message = “Component descriptor JetBrains.ReSharper.Plugins.AngularJS.Psi.Html.AngularJsHtmlElementsProvider [Singleton, Corrupted] is corrupted and cannot be accessed”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Application.Components.EnumerableValueResolver.EnumerableComponentDescriptor`1.<GetEnumerator>d__0.MoveNext()
at JetBrains.ReSharper.Psi.Html.Impl.Html.HtmlDeclaredElementsCache.GetAllTagsSymbolTable(IPsiSourceFile projectFile)
at JetBrains.ReSharper.Psi.Html.Impl.References.HtmlTagReference.ResolveHtmlTagDeclaredElement()
at JetBrains.ReSharper.Psi.Html.Impl.References.HtmlTagReference.Resolve(ISymbolTable symbolTable, IAccessContext context)
at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.QualifiableCheckedReferenceBase`1.ResolveWithoutCache()
at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.TreeReferenceBase`1.ResolveWithoutCache(TreeReferenceBase`1 reference)
at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.ResolveUtil.ResolveWithCache[T](T reference, Func`2 resolveWithoutCache)
at JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve.TreeReferenceBase`1.Resolve()
at JetBrains.ReSharper.Daemon.Html.Stages.GlobalErrorStage.GlobalErrorsProcess.ProcessBeforeInterior(ITreeNode element, IHighlightingConsumer consumer)
at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants[TContext](ITreeNode root, IRecursiveElementProcessor`1 processor, TContext context)
at JetBrains.ReSharper.Daemon.Html.Stages.GlobalErrorStage.GlobalErrorsProcess.Execute(Action`1 committer)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass13.<>c__DisplayClass16.<DoHighlighting>b__f(IDaemonStage stage)
at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.<>c__DisplayClass13.<>c__DisplayClass1d.<DoHighlighting>b__11()
at JetBrains.Application.Threading.Tasks.TaskBarrier.<>c__DisplayClass10.<>c__DisplayClass12.<EnqueueDependentJobs>b__e()
at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClasse.<Create>b__a(Object state)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
”
I have installed the plugin and added the angular.js file into the project but I still do not get any suggestions on my aspx files and all existing ng tags are highlighted as errors. controllers.js works fine.
Am I doing something wrong or there is support for aspx?