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

Shapes Lab storage error #1886

Closed
YuPeiHenry opened this issue Apr 15, 2019 · 1 comment
Closed

Shapes Lab storage error #1886

YuPeiHenry opened this issue Apr 15, 2019 · 1 comment

Comments

@YuPeiHenry
Copy link
Contributor

YuPeiHenry commented Apr 15, 2019

Bug Report

Shapes Lab will never start correctly if there is a category that cannot be retrieved. There is no option to reset shapes lab to mediate the problem either.
image

Environment

PowerPoint 2016

Steps to replicate

Have a category with an illegal name, (eg. COM1). Currently error is given whenever shapes lab is open.

Recommended fix

Delete the category that cause the problem.

Other info (Stack Trace)

System.IO.DirectoryNotFoundException
Could not find a part of the path 'C:'.
Stack Trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.IO.Directory.CreateDirectory(String path)
at PowerPointLabs.Models.PowerPointShapeGalleryPresentation.ConsistencyCheckCategorySlideToLocal(PowerPointSlide category) in C:\Users\Admin\Desktop\other_repos\PowerPoint_Labs\PowerPointLabs\PowerPointLabs\Models\PowerPointShapeGalleryPresentation.cs:line 390
at PowerPointLabs.Models.PowerPointShapeGalleryPresentation.InitCategories() in C:\Users\Admin\Desktop\other_repos\PowerPoint_Labs\PowerPointLabs\PowerPointLabs\Models\PowerPointShapeGalleryPresentation.cs:line 571
at PowerPointLabs.Models.PowerPointShapeGalleryPresentation.ConsistencyCheck() in C:\Users\Admin\Desktop\other_repos\PowerPoint_Labs\PowerPointLabs\PowerPointLabs\Models\PowerPointShapeGalleryPresentation.cs:line 317
at PowerPointLabs.Models.PowerPointShapeGalleryPresentation.Open(Boolean readOnly, Boolean untitled, Boolean withWindow, Boolean focus) in C:\Users\Admin\Desktop\other_repos\PowerPoint_Labs\PowerPointLabs\PowerPointLabs\Models\PowerPointShapeGalleryPresentation.cs:line 237
at PowerPointLabs.ThisAddIn.InitializeShapeGallery() in C:\Users\Admin\Desktop\other_repos\PowerPoint_Labs\PowerPointLabs\PowerPointLabs\ThisAddIn.cs:line 179
at PowerPointLabs.ShapesLab.Views.CustomShapePaneWPF.SetStorageSettings() in C:\Users\Admin\Desktop\other_repos\PowerPoint_Labs\PowerPointLabs\PowerPointLabs\ShapesLab\Views\CustomShapePaneWPF.xaml.cs:line 95
at PowerPointLabs.ShapesLab.CustomShapePane.InitCustomShapePaneStorage() in C:\Users\Admin\Desktop\other_repos\PowerPoint_Labs\PowerPointLabs\PowerPointLabs\ShapesLab\CustomShapePane.Designer.cs:line 57
at PowerPointLabs.ActionFramework.ShapesLab.ShapesLabActionHandler.ExecuteAction(String ribbonId) in C:\Users\Admin\Desktop\other_repos\PowerPoint_Labs\PowerPointLabs\PowerPointLabs\ActionFramework\ShapesLab\ShapesLabActionHandler.cs:line 28
at PowerPointLabs.ActionFramework.Common.Interface.ActionHandler.Execute(String ribbonId) in C:\Users\Admin\Desktop\other_repos\PowerPoint_Labs\PowerPointLabs\PowerPointLabs\ActionFramework\Common\Interface\ActionHandler.cs:line 14

@YuPeiHenry
Copy link
Contributor Author

Turns out this was caused by having a category with name COM1, which was filtered in a recent PR (but this category got created before that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant