Skip to content

Match Languages/*.xaml with forward-slash paths on macOS/Linux; bump to 0.0.7 - #44

Merged
Jack251970 merged 2 commits into
mainfrom
fix-unix-languages-path
Oct 10, 2026
Merged

Jack251970 merged 2 commits into
mainfrom
fix-unix-languages-path

Conversation

@taooceros

Copy link
Copy Markdown
Member

LanguagesXamlRegex only matched \Languages\<file>.xaml. On macOS/Linux, Roslyn passes additional files with / separators (e.g. /Users/.../Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml), so the source generator found no resource dictionaries and generated no Localize class.

Fix: accept either separator: [\\/]Languages[\\/][^\\/]+\.xaml$.

Verified on macOS (arm64, .NET 10) building Flow.Launcher.Plugin.Sys for net10.0 from Flow.Launcher's avalonia-mac branch:

  • published 0.0.6 analyzer: 18脳 CS0103: The name 'Localize' does not exist in the current context
  • this branch's analyzer: build succeeds

Needed for the macOS build in Flow-Launcher/Flow.Launcher#4705; that branch will need a release containing this fix.

Copilot AI balanced review requested due to automatic review settings October 10, 2026 20:30
@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • 馃攳 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

鈿欙笍 Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e85ce783-79b4-4bea-93cb-cbdafad7e949

  • Autofix 路 Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

鉂わ笍 Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

馃煝 Approval recommended

The regex correctly supports both path separator styles without changing the intended file-matching scope.

0 open findings

What changed in this PR

Updates localization XAML discovery to support Windows and Unix-style paths.

Changes:

  • Accepts both \ and / around the Languages directory.
  • Excludes either separator from language filenames.
File Description
Flow.Launcher.Localization.Shared/鈥婥onstants.cs Makes language-file path matching cross-platform.

馃 Review effort: Balanced


馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@taooceros
taooceros requested a review from Jack251970 October 10, 2026 20:32
@taooceros taooceros changed the title Match Languages/*.xaml with forward-slash paths on macOS/Linux Match Languages/*.xaml with forward-slash paths on macOS/Linux; bump to 0.0.7 Oct 10, 2026
@Jack251970
Jack251970 merged commit 56775f1 into main Oct 10, 2026
1 check passed
@Jack251970
Jack251970 deleted the fix-unix-languages-path branch October 10, 2026 23:13
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.

3 participants