Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When compiling dependencies of larger project the tpf is null #371

Merged

Conversation

PTKu
Copy link
Contributor

@PTKu PTKu commented Jan 24, 2025

This pull request includes several changes to the AXSharp compiler, focusing on adding support for dependent compiler options and improving project handling. The most important changes include updates to the AXSharpConfig and AXSharpProject classes, as well as adjustments to test files to accommodate the new functionality.

Updates to AXSharpConfig and AXSharpProject:

Adjustments to test files:

closes #370

@PTKu PTKu linked an issue Jan 24, 2025 that may be closed by this pull request
PTKu added 2 commits January 24, 2025 11:54
- Modify `UpdateAndGetAXSharpConfig` method in `AXSharpConfig` to include `ICompilerOptions dependnantCompilerOptions` parameter.
- Update `AXSharpProject` constructor to accept `ICompilerOptions? dependnantCompilerOptions` and pass it to `UpdateAndGetAXSharpConfig`.
- Add check in `AXSharpProject` to ensure `TargetPlatfromMoniker` is set in `AXSharp.config.json`, throwing an exception if not.
- Update `IecToClrConverter`'s `CreateScalarInitializer` to throw `ArgumentNullException` if `targetPlatformMoniker` is null.
- Refactor `GenerateIxProject` method in `Program` class to use `options` as a more descriptive parameter name.
- Correct `workingDirectory` path in `launchSettings.json` for `axopen-traversal` profile.
Added a check in AXSharpProject.cs for the TargetPlatfromMoniker
property of CompilerOptions, setting a default value of "ax" and
logging a warning if it is null. Updated IxProjectTests.cs to
include a new using directive for AXSharp.CompilerTests and
modified the AXSharpProject constructor call to include two
instances of CompilerTestOptions. Added a new file,
CompilerTestOptions.cs, defining the CompilerTestOptions class
with default values and basic getter and setter implementations.
@PTKu PTKu marked this pull request as ready for review January 24, 2025 12:24
@PTKu PTKu merged commit e86756f into dev Jan 24, 2025
2 checks passed
@PTKu PTKu deleted the 370-when-compiling-dependencies-of-larger-project-the-tpf-is-null branch January 24, 2025 12:24
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.

When compiling dependencies of larger project the tpf is null
1 participant