Skip to content

Conversation

@thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Mar 20, 2025

On Linux when using a LSP client that does not support watching files on behalf of the server, we'll use Parcel Watcher (if possible). If we start the watcher with a non-existent or inaccessible directory, it will throw an error with a very unhelpful message: "Bad file descriptor".

The best thing we can do is an initial check for access to the directory and log a more helpful error message if it fails:

Screenshot 2025-03-20 at 12 33 29

See #884 (comment)

@thecrypticace thecrypticace merged commit f91a3bc into main Mar 20, 2025
@thecrypticace thecrypticace deleted the fix/better-inaccessible-linx-error-message branch March 20, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants