VS 2017 Nov 22nd update fails.

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

VS 2017 Nov 22nd update fails.

Postby sawebdev » November 23rd, 2017, 9:16 pm

For some reason I can't install the latest VS Tools. Here's where in the log it crashes... Let me know if you need more of the log. Thanks.

2017-11-23 1:15:15 PM - Package '8069B697-77E0-411D-9CE2-6E8FC83D1DFA,version=1.25.10428' failed to install. System.IO.IOException: The file 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\DEVSENSE\PHP Tools\VS15.0\Devsense.PHP.BuildTasks.dll' already exists.
at Microsoft.VisualStudio.Setup.Installer.VsixInstaller.InstallCore(String localPath, String installDir, InstallablePackage pkg)
at Microsoft.VisualStudio.Setup.Installer.InstallerBase.InstallHelper(InstallData installData)
2017-11-23 1:15:15 PM - Skipping cache of package 'Component.8069B697-77E0-411D-9CE2-6E8FC83D1DFA,version=1.25.10428' since the package or a parent package had a vital failure.
2017-11-23 1:15:28 PM - Install Error : Microsoft.VisualStudio.Setup.PackageFailureException: Package '8069B697-77E0-411D-9CE2-6E8FC83D1DFA' failed to install
at Microsoft.VisualStudio.Setup.InstallOperation.Run(CancellationToken token)
at Microsoft.VisualStudio.Setup.Engine.RunOperation(InstallOperation installOperation, CancellationToken token, ExecuteAction action, ITelemetryOperation telemetryOperation)
at Microsoft.VisualStudio.Setup.Engine.RunCoreOperation(InstallOperation coreOperation, ExecuteAction action, ITelemetryOperation telemetryOperation, CancellationToken token)
at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.PerformSetupEngineInstall(InstallableExtensionImpl extension, Boolean installPerMachine, Boolean isPackComponent, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, IProgress`1 progress, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion, IInstalledExtension& newExtension)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallInternal(InstallableExtensionImpl extension, InstallFlags installFlags, IDictionary`2 extensionsInstalledSoFar, List`1 extensionsUninstalledSoFar, IInstalledExtensionList modifiedInstalledExtensionsList, AsyncOperation asyncOp, IProgress`1 progress, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.BeginInstall(IInstallableExtension installableExtension, InstallFlags installFlags, AsyncOperation asyncOp, Version targetedVsVersion)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.InstallWorker(IInstallableExtension extension, InstallFlags installFlags, AsyncOperation asyncOp)
sawebdev
 
Posts: 21
Joined: February 15th, 2014, 6:44 pm

Re: VS 2017 Nov 22nd update fails.

Postby lieszkol » November 26th, 2017, 3:04 pm

I'm having the same problem. Fresh install of VS2017 + PHP Tools 1.25.10428, VS shows that an error occurred every time I open my solution.

Disabling some extensions seems to have fixed it. Not sure which one mattered, perhaps Razor? In any case this is what I disabled:
- Razor Language Services
- Typescript Build for Microsoft Visual Studio
- Typescript for Visual Studio
- Visual Studio Extension for TextMate Grammars

Same debug message (in English):
System.ArgumentException: Value does not fall within the expected range.
 at Devsense.PHP.ControlFlow.TypeRef.TypeRefContext.GetTypeMask(TypeRef tref, Boolean includesSubclasses)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.TablesAnalysisVisitor.HandleFunctionCall(DirectStMtdCall fcn)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.ExpressionAnalysisVisitor.VisitDirectStMtdCall(DirectStMtdCall x)
 at Devsense.PHP.Syntax.Ast.DirectStMtdCall.VisitMe(TreeVisitor visitor)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.ExpressionAnalysisVisitor.VisitCallSignature(CallSignature callsig)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.TablesAnalysisVisitor.HandleFunctionCall(ITableFunction info, QualifiedName fncName, Span fncNameSpan, TypeRefMask ofType, CallSignature callsignature)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.TablesAnalysisVisitor.<>c__DisplayClass48_0.<HandleMethodCall>b__1(ITableFunction info)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.TablesAnalysisVisitor.HandleMemberUseInternal[T](TypeRefMask ofType, Span ofTypeSpan, TypeRef ofTypeRef, Func`2 resolveMember, Func`2 evaluateMember, Action evaluateUnknownMember, Func`2 mergeMembers, Action checkMemberNotFound, Action`3 checkTypeRef)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.TablesAnalysisVisitor.HandleMethodCall(Name name, Span nameSpan, TypeRefMask ofType, Span ofTypeSpan, TypeRef ofTypeRef, CallSignature callsignature)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.TablesAnalysisVisitor.HandleFunctionCall(DirectStMtdCall fcn)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.ExpressionAnalysisVisitor.VisitDirectStMtdCall(DirectStMtdCall x)
 at Devsense.PHP.Syntax.Ast.DirectStMtdCall.VisitMe(TreeVisitor visitor)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.ExpressionAnalysisVisitor.VisitAssignEx(VarLikeConstructUse lValue, Expression rValue, Operations op)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.TablesAnalysisVisitor.VisitAssignEx(VarLikeConstructUse lValue, Expression rValue, Operations op)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.ExpressionAnalysisVisitor.VisitValueAssignEx(ValueAssignEx x)
 at Devsense.PHP.Syntax.Ast.ValueAssignEx.VisitMe(TreeVisitor visitor)
 at Devsense.PHP.Syntax.TreeVisitor.VisitElement(LangElement element)
 at Devsense.PHP.Syntax.TreeVisitor.VisitExpressionStmt(ExpressionStmt x)
 at Devsense.PHP.Syntax.Ast.ExpressionStmt.VisitMe(TreeVisitor visitor)
 at Devsense.PHP.Syntax.TreeVisitor.VisitElement(LangElement element)
 at Devsense.PHP.ControlFlow.Graph.GraphVisitor.VisitCFGBlockStatements(Block x)
 at Devsense.PHP.ControlFlow.Graph.GraphVisitor.VisitCFGBlockInternal(Block x)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.AnalysisVisitor.VisitCFGBlock(Block x)
 at Devsense.PHP.ControlFlow.Graph.Block.Visit(GraphVisitor visitor)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.AnalysisVisitor.VisitCFG(ControlFlowGraph x)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.ExpressionAnalysisVisitor.VisitCFG(ControlFlowGraph x)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.TablesAnalysisVisitor.VisitCFG(ControlFlowGraph x)
 at Devsense.PHP.ControlFlow.Analysis.Visitors.AnalysisVisitor.AnalyseGraph(ControlFlowGraph graph, LocalsState initialFlowState)
 at Devsense.PHP.ControlFlow.Analysis.State.AnalyseCfg(ControlFlowGraph cfg, LambdaFunctionExprHandler handleLambdaExpr,
lieszkol
 
Posts: 2
Joined: January 21st, 2017, 9:06 am

Re: VS 2017 Nov 22nd update fails.

Postby Miloslav Beno » November 27th, 2017, 2:32 pm

Hello,

Thanks for the message.

1. Installation issue. This happens because VSIX installer from VS2017 cannot uninstall previous version of PHP Tools automatically. Please uninstall PHP Tools first in the Extensions and Updates menu directly in VS

2. May I ask what PHP version do you have setup in the project properties (if you are using a project)? This is bug that happens in case of using PHP 7.2 and you are using type hint object. Anyway we've fixed it internally and we will release update as soon as possible.

Thanks!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1153
Joined: January 7th, 2012, 8:36 pm

Re: VS 2017 Nov 22nd update fails.

Postby sawebdev » November 28th, 2017, 5:10 am

I am using PHP 7.1 in my project.

And yes, that helped install the update. Thanks
sawebdev
 
Posts: 21
Joined: February 15th, 2014, 6:44 pm

Re: VS 2017 Nov 22nd update fails.

Postby Miloslav Beno » November 28th, 2017, 12:44 pm

Thank you,

It seems this happens when using Custome server. There will be update today which will fix it.

Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1153
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 4 guests

cron

User Control Panel

Login

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 4 guests
Phalanger