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

Fix Reek installation issue when Yard is installed #1784

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

typhoon2099
Copy link
Contributor

As per #1627, Yard can't process Reek because docs/yarn_plugin.rb is missing. It's not included in the Gem, so this PR adds it to correct this error.

This was reported upstream in
lsegal/yard#1462, but it seems that it either wasn't, or people were happy enough with the workaround (touching the missing file in the Gem's installed location). The workaround doesn't work when using asdf/mise with default
Gems
. If Yard's automatic documentation is enabled (yard config --gem-install-yri) then the Ruby build fails.

As per troessner#1627, Yard can't process Reek because `docs/yarn_plugin.rb` is
missing. It's not included in the Gem, so this PR adds it to correct
this error.

This was reported upstream in
lsegal/yard#1462, but it seems that it either
wasn't, or people were happy enough with the workaround (touching the
missing file in the Gem's installed location). The workaround doesn't
work when using `asdf`/`mise` with [default
Gems](https://mise.jdx.dev/lang/ruby.html#default-gems). If Yard's automatic
documentation is enabled (`yard config --gem-install-yri`) then the Ruby
build fails.
@mvz
Copy link
Collaborator

mvz commented Jul 2, 2024

Thanks @typhoon2099! Pity that the reporter closed #1627 since touching random files in gem installations is hardly a fix 😞.

@mvz
Copy link
Collaborator

mvz commented Jul 6, 2024

I can confirm that this fixes the problem.

@mvz mvz merged commit e27cb58 into troessner:master Jul 6, 2024
6 checks passed
@mvz
Copy link
Collaborator

mvz commented Jul 6, 2024

Thanks, @typhoon2099!

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.

None yet

2 participants