peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core

Home Page:https://www.peachpie.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error : Object reference not set to an instance of an object.

asika32764 opened this issue · comments

Trying to run a PHP project but shows this message, it's not mention any php files.

Is there any way to find where is the cause?

C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error : Object reference
not set to an instance of an object. [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at Pchp.CodeAn
alysis.DiagnosticBagExtensions.GetLocation(SyntaxTree tree, ITreeNode expr) in D:\a\1\s\src\Peachpie.CodeAnalysis\Utilities
\DiagnosticBagExtensions.cs:line 18 [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at Pchp.CodeAn
alysis.Semantics.SemanticsBinder.BindExpressionCore(Expression expr, BoundAccess access) in D:\a\1\s\src\Peachpie.CodeAnaly
sis\Semantics\SemanticsBinder.cs:line 552 [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at Pchp.CodeAn
alysis.Semantics.SemanticsBinder.BindUnsetStmt(VariableUse varuse) in D:\a\1\s\src\Peachpie.CodeAnalysis\Semantics\Semantic
sBinder.cs:line 393 [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at System.Linq
.Enumerable.SelectArrayIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func) [E:\www\dotnet\web\Website\W
ebsite.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at System.Linq
.Enumerable.SelectArrayIterator`2.ToList() [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at Pchp.CodeAn
alysis.Semantics.SemanticsBinder.BindUnsetStmt(UnsetStmt stmt) in D:\a\1\s\src\Peachpie.CodeAnalysis\Semantics\SemanticsBin
der.cs:line 382 [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at Pchp.CodeAn
alysis.Semantics.SemanticsBinder.BindStatementCore(Statement stmt) in D:\a\1\s\src\Peachpie.CodeAnalysis\Semantics\Semantic
sBinder.cs:line 357 [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at Pchp.CodeAn
alysis.Semantics.Graph.BuilderVisitor.VisitUnsetStmt(UnsetStmt x) in D:\a\1\s\src\Peachpie.CodeAnalysis\Semantics\Graph\Bui
lderVisitor.cs:line 577 [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at Pchp.CodeAn
alysis.EnumeratorExtension.ForEach[T](IEnumerable`1 enumerable, Action`1 func) in D:\a\1\s\src\Peachpie.CodeAnalysis\Utilit
ies\EnumeratorExtension.cs:line 62 [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at Pchp.CodeAn
alysis.Semantics.Graph.BuilderVisitor..ctor(IList`1 statements, SemanticsBinder binder) in D:\a\1\s\src\Peachpie.CodeAnalys
is\Semantics\Graph\BuilderVisitor.cs:line 176 [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at System.Thre
ading.Tasks.Parallel.<>c__DisplayClass43_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int64 timeout, Boo
lean& replicationDelegateYieldedBeforeCompletion) [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error : --- End of stack
trace from previous location --- [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at System.Thre
ading.Tasks.Parallel.<>c__DisplayClass43_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int64 timeout, Boo
lean& replicationDelegateYieldedBeforeCompletion) [E:\www\dotnet\web\Website\Website.msbuildproj]
C:\Users\ezios\.nuget\packages\peachpie.net.sdk\1.1.9\build\Peachpie.NET.Core.Sdk.targets(245,5): error :    at System.Thre
ading.Tasks.TaskReplicator.Replica.Execute() [E:\www\dotnet\web\Website\Website.msbuildproj]
dotnet watch ⌚ Process id 3368 ran for 278052ms
dotnet watch ⌚ Running MSBuild target 'GenerateWatchList' on 'E:\www\dotnet\web\Server\Server.csproj'
dotnet watch 🚀 Started 'C:\Program Files\dotnet\dotnet.exe' with arguments 'msbuild /nologo E:\www\dotnet\web\Server\Server.csproj /p:_DotNetWatchListFile=C:\Users\ezios\AppData\Local\Temp\tmphliiqo.tmp /nologo /v:n /t:GenerateWatchList /p:DotNetWatchBuild=true /p:DesignTimeBuild=true "/p:CustomAfterMicrosoftCommonTargets=C:\Program Files\dotnet\sdk\8.0.303\DotnetTools\dotnet-watch\8.0.303-servicing.24317.6\tools\net8.0\any\DotNetWatch.targets" "/p:CustomAfterMicrosoftCommonCrossTargetingTargets=C:\Program Files\dotnet\sdk\8.0.303\DotnetTools\dotnet-watch\8.0.303-servicing.24317.6\tools\net8.0\any\DotNetWatch.targets" /p:_DotNetWatchTraceOutput=true': process id 27720
dotnet watch ⌚ Process id 27720 ran for 4153ms
dotnet watch ⌚ Watching 4641 file(s) for changes
dotnet watch ⏳ Waiting for a file to change before restarting dotnet...

Thank you for reporting the issue.

Fixed in source.