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

Improve error message when a workspace folder is inaccessible #1276

Merged
merged 4 commits into from
Mar 20, 2025

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)

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
@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.

2 participants