Draco-lang / Compiler

The compiler repository for the Draco programming language.
Apache License 2.0
86 stars 8 forks source link

`.\install_toolchain.ps1` is bugged #353

Closed Kuinox closed 10 months ago

Kuinox commented 10 months ago
PS C:\dev\Compiler\scripts> .\install_toolchain.ps1 ../../DracoToolChain
MSBuild version 17.8.3+195e7f5a3 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
  Draco.Debugger -> C:\dev\Compiler\src\Draco.Debugger\bin\Release\net8.0\Draco.Debugger.dll
  Draco.JsonRpc -> C:\dev\Compiler\src\Draco.JsonRpc\bin\Release\net8.0\Draco.JsonRpc.dll
  The package Draco.Sdk.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/readme to le
  arn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.Sdk.1.0.0.nupkg'.
  Draco.SourceGeneration -> C:\dev\Compiler\src\Draco.SourceGeneration\bin\Release\netstandard2.0\Draco.SourceGener
  ation.dll
  The package Draco.ProjectTemplates.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices
  /readme to learn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.ProjectTemplates.1.0.0.nupkg'.
  The package Draco.Debugger.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/readme
  to learn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.Debugger.1.0.0.nupkg'.
  The package Draco.JsonRpc.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/readme t
  o learn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.JsonRpc.1.0.0.nupkg'.
  Draco.Dap -> C:\dev\Compiler\src\Draco.Dap\bin\Release\net8.0\Draco.Dap.dll
  Draco.Compiler.Tasks -> C:\dev\Compiler\src\Draco.Compiler.Tasks\bin\Release\netstandard2.0\Draco.Compiler.Tasks.
  dll
  The package Draco.Dap.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/readme to le
  arn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.Dap.1.0.0.nupkg'.
  Draco.DebugAdapter -> C:\dev\Compiler\src\Draco.DebugAdapter\bin\Release\net8.0\Draco.DebugAdapter.dll
  Draco.Debugger.Tui -> C:\dev\Compiler\src\Draco.Debugger.Tui\bin\Release\net8.0\Draco.Debugger.Tui.dll
  Draco.DebugAdapter -> C:\dev\Compiler\src\Draco.DebugAdapter\bin\Release\net8.0\Draco.DebugAdapter.dll
C:\Program Files\dotnet\sdk\8.0.100\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): warnin
g NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of
dependency "System.CommandLine [2.0.0-beta4.22272.1, )" or update the version field in the nuspec. [C:\dev\Compiler
\src\Draco.Debugger.Tui\Draco.Debugger.Tui.csproj]
  The package Draco.Debugger.Tui.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/rea
  dme to learn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.Debugger.Tui.1.0.0.nupkg'.
  The package Draco.DebugAdapter.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/rea
  dme to learn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.DebugAdapter.1.0.0.nupkg'.
CSC : warning DRC0001: BoundNodes.xml file was not found in the project [C:\dev\Compiler\src\Draco.Lsp\Draco.Lsp.cs
proj]
CSC : warning DRC0001: DapModel.xml file was not found in the project [C:\dev\Compiler\src\Draco.Lsp\Draco.Lsp.cspr
oj]
CSC : warning DRC0001: Syntax.xml file was not found in the project [C:\dev\Compiler\src\Draco.Lsp\Draco.Lsp.csproj
]
CSC : warning DRC0001: UntypedNodes.xml file was not found in the project [C:\dev\Compiler\src\Draco.Lsp\Draco.Lsp.
csproj]
CSC : warning DRC0001: WellKnownTypes.xml file was not found in the project [C:\dev\Compiler\src\Draco.Lsp\Draco.Ls
p.csproj]
  Draco.Lsp -> C:\dev\Compiler\src\Draco.Lsp\bin\Release\net8.0\Draco.Lsp.dll
  The package Draco.Lsp.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/readme to le
  arn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.Lsp.1.0.0.nupkg'.
CSC : warning DRC0001: DapModel.xml file was not found in the project [C:\dev\Compiler\src\Draco.Compiler\Draco.Com
piler.csproj]
CSC : warning DRC0001: LspModel.xml file was not found in the project [C:\dev\Compiler\src\Draco.Compiler\Draco.Com
piler.csproj]
CSC : warning DRC0001: OneOf.xml file was not found in the project [C:\dev\Compiler\src\Draco.Compiler\Draco.Compil
er.csproj]
  Draco.Compiler -> C:\dev\Compiler\src\Draco.Compiler\bin\Release\net8.0\Draco.Compiler.dll
  The package Draco.Compiler.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/readme
  to learn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.Compiler.1.0.0.nupkg'.
  Draco.Compiler.Cli -> C:\dev\Compiler\src\Draco.Compiler.Cli\bin\Release\net8.0\Draco.Compiler.Cli.dll
  Draco.LanguageServer -> C:\dev\Compiler\src\Draco.LanguageServer\bin\Release\net8.0\Draco.LanguageServer.dll
  Draco.Compiler.Benchmarks -> C:\dev\Compiler\src\Draco.Compiler.Benchmarks\bin\Release\net8.0\Draco.Compiler.Benc
  hmarks.dll
  Draco.LanguageServer -> C:\dev\Compiler\src\Draco.LanguageServer\bin\Release\net8.0\Draco.LanguageServer.dll
  The package Draco.Compiler.Benchmarks.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practi
  ces/readme to learn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.Compiler.Benchmarks.1.0.0.nupkg'.
  The package Draco.Compiler.Toolset.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices
  /readme to learn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.Compiler.Toolset.1.0.0.nupkg'.
  The package Draco.LanguageServer.1.0.0 is missing a readme. Go to https://aka.ms/nuget/authoring-best-practices/r
  eadme to learn why package readmes are important.
  Successfully created package 'C:\dev\DracoToolChain\Toolchain\Draco.LanguageServer.1.0.0.nupkg'.
The following template packages will be installed:
   C:\dev\DracoToolChain\Toolchain\Draco.ProjectTemplates.1.0.0.nupkg

Success: Draco.ProjectTemplates::1.0.0 installed the following templates:
Template Name  Short Name  Language  Tags
-------------  ----------  --------  --------------
Console App    console     Draco     Console/Common

Get-ChildItem : Cannot find path 'C:\DracoToolChain' because it does not exist.
At C:\dev\Compiler\scripts\install_toolchain.ps1:31 char:7
+ if (!(Get-ChildItem -Path $path -Filter *.dracoproj)) {
+       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\DracoToolChain:String) [Get-ChildItem], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

Creating this template will make changes to existing files:
  Overwrite   ./DracoToolChain.dracoproj
  Overwrite   ./main.draco

To create the template anyway, run the command with '--force' option:
   dotnet new console --language draco --force

For details on the exit code, refer to https://aka.ms/templating-exit-codes#73
Out-File : Could not find a part of the path 'C:\DracoToolChain\nuget.config'.
At C:\dev\Compiler\scripts\install_toolchain.ps1:50 char:5
+     Out-File -FilePath $nugetConfigPath -InputObject $nugetConfig -En ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (:) [Out-File], DirectoryNotFoundException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

Successfully created NuGet.config.