Hi everyone,
I recently turned off autosave and ran into the same problem. Here's the output window:
********************
Could not save glyph 'n' in layer 'foreground'
Traceback (most recent call last):
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/ufoLib/glifLib.py", line 268, in getGLIF
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/ww/8szzh9td0w95r2pm89_516_h0000gn/T/tmpsttvw8ln/temp.ufo/glyphs/n.glif'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "lib/fontObjects/doodleLayer.pyc", line 238, in saveGlyph
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/defcon/objects/layer.py", line 578, in saveGlyph
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/defcon/objects/layer.py", line 592, in _stampGlyphDataState
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/ufoLib/glifLib.py", line 282, in getGLIFModificationTime
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/ufoLib/glifLib.py", line 272, in getGLIF
KeyError: 'n'
Could not save glyph 'u' in layer 'foreground'
Traceback (most recent call last):
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/ufoLib/glifLib.py", line 268, in getGLIF
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/ww/8szzh9td0w95r2pm89_516_h0000gn/T/tmpsttvw8ln/temp.ufo/glyphs/u.glif'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "lib/fontObjects/doodleLayer.pyc", line 238, in saveGlyph
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/defcon/objects/layer.py", line 578, in saveGlyph
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/defcon/objects/layer.py", line 592, in _stampGlyphDataState
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/ufoLib/glifLib.py", line 282, in getGLIFModificationTime
File "/Applications/RoboFont.app/Contents/Resources/lib/python3.6/ufoLib/glifLib.py", line 272, in getGLIF
KeyError: 'u'
Before opening this file I turned off autosave after reading @FosterType 's reply.
Here are the steps I made in creating this error:
Opened the file, it was a UFO 2 and was converted to UFO 3
Moved a few points and handles. I did NOT create new points, segments, or contours. I did NOT make any new glyphs.
The 'u' is a component of the 'n' which I assume is why it is producing the error on both glyphs.
I noticed that in the RoboFont preferences my Autosave path was configured like this:
user/Library/Autosave Information
A classmate of mine who has not reported any issues like this had his AutoSave path configured in this way (he didn't remember doing this himself or if it carried through from an old Robofont install).
user/Library/Application Support/Robofont/Autosave
It's worth noting, this problem occurred AFTER I turned off Autosave, BUT I had not shut down and restarted Robofont yet.
I did the following and the error did NOT reproduce:
selected all points and segments and contours
deleted the glyph from Font menu
pasted the glyph data back in place
I shut down RoboFont and restarted it. Opened the file again and moved through the existing glyphs moving the points and saving and I have not been able to reproduce the error.
This could be because the Autosave preference has been updated.
Hope all this helps!