While trying to run a task with fake, I get an error message saying
Script is not valid: unknown (1,0)-(1,0): Error FS0193: The specified file name or path is too long, or a component of the specified path is too long.
That happens for SwaggerProvider on a master branch.
Fake scripts fails with an error Script is not valid:
unknown (1,0)-(1,0): Error FS0193: The specified file name or path is too long, or a component of the specified path is too long.`
>==> dotnet tool restore
Tool 'paket' (version '7.1.5') was restored. Available commands: paket
Tool 'fake-cli' (version '5.23.0') was restored. Available commands: fake
Tool 'dotnet-serve' (version '1.10.140') was restored. Available commands: dotnet-serve
Tool 'fantomas' (version '5.0.3') was restored. Available commands: fantomas
Restore was successful.
>==> dotnet --version
6.0.401
>==> dotnet fake run
The last restore is still up to date. Nothing left to do.
Script is not valid:
unknown (1,0)-(1,0): Error FS0193: The specified file name or path is too long, or a component of the specified path is too long.
Performance:
- Cli parsing: 101 milliseconds
- Packages: 39 milliseconds
- Script compiling: 308 milliseconds
- Runtime: 648 milliseconds
Description
While trying to run a task with fake, I get an error message saying
Script is not valid: unknown (1,0)-(1,0): Error FS0193: The specified file name or path is too long, or a component of the specified path is too long.
That happens for SwaggerProvider on amaster
branch.Repro steps
dotnet tool restore
dotnet fake run build.fsx
Expected behavior
Fake starts building the project.
Actual behavior
Fake scripts fails with an error Script is not valid: unknown (1,0)-(1,0): Error FS0193: The specified file name or path is too long, or a component of the specified path is too long.`
Known workarounds
Not found
Related information