From 77ed62bea1059a1c50d0345f766edfa5448d66a9 Mon Sep 17 00:00:00 2001 From: Peter Kurhajec <61538034+PTKu@users.noreply.github.com> Date: Thu, 11 Dec 2025 11:58:42 +0100 Subject: [PATCH] Improve error logging and expand ixd input directories Enhanced error messages in YamlHelpers.cs to include file, line, and character info for better debugging. Updated launchSettings.json to allow the "ixd" profile to process multiple source directories at once for broader documentation generation. --- src/AXSharp.compiler/src/ixd/Helpers/YamlHelpers.cs | 2 +- src/AXSharp.compiler/src/ixd/Properties/launchSettings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AXSharp.compiler/src/ixd/Helpers/YamlHelpers.cs b/src/AXSharp.compiler/src/ixd/Helpers/YamlHelpers.cs index a96f2618..7454e06c 100644 --- a/src/AXSharp.compiler/src/ixd/Helpers/YamlHelpers.cs +++ b/src/AXSharp.compiler/src/ixd/Helpers/YamlHelpers.cs @@ -89,7 +89,7 @@ public Comments GetComments(Location location, bool isEnum = false) } catch (Exception e) { - Console.Error.WriteLine(e.StackTrace); + Console.Error.WriteLine($"{((SourceLocation)location).SourceText.Filename} at {lineStart}:{charStart} {e.Message}"); } return comments; diff --git a/src/AXSharp.compiler/src/ixd/Properties/launchSettings.json b/src/AXSharp.compiler/src/ixd/Properties/launchSettings.json index 1b0dc39b..07e0c816 100644 --- a/src/AXSharp.compiler/src/ixd/Properties/launchSettings.json +++ b/src/AXSharp.compiler/src/ixd/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "ixd": { "commandName": "Project", - "commandLineArgs": "ixd -x .\\src\\abstractions\\ctrl -o .\\docfx\\apictrl\\", + "commandLineArgs": "ixd -x .\\src\\abstractions\\ctrl \r\n.\\src\\core\\ctrl \r\n.\\src\\data\\ctrl\\ \r\n.\\src\\inspectors\\ctrl \r\n.\\src\\components.abstractions\\ctrl \r\n.\\src\\components.cognex.vision\\ctrl \r\n.\\src\\components.pneumatics\\ctrl \r\n.\\src\\components.elements\\ctrl \r\n.\\src\\components.rexroth.drives\\ctrl \r\n.\\src\\components.festo.drives\\ctrl \r\n.\\src\\components.kuka.robotics\\ctrl \r\n.\\src\\components.mitsubishi.robotics\\ctrl \r\n-o .\\docfx\\apictrl\\\r\n", "workingDirectory": "c:\\W\\Develop\\gh\\inxton\\simatic-ax\\axopen.templates\\axopen\\" }, "ixd-2": {