Skip to content

Instantly share code, notes, and snippets.

@vinaykr
Created November 21, 2015 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinaykr/fba6c1202ecb60637693 to your computer and use it in GitHub Desktop.
Save vinaykr/fba6c1202ecb60637693 to your computer and use it in GitHub Desktop.
Vinays-Mac-Book-Pro:test vinay$ sudo mono /Applications/Fuse.app/Contents/SketchImporter/SketchImporter.exe robinhood.sketch
Analyzing robinhood.sketch. This can take a while if the file is big.
Analyzing file structure...
Extracting font: Avenir Light
Extracting image: robinhood.Stock_list_Market_closed.AAPL.APPL
Extracting image: robinhood.Stock_list_Market_closed.AAPL.Oval_7
Extracting image: robinhood.Stock_list_Market_closed.AAPL.Rectangle_5
Extracting image: robinhood.Stock_list_Market_closed.TSLA.TSLA
Extracting image: robinhood.Stock_list_Market_closed.TSLA.Oval_7_Copy_21
Extracting image: robinhood.Stock_list_Market_closed.TSLA.Rectangle_5_Copy_6
Extracting image: robinhood.Stock_list_Market_closed.SQBK.Oval_7_Copy_20
Extracting image: robinhood.Stock_list_Market_closed.SQBK.SQBK
Extracting image: robinhood.Stock_list_Market_closed.SQBK.Rectangle_5_Copy_3
Extracting font: Helvetica Neue Light
Can't find an appropriate resource fork in robinhood.sketch-assets/temp/HelveticaNeue.dfont
Unhandled Exception:
System.UnauthorizedAccessException: Access to the path 'robinhood.sketch-assets/temp/' is denied.
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x1a03aa0 + 0x00608> in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) <0x1a03650 + 0x00051> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) <0x1a00b30 + 0x0004c> in <filename unknown>:0
at System.IO.File.ReadAllBytes (System.String path) <0x1a01620 + 0x00026> in <filename unknown>:0
at SketchImporter.TTCSplitter.GetFontName (System.String file) <0x5951fa0 + 0x0001f> in <filename unknown>:0
at SketchImporter.UXBuilder+<RegisterFont>c__AnonStorey0.<>m__0 (System.String y) <0x5951f50 + 0x00023> in <filename unknown>:0
at System.Linq.Enumerable.First[TSource] (IEnumerable`1 source, System.Func`2 predicate) <0x5951df0 + 0x0007c> in <filename unknown>:0
at SketchImporter.UXBuilder.RegisterFont (System.String identifierName, System.String originalName, System.String name) <0x5940540 + 0x00283> in <filename unknown>:0
at SketchImporter.TextLayer.Emit (SketchImporter.UXBuilder ux) <0x593fd88 + 0x0004f> in <filename unknown>:0
at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) <0x593f6a0 + 0x0005d> in <filename unknown>:0
at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) <0x56ebec0 + 0x00073> in <filename unknown>:0
at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) <0x593f6a0 + 0x0005d> in <filename unknown>:0
at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) <0x56ebec0 + 0x00073> in <filename unknown>:0
at SketchImporter.Page.EmitChildren (SketchImporter.UXBuilder ux) <0x593f548 + 0x0004d> in <filename unknown>:0
at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) <0x56ebec0 + 0x00073> in <filename unknown>:0
at SketchImporter.Document.Emit (SketchImporter.UXBuilder ux) <0x56ebe80 + 0x0002e> in <filename unknown>:0
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) <0x543d090 + 0x0031b> in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) <0x6fdec8 + 0x0048b> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path 'robinhood.sketch-assets/temp/' is denied.
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x1a03aa0 + 0x00608> in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) <0x1a03650 + 0x00051> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) <0x1a00b30 + 0x0004c> in <filename unknown>:0
at System.IO.File.ReadAllBytes (System.String path) <0x1a01620 + 0x00026> in <filename unknown>:0
at SketchImporter.TTCSplitter.GetFontName (System.String file) <0x5951fa0 + 0x0001f> in <filename unknown>:0
at SketchImporter.UXBuilder+<RegisterFont>c__AnonStorey0.<>m__0 (System.String y) <0x5951f50 + 0x00023> in <filename unknown>:0
at System.Linq.Enumerable.First[TSource] (IEnumerable`1 source, System.Func`2 predicate) <0x5951df0 + 0x0007c> in <filename unknown>:0
at SketchImporter.UXBuilder.RegisterFont (System.String identifierName, System.String originalName, System.String name) <0x5940540 + 0x00283> in <filename unknown>:0
at SketchImporter.TextLayer.Emit (SketchImporter.UXBuilder ux) <0x593fd88 + 0x0004f> in <filename unknown>:0
at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) <0x593f6a0 + 0x0005d> in <filename unknown>:0
at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) <0x56ebec0 + 0x00073> in <filename unknown>:0
at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) <0x593f6a0 + 0x0005d> in <filename unknown>:0
at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) <0x56ebec0 + 0x00073> in <filename unknown>:0
at SketchImporter.Page.EmitChildren (SketchImporter.UXBuilder ux) <0x593f548 + 0x0004d> in <filename unknown>:0
at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) <0x56ebec0 + 0x00073> in <filename unknown>:0
at SketchImporter.Document.Emit (SketchImporter.UXBuilder ux) <0x56ebe80 + 0x0002e> in <filename unknown>:0
at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) <0x543d090 + 0x0031b> in <filename unknown>:0
at SketchImporter.Program.Main (System.String[] args) <0x6fdec8 + 0x0048b> in <filename unknown>:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment