Skip to content

Conversation

@PTKu
Copy link
Contributor

@PTKu PTKu commented Dec 4, 2025

This pull request introduces improved error handling and user feedback for unsupported array type declarations, and updates a project launch setting to reflect a new working directory path.

Error handling and logging improvements:

  • The Accept method for IArrayTypeDeclarationSyntax in IxNodeVisitor.cs now logs a warning with the filename when array types are declared in unsupported locations, instead of throwing a NotSupportedException. It uses reflection to extract the filename from the syntax node, and gracefully handles any exceptions by logging a generic warning.

closes #477

@PTKu PTKu linked an issue Dec 4, 2025 that may be closed by this pull request
Replaced `NotImplementedException` in `ICombinedThreeVisitor`'s `CreateMergedConfigurations` method with an informational log message. Enhanced `IxNodeVisitor` to log warnings for unsupported array type declarations, including file location when available. Updated `launchSettings.json` to reflect a new working directory path for the `axopen-traversal` configuration.
@PTKu PTKu changed the title [BUG] Missing support exception in ixc when array init is used [BUG] Missing support exception in ixc when array as type declaration Dec 4, 2025
Replaced the logging statement in the `CreateMergedConfigurations` method of the `ICombinedThreeVisitor` interface with a `throw new NotImplementedException();`. This change explicitly marks the method as unimplemented, ensuring it raises an exception if invoked.
@PTKu PTKu marked this pull request as ready for review December 4, 2025 06:40
@PTKu PTKu requested a review from TomKovac December 4, 2025 06:41
The test for the `Accept` method no longer asserts that a
`NotSupportedException` is thrown. The `Assert.Throws` call
was replaced with a direct invocation of the `Accept` method,
indicating that the method is no longer expected to throw
this exception in the given context.
@PTKu PTKu merged commit 0271d6d into dev Dec 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Missing support exception in ixc when array as type declaration

2 participants