ScriptGrammarParser.cs' could not be found in Source Code

Sep 17, 2012 at 6:02 PM
Edited Sep 17, 2012 at 6:05 PM

17097, 17090,  ...

Errors:

Source file 'Parsing\ScriptGrammarParser.cs' could not be found (CS2001)
Source file 'Parsing\ScriptGrammarLexer.cs' could not be found (CS2001)

Coordinator
Sep 17, 2012 at 6:55 PM

 

Those two files are auto-generated by Antlr. If you run Build.bat then everything should build correctly. You'll need to install NAnt andnantcontrib first though, and ensure your system environment PATH variable points to the location of NAnt.exe

I'll write a full guide to building the solution tomorrow but I hope this is enough to get you going


Thanks

Stu

Coordinator
Sep 18, 2012 at 1:55 PM

I've added this page which will hopefully describe the steps involved in building the project

https://www.rightcalc.com/blog/servicemon/developers/

Jun 26, 2013 at 9:43 AM
I am getting the error
Source file 'ParsingScriptGrammarParser.cs' could not be found
Source file 'ParsingScriptGrammarLexer.cs' could not be found
I have tried by running Build.bat file also but still the error does not resolve.

Thanks,
Shipra
Coordinator
Jun 26, 2013 at 10:50 AM
This is an auto-generated file (produced by antlr). Running build.bat should do the trick. Check the build log for errors.

thanks,
Stu

Jun 27, 2013 at 4:01 AM
Edited Jun 27, 2013 at 5:34 AM
Hi Stu, As proposed by you I have tried to run Build.bat but our build is unsuccessful/Failed. I have attached the build log for errors . Can you please suggest us the possible steps to successfully build the solution as we are in urgent requirement. Thanks, Shipra
Coordinator
Jun 27, 2013 at 8:45 AM
The attachment has been stripped out by CodePlex. Please include the log as plain text
Thanks
Stu

Jun 27, 2013 at 8:49 AM

Hi Stu,

Please see the log below and respond for the solution ASAP.

Buildfile: file:///D:/servicemon-20002/servicemon-20002/branches/v1.1.0/Everything.build

Target framework: Microsoft .NET Framework 4.0

Target(s) specified: AllExceptUpload

AllExceptUpload:

GenerateAssemblyInfo:

BuildDotNetComponents:

[exec] Microsoft (R) Build Engine version 4.0.30319.17929

[exec] [Microsoft .NET Framework, version 4.0.30319.17929]

[exec] Copyright (C) Microsoft Corporation. All rights reserved.

[exec]

[exec] Build started 6/27/2013 10:58:42 AM.

[exec] 1>Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\ServiceMonitor.sln" on node 1 (Rebuild target(s)).

[exec] 1>ValidateSolutionConfiguration:

[exec] Building solution configuration "Release|Mixed Platforms".

[exec] 1>Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\ServiceMonitor.sln" (1) is building "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UnitTests\UnitTests.csproj.metaproj" (2) on node 1 (Rebuild target(s)).

[exec] 2>Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UnitTests\UnitTests.csproj.metaproj" (2) is building "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UI\UI.csproj.metaproj" (3) on node 1 (Rebuild target(s)).

[exec] 3>Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UI\UI.csproj.metaproj" (3) is building "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Operations\Operations.csproj" (4) on node 1 (Rebuild target(s)).

[exec] 4>Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Operations\Operations.csproj" (4) is building "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Framework\Framework.csproj" (5:2) on node 2 (default targets).

[exec] 5>GenerateTargetFrameworkMonikerAttribute:

[exec] Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.

[exec] CoreCompile:

[exec] Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.

[exec] CopyFilesToOutputDirectory:

[exec] Framework -> D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Framework\bin\Release\Kaleida.ServiceMonitor.Framework.dll

[exec] PostBuildEvent:

[exec] COPY "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Framework\bin\Release\Kaleida.ServiceMonitor.Framework.dll" "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\bin"

[exec] 1 file(s) copied.

[exec] 5>Done Building Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Framework\Framework.csproj" (default targets).

[exec] 4>GenerateTargetFrameworkMonikerAttribute:

[exec] Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.

[exec] CoreCompile:

[exec] Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.

[exec] CopyFilesToOutputDirectory:

[exec] Operations -> D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Operations\bin\Release\Kaleida.ServiceMonitor.Operations.dll

[exec] PostBuildEvent:

[exec] MKDIR "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\bin\Operations\"

[exec] COPY "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Operations\bin\Release\Kaleida.ServiceMonitor.Operations.dll" "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\bin\"

[exec] COPY "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Operations\bin\Release\Kaleida.ServiceMonitor.Operations.dll" "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\bin\Operations\"

[exec] A subdirectory or file D:\servicemon-20002\servicemon-20002\branches\v1.1.0\bin\Operations\ already exists.

[exec] 1 file(s) copied.

[exec] 1 file(s) copied.

[exec] 4>Done Building Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Operations\Operations.csproj" (Rebuild target(s)).

[exec] 3>Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UI\UI.csproj.metaproj" (3) is building "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UI\UI.csproj" (6) on node 1 (Rebuild target(s)).

[exec] 6>Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UI\UI.csproj" (6) is building "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Model\Model.csproj" (7:2) on node 2 (default targets).

[exec] 7>PreBuildEvent:

[exec] SET CLASSPATH=D:\servicemon-20002\servicemon-20002\branches\v1.1.0\BuildTools\antlr-3.2.jar;"C:\Program Files\Java\jdk1.6.0_24\bin\java" -cp D:\servicemon-20002\servicemon-20002\branches\v1.1.0\BuildTools\antlr-3.2.jar org.antlr.Tool D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Model\Parsing\ScriptGrammar.g

[exec] GenerateTargetFrameworkMonikerAttribute:

[exec] Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.

[exec] CoreCompile:

[exec] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /platform:AnyCPU /errorreport:prompt /warn:4 /define:TRACE /highentropyva- /reference:D:\servicemon-20002\servicemon-20002\branches\v1.1.0\bin\Antlr3.Runtime.dll /reference:D:\servicemon-20002\servicemon-20002\branches\v1.1.0\bin\JetBrains.Annotations.dll /reference:D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Framework\bin\Release\Kaleida.ServiceMonitor.Framework.dll /reference:D:\servicemon-20002\servicemon-20002\branches\v1.1.0\bin\log4net.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Runtime.Serialization.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.ServiceModel.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll" /debug:pdbonly /filealign:512 /optimize+ /out:obj\x86\Release\Kaleida.ServiceMonitor.Model.dll /target:library /utf8output ..\CommonAssemblyInfo.cs ColourSpecifications\FailureCountMetric.cs ColourSpecifications\FixedColourSpecification.cs ColourSpecifications\IMetric.cs ColourSpecifications\IStateColourSpecification.cs ColourSpecifications\MetricBase.cs ColourSpecifications\NotMonitoringColourSpecification.cs ColourSpecifications\RangeStateColourSpecification.cs ColourSpecifications\SuccessRateMetric.cs DateTimeExtensions.cs Email\HtmlExtensions.cs Email\HtmlMessageBuilder.cs Email\BasicTable.cs IConfiguration.cs IScriptSource.cs IServiceMonExtension.cs Layout\IScriptNode.cs Layout\IScriptStateLayoutStrategy.cs Layout\NestedTilesLayoutStrategy.cs Layout\ScriptNodeArea.cs MinuteTimer.cs MinuteTimerTickEventArgs.cs NotificationMessageBuilder.cs OperationFailedEventArgs.cs OperationSuccessfulEventArgs.cs PanelNameAttribute.cs Runtime\CompiledNode.cs Runtime\CompiledGroup.cs Runtime\CompiledScriptModule.cs Runtime\DirectiveProcessor.cs Runtime\EmailSummarySchedule.cs Runtime\IMonitorState.cs Runtime\IScriptDirective.cs Runtime\IStateColourationStrategy.cs Runtime\PollIntervalCriteria.cs Runtime\RandomOperationOrder.cs Runtime\RoundRobinOperationOrder.cs Runtime\StateColourationStrategy.cs ScheduledSummaryEmailer.cs ScriptDirectives\ColoursDirective.cs ScriptDirectives\ColorsDirective.cs ScriptDirectives\PollIntervalDirective.cs ScriptDirectives\IncludeDirective.cs ScriptDirectives\MaxErrorAgeDirective.cs ScriptDirectives\NameDirective.cs ScriptDirectives\EmailOnThresholdChangeDirective.cs ScriptDirectives\EmailSummaryDirective.cs ScriptDirectives\OrderDirective.cs ScriptDirectives\PollFrequencyDirective.cs Email\NotificationMessage.cs Email\ScriptEmailSender.cs ServiceMonApplication.cs Statistics\ResponseTimePercentile.cs ThresholdChangeEmailer.cs LimitedList.cs Monitor.cs CodePlexWebVersionCheck.cs NullScriptSource.cs OperationStatisticsMap.cs Runtime\CompiledScript.cs Runtime\DefaultStatePresentation.cs IFilesystem.cs Runtime\IStatePresentation.cs Parsing\ScriptGrammarLexer.cs Parsing\ScriptGrammarParser.cs Parsing\ScriptParser.cs Parsing\SyntaxTreeExtensions.cs Runtime\IOperation.cs Runtime\IPreparedRequestFactory.cs Runtime\IResponseHandlerFactory.cs Runtime\MonitorState.cs Runtime\MonitorStateExtensions.cs Runtime\Operation.cs Properties\AssemblyInfo.cs Runtime\OperationOrder.cs Runtime\ReflectionExtensions.cs Runtime\ReflectionOperationFactory.cs Runtime\ReflectionOperationHtmlHelpBuilder.cs Runtime\RequestErrorResult.cs Runtime\RequestResult.cs Runtime\RequestSuccessResult.cs Runtime\RuntimeEnvironment.cs Runtime\ScriptCompiler.cs ScriptCompilation.cs ScriptCompilationCompleteEventArgs.cs ScriptSourceExtensions.cs ScriptWorkspace.cs SystemFilesystem.cs ScriptSource.cs Statistics\AggregateDurationCalculator.cs Statistics\DistributionPoint.cs Statistics\ProcessingStatistics.cs StringUIExtensions.cs StructuredSource\ActionDefinition.cs StructuredSource\DirectiveDefinition.cs StructuredSource\OperationDefinition.cs StructuredSource\ScriptDefinition.cs VersionCheckResult.cs "C:\Users\Shipra.Agarwal\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.cs"

[exec] 7>CSC : error CS2001: Source file 'Parsing\ScriptGrammarLexer.cs' could not be found [D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Model\Model.csproj]

[exec] 7>CSC : error CS2001: Source file 'Parsing\ScriptGrammarParser.cs' could not be found [D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Model\Model.csproj]

[exec] 7>Done Building Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Model\Model.csproj" (default targets) -- FAILED.

[exec] 6>Done Building Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UI\UI.csproj" (Rebuild target(s)) -- FAILED.

[exec] 3>Done Building Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UI\UI.csproj.metaproj" (Rebuild target(s)) -- FAILED.

[exec] 2>Done Building Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UnitTests\UnitTests.csproj.metaproj" (Rebuild target(s)) -- FAILED.

[exec] 1>Done Building Project "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\ServiceMonitor.sln" (Rebuild target(s)) -- FAILED.

[exec]

[exec] Build FAILED.

[exec]

[exec] "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\ServiceMonitor.sln" (Rebuild target) (1) ->

[exec] "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UnitTests\UnitTests.csproj.metaproj" (Rebuild target) (2) ->

[exec] "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UI\UI.csproj.metaproj" (Rebuild target) (3) ->

[exec] "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.UI\UI.csproj" (Rebuild target) (6) ->

[exec] "D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Model\Model.csproj" (default target) (7:2) ->

[exec] (CoreCompile target) ->

[exec] CSC : error CS2001: Source file 'Parsing\ScriptGrammarLexer.cs' could not be found [D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Model\Model.csproj]

[exec] CSC : error CS2001: Source file 'Parsing\ScriptGrammarParser.cs' could not be found [D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Kaleida.ServiceMonitor.Model\Model.csproj]

[exec]

[exec] 0 Warning(s)

[exec] 2 Error(s)

[exec]

[exec] Time Elapsed 00:00:04.02

BUILD FAILED

D:\servicemon-20002\servicemon-20002\branches\v1.1.0\Everything.build(47,4):

External Program Failed: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe (return code was 1)

Total time: 9.5 seconds.

Thanks,

Shipra