Skip to content

Comments

fix: #71#75

Merged
AnemoFlower merged 1 commit intoCeciliaStudio:mainfrom
AnemoFlower:fix/71
Feb 13, 2026
Merged

fix: #71#75
AnemoFlower merged 1 commit intoCeciliaStudio:mainfrom
AnemoFlower:fix/71

Conversation

@AnemoFlower
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #71 by improving the robustness of Java runtime detection. The changes add defensive checks to prevent crashes when Java-related directories don't exist on the system, and enhance logging to help diagnose Java detection issues.

Changes:

  • Added early initialization of JavaManager during app startup to trigger Java search
  • Added defensive file existence checks before accessing Java and Homebrew directories
  • Improved error handling for Homebrew directory access with proper logging
  • Added detailed logging output showing all detected Java installations with their properties

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
PCL.Mac/App/AppDelegate.swift Initialize JavaManager.shared during app startup to trigger Java detection early
PCL.Mac.Core/Services/JavaSearcher.swift Add file existence checks and error handling for directory access to prevent crashes
PCL.Mac.Core/Models/JavaRuntime.swift Add CustomStringConvertible conformance to JavaType for better logging output
PCL.Mac.Core/Managers/JavaManager.swift Add detailed logging of detected Java runtimes with formatted output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AnemoFlower AnemoFlower merged commit 6dea3b1 into CeciliaStudio:main Feb 13, 2026
7 checks passed
@AnemoFlower AnemoFlower deleted the fix/71 branch February 13, 2026 07:48
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.

1 participant