C
C#16mo ago
OptoCloud

❔ How to have downloaded nuget packages on the same drive as repository?

The exception I get now is the following:
FlatSharp.Internal.FlatSharpInternalException: FlatSharp Internal Error! Message = 'expect path to exist: C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\tools\net6.0\..\..\..\..\..\..\..\..\source\c#\asp.net\opto-backend\spec\schemas\ClientHeartbeat.fbs'.File = 'PathHelpers.cs', Member = 'NormalizePathName:27'
at FlatSharp.Internal.FlatSharpInternal.ThrowAssertFailed(String message, String memberName, String fileName, Int32 lineNumber) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Runtime\FlatSharpInternal.cs:line 44 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.PathHelpers.NormalizePathName(String path) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\PathHelpers.cs:line 27 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at AbsolutePathSchemaMutator.NormalizePath(String fbsPath) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\SchemaMutators\AbsolutePathSchemaMutator.cs:line 75 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at AbsolutePathSchemaMutator.Mutate(Schema schema, CompilerOptions options, List`1 postProcessors) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\SchemaMutators\AbsolutePathSchemaMutator.cs:line 41 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.ParseSchema(ISerializer`1 serializer, Byte[] bfbs, CompilerOptions options, List`1 postProcessTransforms, ISchemaMutator[] mutators) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 643 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.CreateCSharp(List`1 bfbs, String inputHash, CompilerOptions options) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 565 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.RunCompiler(CompilerOptions options) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 126 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.<>c__DisplayClass8_0.<Main>b__1(CompilerOptions x) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 59 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action) Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.Main(String[] args) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 55 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
FlatSharp.Internal.FlatSharpInternalException: FlatSharp Internal Error! Message = 'expect path to exist: C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\tools\net6.0\..\..\..\..\..\..\..\..\source\c#\asp.net\opto-backend\spec\schemas\ClientHeartbeat.fbs'.File = 'PathHelpers.cs', Member = 'NormalizePathName:27'
at FlatSharp.Internal.FlatSharpInternal.ThrowAssertFailed(String message, String memberName, String fileName, Int32 lineNumber) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Runtime\FlatSharpInternal.cs:line 44 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.PathHelpers.NormalizePathName(String path) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\PathHelpers.cs:line 27 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at AbsolutePathSchemaMutator.NormalizePath(String fbsPath) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\SchemaMutators\AbsolutePathSchemaMutator.cs:line 75 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at AbsolutePathSchemaMutator.Mutate(Schema schema, CompilerOptions options, List`1 postProcessors) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\SchemaMutators\AbsolutePathSchemaMutator.cs:line 41 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.ParseSchema(ISerializer`1 serializer, Byte[] bfbs, CompilerOptions options, List`1 postProcessTransforms, ISchemaMutator[] mutators) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 643 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.CreateCSharp(List`1 bfbs, String inputHash, CompilerOptions options) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 565 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.RunCompiler(CompilerOptions options) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 126 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.<>c__DisplayClass8_0.<Main>b__1(CompilerOptions x) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 59 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action) Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
at FlatSharp.Compiler.FlatSharpCompiler.Main(String[] args) in D:\a\FlatSharp\FlatSharp\src\FlatSharp.Compiler\FlatSharpCompiler.cs:line 55 Common C:\Users\optocloud\.nuget\packages\flatsharp.compiler\7.2.0\build\FlatSharp.Compiler.targets 136
4 Replies
OptoCloud
OptoCloudOP16mo ago
I have tried: - Changing the path of the files - Searching online for answers - Changing the windows path length - Reinstalling nuget packages - Refetching repository - Downgrading nuget packages Flatsharp is trying to cd .. out of the C drive where the nuget cache is and into the H drive which is what i use for dev and where my project is
OptoCloud
OptoCloudOP16mo ago
submitted bug report but need temp fix https://github.com/jamescourtney/FlatSharp/issues/390
GitHub
[Bug] Flatsharp can't compile schemas on seperate drives · Issue #3...
When trying to compile a schema, flatsharp attempts to get a relative path to that schema from the flatsharp compiler. If the flatsharp compiler exists in the nuget cache and the repository exists ...
OptoCloud
OptoCloudOP16mo ago
Unfixable, need some way to always have nuget packages at the same place as the source code
Accord
Accord16mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server