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

Handle absolute path #975

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Handle absolute path #975

merged 1 commit into from
Dec 27, 2023

Conversation

lloeki
Copy link
Contributor

@lloeki lloeki commented Dec 6, 2023

During development of this I found out that this would work:

# Steepfile in /some/project/path
bundle exec steep check lib/foobar.rb

but this would fail:

# Steepfile in /some/project/path
bundle exec steep check /some/project/path/lib/foobar.rb

The pattern being relative, it had no chance to match the absolute path provided as argument.

Fixed by making absolute path relative to base_dir before checking against pattern.

The pattern being relative, it had no chance to match the absolute path
provided as argument.

Fixed by making absolute path relative to base_dir before checking
against pattern.
lloeki added a commit to lloeki/ale that referenced this pull request Dec 6, 2023
lloeki added a commit to lloeki/ale that referenced this pull request Dec 6, 2023
lloeki added a commit to lloeki/ale that referenced this pull request Dec 6, 2023
Copy link
Owner

@soutaro soutaro left a comment

Choose a reason for hiding this comment

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

Thanks! 🙏

@soutaro soutaro added this to the Steep 1.7 milestone Dec 27, 2023
@soutaro soutaro merged commit 7027e54 into soutaro:master Dec 27, 2023
15 checks passed
@soutaro soutaro added Released The PR is already included in a published release and removed Released The PR is already included in a published release labels Jan 30, 2024
lloeki added a commit to lloeki/ale that referenced this pull request May 27, 2024
@soutaro soutaro added the Released The PR is already included in a published release label Jun 7, 2024
hsanson pushed a commit to dense-analysis/ale that referenced this pull request Jun 25, 2024
* Add Ruby linter with Steep

Fixes #3254

* Run steep instead of using language server

LSP presents a few issues and this works around those.

* Work around Steep path issue

See soutaro/steep#975

* Add simple tests for steep

* Add steep to supported tools

* Pass linter

* Add a comment regarding Steep's column counting

* Make lnum an integer

* Add Steep handler test

* Fix separator for Windows

* Escape Windows path separators for substitute()

* Use ALEInfo (I) group

* Use fnameescape instead of quotes

* Skip linting for files not under steep root

* Add and pass tests covering proper steep root lookup

* Fix separator discrepancy

* Use strict operators (match case)

* Fix ordering

* Use `is#` instead of `==#`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released The PR is already included in a published release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants