chelh / VBASync

Cross-platform tool to synchronize macros from an Office VBA-enabled file with a version-controlled folder
Other
159 stars 46 forks source link

Sequence does not contain any elements when Class name case does not match #4

Closed RupertAvery closed 7 years ago

RupertAvery commented 7 years ago

For some reason if the BIFF file name case does not match the declared file name, the following code in VbaFolder.cs throws an exception

case "CLASS":
     modules.First(m => m.Name == split[1]).Type = ModuleType.Class;

This can be remedied by uppercasing everything, or doing a case insensitive match

chelh commented 7 years ago

I've just put out a new release with this bug fixed. Thanks for reporting it!