I am unable to import a sketch file. The error reports that there is a missing font file but it is present in the filesystem on that path. Any ideas what could be up?
================= Import Error: vinay:~/projects/sketchproj/sketchproj$ fuse import ~/Downloads/fuse/roomify-roommate-finder-app.sketch Analyzing roomify-roommate-finder-app.sketch. This can take a while if the file is big. Analyzing file structure… Extracting font: System Font Regular
Unhandled Exception: System.IO.FileNotFoundException: file:///System/Library/Fonts/HelveticaNeueDeskInterface.ttc does not exist File name: ‘file:///System/Library/Fonts/HelveticaNeueDeskInterface.ttc’ at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) [0x00000] in :0 at SketchImporter.UXBuilder.RegisterFont (System.String identifierName, System.String originalName, System.String name) [0x00000] in :0 at SketchImporter.TextLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Page.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Document.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in :0 at SketchImporter.Program.Main (System.String[] args) [0x00000] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: file:///System/Library/Fonts/HelveticaNeueDeskInterface.ttc does not exist File name: ‘file:///System/Library/Fonts/HelveticaNeueDeskInterface.ttc’ at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) [0x00000] in :0 at SketchImporter.UXBuilder.RegisterFont (System.String identifierName, System.String originalName, System.String name) [0x00000] in :0 at SketchImporter.TextLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Page.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Document.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in :0 at SketchImporter.Program.Main (System.String[] args) [0x00000] in :0 fuse: Import failed: An error occurred
I am receiving that same error message. I have tried using multiple fonts, all of which are installed on my system. Any help would be appreciated as I am really looking forward to trying this feature out if I can just get past this hurdle.
Can you upload the .sketch file which has the problem? If the fonts are installed, this shouldn’t happen. If the file is private, you can use https://dropbox.com/request/Rx1QN3QluvxAJiyGJqrh and we’ll keep it private and just for diagnostics.
I have uploaded a test sketch file (SketchImportTest) that simply has one word with the Helvetica Neue font.
The error I get is almost exactly the same as above:
Extracting font: Helvetica Neue
Unhandled Exception: System.IO.FileNotFoundException: file:///System/Library/Fonts/HelveticaNeue.dfont does not exist File name: ‘file:///System/Library/Fonts/HelveticaNeue.dfont’ at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) [0x00000] in :0 at SketchImporter.UXBuilder.RegisterFont (System.String identifierName, System.String originalName, System.String name) [0x00000] in :0 at SketchImporter.TextLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Page.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Document.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in :0 at SketchImporter.Program.Main (System.String[] args) [0x00000] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: file:///System/Library/Fonts/HelveticaNeue.dfont does not exist File name: ‘file:///System/Library/Fonts/HelveticaNeue.dfont’ at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) [0x00000] in :0 at SketchImporter.UXBuilder.RegisterFont (System.String identifierName, System.String originalName, System.String name) [0x00000] in :0 at SketchImporter.TextLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Page.EmitChildren (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.ParentLayer.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Document.Emit (SketchImporter.UXBuilder ux) [0x00000] in :0 at SketchImporter.Program.ProcessSketchFile (System.String sketchFile, System.String resPath, System.String appPath, System.Double[] densities) [0x00000] in :0 at SketchImporter.Program.Main (System.String[] args) [0x00000] in :0 fuse: Import failed: An error occurred
No problem. Thank you for looking in to it! I’m loving your product so far and would be delighted to be able to import from Sketch. Let me know if you need me to test anything else.
This issue is (hopefully) solved in the next release. You can try now writing this instead of fuse import: mono /Applications/Fuse.app/Contents/SketchImporter/SketchImporter.exe robinhood-ios-app-ui-thecoolgeeknet.sketch
Please rename the .sketch file to not have any dashes in it (for instance robinhood.sketch or robinhood_ios_app_ui_thecoolgeeknet.sketch) to prevent a couple of other issues, that will be fixed in a later release.
Thanks Bjorn! It is much better but still breaking while trying to access temp folder. Here is the error: System.UnauthorizedAccessException: Access to the path ‘robinhood.sketch-assets/temp/’ is denied.
I tested the robinhood sketch file again. The import process went farther than last time but still got stuck due to another font issue. Here is the output: https://gist.github.com/vinaykr/1d5307d48f60a55d0e29
This font file is not present on my system font path /System/Library/Fonts/ . Do I need the font file to make this work? Shouldn’t it fallback to some default font?