Repository navigation
Conversation
On Windows a file name starting with // is a network share, and checking whether it exists connects to that host. Terminal output is full of text the file pattern takes for such a path, like npm's `//registry.example.com/' warnings or the //localhost half of a ws:// URL, so a scan could freeze Emacs for up to 21 seconds, the TCP connect timeout, with C-g unable to stop it. - `ghostel--file-exists-p' treats a //HOST/... path as missing on MS-Windows and Cygwin without asking the host, so it is never linked. The file pass of `ghostel--detect-urls' checks paths through it. - A path on the host `default-directory' is on is still checked, compared ignoring case (`ghostel--share-host'). A shell running on a share has just reached that host, and its relative paths expand to //HOST/... too, so its files keep their links.
Owner
|
@vjohansen Thanks. Do you want to check #759 |
Contributor
Author
|
Yes, that is fine |
Owner
|
OK, thanks. Closing this PR then in favor of #759 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR causes link checker to ignore //foo paths (UNC paths) on Windows. This fixes the issue where file-exists-p call in ghostel--detect-urls hangs for a 20 seconds (C-g has no effect)
An exception is made for the paths on the same host. I opened a shell on a UNC path and verified the // links were detected
UNC paths are a known source of Windows bugs in Emacs packages, e.g.