ionide / proj-info

Parse and evaluate MsBuild project files
MIT License
64 stars 37 forks source link

Access error while reading project files. #174

Closed sheridanchris closed 1 year ago

sheridanchris commented 1 year ago

Describe the bug When crawling through project files in a solution, encountering a directory which proj-info doesn't have permission to read, will result in a System.IO.Exception: Permission Denied

To Reproduce Steps to reproduce the behaviour:

  1. Create an F# project
  2. Add a folder/files that requires elevated permissions (root/admin)
  3. Try loading the solution with Ionide
  4. Look at F# log output with the adaptive lsp server enabled (without this, the error will still occur but the exception doesn't appear in the output).
  5. See error

Expected behaviour I expected the directory to be ignored.

Screenshots https://imgur.com/a/Fyi965I

Environment (please complete the following information):

Additional context I'm using docker-compose to create volumes for PostgreSQL + Redis. On Linux and Windows, these volumes require elevated (admin/root) privileges to access.

I would like to create a PR to fix this issue.