Usuário com melhor resposta
Visual Studio encrava constantemente devido a JSLS.Engine

Pergunta
-
Nos últimos dias, o meu VS 2015 tem encravado constantemente. Instalei as Cordova Tools e tenho estado a desenvolver uma app mobile usando IONIC / AngularJS. A minha suspeita é algum bug no intellisense do Javascript, mas não consigo ter a certeza. Normalmente encrava quando estou num ficheiro de Javascript a editá-lo ou a consultar.
No EventLog vem o dump que coloquei em baixo.
Alguém sabe como resolver
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 5FA95F36
Stack:
at Microsoft.VisualStudio.JSLS.Engine.IAuthorFileAuthoring.GetCompletions(Int32, Microsoft.VisualStudio.JSLS.Engine.AuthorCompletionFlags)
at Microsoft.VisualStudio.JSLS.Engine.Proxy.AuthorFileAuthoringProxy+<>c__DisplayClass10_0.<GetCompletions>b__0()
at GuardMethodClass.GuardMethod(System.Func`1<System.Object>, System.Func`2<System.Exception,Boolean>, System.Func`2<System.Exception,System.Object>)
at Microsoft.VisualStudio.JSLS.Shared.ExceptionFilter.Guard(System.Func`1<System.Object>, System.Func`2<System.Exception,Boolean>, System.Func`2<System.Exception,System.Object>)
at Microsoft.VisualStudio.JSLS.Engine.ServiceCore+GuardRecord.Guard()
at Microsoft.VisualStudio.JSLS.Engine.ServiceCore.Guard[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<System.__Canon>, System.Func`1<System.__Canon>)
at Microsoft.VisualStudio.JSLS.Engine.Proxy.Proxy`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GuardAndProxy[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<System.__Canon>, System.Func`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>)
at Microsoft.VisualStudio.JSLS.Engine.Proxy.AuthorFileAuthoringProxy.GetCompletions(Int32, Microsoft.VisualStudio.JSLS.Engine.AuthorCompletionFlags)
at Microsoft.VisualStudio.JSLS.DynamicScriptLoading.ScriptLoaderReferenceUpdateTask.Run()
at Microsoft.VisualStudio.JSLS.Engine.SingleThreadTask.<Execute>b__24_0()
at GuardMethodClass.GuardMethod(System.Func`1<System.Object>, System.Func`2<System.Exception,Boolean>, System.Func`2<System.Exception,System.Object>)
at Microsoft.VisualStudio.JSLS.Shared.ExceptionFilter.Guard(System.Func`1<System.Object>, System.Func`2<System.Exception,Boolean>, System.Func`2<System.Exception,System.Object>)
at Microsoft.VisualStudio.JSLS.Engine.SingleThreadTask.Execute()
at Microsoft.VisualStudio.JSLS.Engine.SingleThreadScheduler.WorkerThreadStart()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
Respostas
-
Bom dia Rui,
Você está com algum problema no arquivo _references.js
Há duas opções para o seu problema, a primeira teoricamente não causa impacto, porém a segunda você poderá ter perda.
1. Clique com o botão direito em _references.js e depois "Update Javascript References".
2. Limpar o arquivo references.js, após isso não é mais Microsoft Visual Studio falhar mais.
Atenciosamente, Roberto Alves
- Marcado como Resposta Marcos SJ terça-feira, 20 de outubro de 2015 12:09
Todas as Respostas
-
Bom dia Rui Pinheiro,
Quando você diz que o Visual Studio "tem encravado", significa que ele está parando de funcionar em meio a um processo?
Se sim, acredito que para conseguir auxiliar a comunidade vai precisar de mais detalhes sobre o projeto.
Atenciosamente
Marcos Roberto de Souza Junior
Esse conteúdo e fornecido sem garantias de qualquer tipo, seja expressa ou implícita
MSDN Community Support
Por favor, lembre-se de Marcar como Resposta as respostas que resolveram o seu problema. Essa e uma maneira comum de reconhecer aqueles que o ajudaram e fazer com que seja mais fácil para os outros visitantes encontrarem a resolução mais tarde.
- Editado Marcos SJ sexta-feira, 16 de outubro de 2015 18:48
-
Bom dia Rui,
Você está com algum problema no arquivo _references.js
Há duas opções para o seu problema, a primeira teoricamente não causa impacto, porém a segunda você poderá ter perda.
1. Clique com o botão direito em _references.js e depois "Update Javascript References".
2. Limpar o arquivo references.js, após isso não é mais Microsoft Visual Studio falhar mais.
Atenciosamente, Roberto Alves
- Marcado como Resposta Marcos SJ terça-feira, 20 de outubro de 2015 12:09