Skip to content

Conversation

@PTKu
Copy link
Contributor

@PTKu PTKu commented Jan 28, 2025

Breaking

  • The compiler will now require relative paths in AXSharpConfig.json file. The path must be relative to the apax folder where the AXSharpConfig.json is located.

Fix

The compiler now handles correctly arguments from the cli providing valid access to project dependencies.

Details

This pull request focuses on improving path handling, enhancing logging capabilities, and ensuring consistency in project file references. The most important changes include the introduction of a method to verify relative paths, modifications to logging configurations, and updates to project file references.

Path Handling Improvements:

  • Added VerifyRelativePath method to ensure paths are relative to the base folder and not absolute (src/AXSharp.compiler/src/AXSharp.Compiler/AXSharpConfig.cs).
  • Updated RetrieveAXSharpConfig to use VerifyRelativePath for setting OutputProjectFolder (src/AXSharp.compiler/src/AXSharp.Compiler/AXSharpConfig.cs).

Logging Enhancements:

  • Introduced ConfigureLogger method to set up different logging levels (src/AXSharp.compiler/src/AXSharp.Compiler/Logger/CompilerLogger.cs).
  • Added logging statements to track project reference processing and dependency loading (src/AXSharp.compiler/src/AXSharp.Compiler/AxProject.cs). [1] [2]

Project File Reference Updates:

  • Renamed IxProjectFile to CsProjectFile and updated references accordingly (src/AXSharp.compiler/src/AXSharp.Cs.Compiler/CsProject.cs). [1] [2] [3]
  • Added exception handling for missing project files in GetDirectDependencies (src/AXSharp.compiler/src/AXSharp.Cs.Compiler/CsProject.cs).

Other Notable Changes:

- add additional 'WaitForExit' when dotnet process is called to add dependencies
- corrects the sequence of installation and dependency retrieval.
@PTKu PTKu marked this pull request as ready for review January 28, 2025 09:50
@PTKu PTKu merged commit a732929 into dev Jan 28, 2025
2 checks passed
@PTKu PTKu deleted the 377-bugixc-does-not-compile-the-deps-when-run-with-args-outside-of-dependants-folder branch January 28, 2025 09:50
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]ixc does not compile the deps. when run with args outside of dependants folder.

2 participants