Skip to content

Commit 7c4e564

Browse files
authored
Merge pull request #483 from Inxton/fix-ixd-throws-nre-due-to-missing-analizers
Improve error logging and expand ixd input directories
2 parents b774a00 + 59472cb commit 7c4e564

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AXSharp.compiler/src/ixd/Helpers/YamlHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public Comments GetComments(Location location, bool isEnum = false)
8989
}
9090
catch (Exception e)
9191
{
92-
Console.Error.WriteLine(e.StackTrace);
92+
Console.Error.WriteLine($"{((SourceLocation)location).SourceText.Filename} at {lineStart}:{charStart} {e.Message}");
9393
}
9494

9595
return comments;

src/AXSharp.compiler/src/ixd/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"ixd": {
44
"commandName": "Project",
5-
"commandLineArgs": "ixd -x .\\src\\abstractions\\ctrl -o .\\docfx\\apictrl\\",
5+
"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",
66
"workingDirectory": "c:\\W\\Develop\\gh\\inxton\\simatic-ax\\axopen.templates\\axopen\\"
77
},
88
"ixd-2": {

0 commit comments

Comments
 (0)