From d14fcd6ecd254deda794c58331ded2df13d1c043 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Tue, 14 Nov 2023 12:54:59 +0100 Subject: [PATCH] skip problematic modules when looking for classes --- haxe/ui/macros/MacroHelpers.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/haxe/ui/macros/MacroHelpers.hx b/haxe/ui/macros/MacroHelpers.hx index 6df382dd4..9095f15e8 100644 --- a/haxe/ui/macros/MacroHelpers.hx +++ b/haxe/ui/macros/MacroHelpers.hx @@ -102,8 +102,10 @@ class MacroHelpers { for (file in files) { if (StringTools.endsWith(file, ".hx") && !StringTools.startsWith(file, ".")) { var name:String = file.substr(0, file.length - 3); - var temp:Array = Context.getModule(pack + "." + name); - types = types.concat(temp); + try { + var temp:Array = Context.getModule(pack + "." + name); + types = types.concat(temp); + } catch (e:Dynamic) { } } } }