Skip to content

Conversation

@staticfloat
Copy link
Member

In macOS there is a file, /usr/sbin/weakpass_edit that is a symlink to a directory that is only readable by root. Our REPL shell completion attempts to call isfile() when entering the shell mode and pressing w, throwing an ugly error into the REPL.

This PR fixes the root cause (skipping files that fail the isfile() condition) and adds a test that synthesizes an analogous condition.

@staticfloat
Copy link
Member Author

Test failures seem unrelated.

@KristofferC
Copy link
Member

Strange that pretty much all CI failed. I updated the branch to get a fresh run on top of latest master which should hopefully clear that up.

@staticfloat
Copy link
Member Author

staticfloat commented Oct 25, 2023

It seems to me that master is broken by this tuple inference failure?

EDIT: Ah, yes, I will rebase this once #51860 is figured out.

@brenhinkeller brenhinkeller added the REPL Julia's REPL (Read Eval Print Loop) label Oct 26, 2023
In macOS there is a file, `/usr/sbin/weakpass_edit` that is a symlink to
a directory that is only readable by `root`.  Our REPL shell completion
attempts to call `isfile()` when entering the shell mode and pressing
`w`, throwing an ugly error into the REPL.

This PR fixes the root cause (skipping files that fail the `isfile()`
condition) and adds a test that synthesizes an analogous condition.
@staticfloat staticfloat force-pushed the sf/fix_path_completion_error branch from 13ab7f4 to b37f0b4 Compare October 26, 2023 20:25
@staticfloat staticfloat merged commit 8a9476f into master Oct 27, 2023
@staticfloat staticfloat deleted the sf/fix_path_completion_error branch October 27, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

REPL Julia's REPL (Read Eval Print Loop)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants