Skip to content

Increase test coverage of IEx ls helper and handle edge case #14626

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

Merged
merged 4 commits into from
Jul 5, 2025

Conversation

sabiwara
Copy link
Contributor

@sabiwara sabiwara commented Jul 5, 2025

Probably not a very frequent case but it might be puzzling to ls some_file/foo and get back a non-existing path.
This makes it consistent with the shell ls:

Screenshot 2025-07-05 at 15 53 27

@sabiwara
Copy link
Contributor Author

sabiwara commented Jul 5, 2025

OK the "ls existing_file" case seemed not to work Windows because it returned :eio and not :enotdir.

I think moving the check if it's a file before should fix it: 2851944.

@sabiwara sabiwara merged commit 57c254f into elixir-lang:main Jul 5, 2025
13 checks passed
@sabiwara sabiwara deleted the iex-ls-file branch July 5, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants