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

System.UnauthorizedAccessException when looking for all cs files while starting #167

Open
naveensrinivasan opened this issue Dec 24, 2014 · 1 comment

Comments

@naveensrinivasan
Copy link

When omnisharp-server starts without a solution int command line argument it tries to load all the *.cs files in the path. If one of the folder within the path path isn't accessible then it throws System.UnauthorizedAccessException and exits. It could probably skip ,log and continue.

Unhandled Exception: System.UnauthorizedAccessException: Access to the path 'C:\ Users\nsrinivasan\AppData\Local\Application Data' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileSystemEnumerableIterator``1.AddSearchableDirsToStack(SearchDa ta localSearchData) at System.IO.FileSystemEnumerableIterator``1.MoveNext() at System.Collections.Generic.List``1..ctor(IEnumerable``1 collection) at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOptio n searchOption) at System.IO.Abstractions.DirectoryInfoWrapper.GetFiles(String searchPattern, SearchOption searchOption) at OmniSharp.Solution.CSharpProject..ctor(ISolution solution, Logger logger, String folderPath, IFileSystem fileSystem) in c:\n\OmniSharpServer\OmniSharp\Sol ution\CSharpProject.cs:line 59 at OmniSharp.Solution.CSharpFolder.LoadSolution() in c:\n\OmniSharpServer\Omn iSharp\Solution\CSharpFolder.cs:line 28

@nosami
Copy link
Contributor

nosami commented Dec 24, 2014

Thanks for the report. This project is going to be replaced by this soon https://github.com/OmniSharp/omnisharp-roslyn so I won't be fixing it here.

I'll check this out though on the new project.

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

No branches or pull requests

2 participants