Please fix useless error message when config step explodes ;p

I am submitting this as a bug because it is a totally non descriptive error message. Started a new project. Copied som files from and old project to get started. Config step explodes. No clues pointing me even remotely in the right direction… ;D

$ fuse preview
Fuse 0.24.0 (build 7243)
Build started: FullCompile
Configuring

FATAL ERROR: System.InvalidOperationException: Sequence contains no matching element
  at System.Linq.Enumerable.Last[String] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.Last[String] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0 
  at Minimatch.Minimatcher.MatchOne (IList`1 file, IList`1 pattern, Boolean partial) [0x00000] in <filename unknown>:0 
  at Minimatch.Minimatcher.MatchOne (IList`1 file, IList`1 pattern, Boolean partial) [0x00000] in <filename unknown>:0 
  at Minimatch.Minimatcher.Match (System.String input, Boolean partial) [0x00000] in <filename unknown>:0 
  at Minimatch.Minimatcher.IsMatch (System.String input) [0x00000] in <filename unknown>:0 
  at Uno.ProjectFormat.IncludeGlobber.MatchDirectory (System.String fullName) [0x000b1] in /Users/outracks/buildAgent1/work/397767071b813b09/Source/Engine/Uno.ProjectFormat/IncludeGlobber.cs:214 
  at Uno.ProjectFormat.IncludeGlobber.VisitDirectory (System.String dir) [0x0008b] in /Users/outracks/buildAgent1/work/397767071b813b09/Source/Engine/Uno.ProjectFormat/IncludeGlobber.cs:168 
  at Uno.ProjectFormat.IncludeGlobber.FindItems (IEnumerable`1 includes, IEnumerable`1 excludes, Boolean throwOnError, Boolean excludeItems) [0x00339] in /Users/outracks/buildAgent1/work/397767071b813b09/Source/Engine/Uno.ProjectFormat/IncludeGlobber.cs:120 
  at Uno.ProjectFormat.IncludeGlobber.FindItems (Uno.ProjectFormat.Project project, IEnumerable`1 includes, IEnumerable`1 excludes, System.Collections.Generic.List`1 result, Uno.Logging.Log log, Boolean throwOnError, Boolean excludeItems) [0x00000] in /Users/outracks/buildAgent1/work/397767071b813b09/Source/Engine/Uno.ProjectFormat/IncludeGlobber.cs:22 
  at Uno.ProjectFormat.Project.GetFlattenedItems (Uno.Logging.Log log, Boolean force) [0x0001c] in /Users/outracks/buildAgent1/work/397767071b813b09/Source/Engine/Uno.ProjectFormat/Project.cs:203 
  at Uno.ProjectFormat.Project.get_AdditionalFiles () [0x00000] in <filename unknown>:0 
  at Uno.ProjectFormat.Project.CreateSourcePackage (Boolean isStartup) [0x0004d] in /Users/outracks/buildAgent1/work/397767071b813b09/Source/Engine/Uno.ProjectFormat/Project.cs:381 
  at Uno.Build.Packages.PackageResolver.Configure () [0x00000] in <filename unknown>:0 
  at Uno.Build.ProjectBuilder.Build_inner (Uno.ProjectFormat.Project project) [0x00000] in <filename unknown>:0 
Build ended
fuse: Failed to compile project

Hi!

Thanks for reporting and sharing your code! I have submitted this to the compiler team :slight_smile:
If you change "Pages/**/*.js:Bundle" to "Pages/Start/*.js:Bundle" in your .unoproj the project will compile

Then perhaps this is in fact a bug, because the docs implies that it should work:
https://www.fusetools.com/docs/basics/uno-projects#includes-and-excludes

Yes :slight_smile: Bug report submitted to compiler team