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 version logging #342

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Fix version logging #342

merged 1 commit into from
Apr 17, 2024

Conversation

andyw8
Copy link
Contributor

@andyw8 andyw8 commented Apr 17, 2024

Prevent VERSION wrongly resolving to the one from ruby-lsp: https://github.com/Shopify/ruby-lsp/blob/main/lib/ruby-lsp.rb

@andyw8 andyw8 requested a review from a team as a code owner April 17, 2024 16:08
@andyw8 andyw8 requested review from st0012 and vinistock April 17, 2024 16:08
@andyw8 andyw8 added the bugfix This PR fixes an existing bug label Apr 17, 2024
@@ -2,6 +2,7 @@
# frozen_string_literal: true

require "ruby_lsp/addon"
require "ruby_lsp_rails/version"
Copy link
Member

Choose a reason for hiding this comment

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

Should this be require_relative like the below too?

Copy link
Member

Choose a reason for hiding this comment

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

The ruby_lsp_rails directory is part of the default require path, so it'll always be in the $LOAD_PATH. The only reason the others are require_relative is because they are placed in non-standard paths.

@andyw8 andyw8 force-pushed the andyw8/fix-version-logging branch from f1ea35d to e1ad289 Compare April 17, 2024 16:46
@andyw8 andyw8 force-pushed the andyw8/fix-version-logging branch from e1ad289 to bb2ae2d Compare April 17, 2024 16:48
@andyw8 andyw8 enabled auto-merge (squash) April 17, 2024 16:49
@andyw8 andyw8 merged commit 0897b34 into main Apr 17, 2024
55 of 56 checks passed
@andyw8 andyw8 deleted the andyw8/fix-version-logging branch April 17, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants