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

Exception Unhandled in DiskItem.cs and WindowContent.xaml.cs during compilation #7

Closed
logonoff opened this issue Mar 9, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@logonoff
Copy link
Contributor

logonoff commented Mar 9, 2019

Running:

During compilation, these errors are thrown:
line 47, DiskItem.cs
excerpt 1

line 151. WindowContent.xaml.cs
excerpt 2

A very terrible solution is to comment out line 165 of MainWindow.xaml.cs. However, that's what actually starts the initial tab when the program is starting.

Other solutions currently tried:

  • uncommenting line 212 in DiskItem.cs
206        public DiskItem(String path)
207        {
208            ItemPath = Environment.ExpandEnvironmentVariables(path);
209            if (Directory.Exists(ItemPath))
210                ItemCategory = DiskItemCategory.Directory;
211
212            SetFSInfo(ItemPath); // this line
213
214            //WatchFileSystem();
215        }
@logonoff logonoff added the bug Something isn't working label Mar 9, 2019
@logonoff logonoff changed the title Exception Unhanded in DiskItem.cs and WindowContent.xaml.cs Exception Unhanded in DiskItem.cs and WindowContent.xaml.cs during compilation Mar 9, 2019
@logonoff logonoff changed the title Exception Unhanded in DiskItem.cs and WindowContent.xaml.cs during compilation Exception Unhandled in DiskItem.cs and WindowContent.xaml.cs during compilation Mar 9, 2019
@reflectronic reflectronic self-assigned this Mar 9, 2019
@reflectronic
Copy link
Contributor

On my end, it looks like the DriveInfo.GetDrives() API in .NET was returning a drive D:\ even though I didn't have one, which tripped up DiskItem. I've fixed this issue on the end of this project, fix coming later.

reflectronic added a commit that referenced this issue Mar 9, 2019
Also update XAML behaviors library
@reflectronic
Copy link
Contributor

Fixed in c18c2ed (I'd have to merge the branch to get it to auto-close so just gonna close it here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants