RafalBuchner / StemThickness

Apache License 2.0
29 stars 13 forks source link

Many errors #6

Open Tosche opened 6 years ago

Tosche commented 6 years ago

I see following errors while using the plugin.

Error 1: ERROR: crossPoint == ON CURVE POINT!!!! (I think this error is expected to happen, in that case I do not want to see it, as I use output area myself quite often)

Error 2: Traceback (most recent call last): File "GlyphsApp/plugins.py", line 1118, in drawForegroundForLayeroptions File "/Users/toshi/Library/Application Support/Glyphs/Repositories/StemThickness/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py", line 100, in foreground closestData = self.calcClosestInfo(layer, crossHairCenter) File "/Users/toshi/Library/Application Support/Glyphs/Repositories/StemThickness/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py", line 262, in calcClosestInfo n = math.floor(closestPathTime) TypeError: a float is required

Error 3: Traceback (most recent call last): File "GlyphsApp/plugins.py", line 1118, in drawForegroundForLayeroptions File "/Users/toshi/Library/Application Support/Glyphs/Repositories/StemThickness/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py", line 104, in foreground self.drawCrossingsForData(closestData) File "/Users/toshi/Library/Application Support/Glyphs/Repositories/StemThickness/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py", line 175, in drawCrossingsForData FirstCrossPointA = NSPoint(crossPoints[i].x,crossPoints[i].y) #blue File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/convenience.py", line 459, in getitemobjectAtIndex raise IndexError("list index out of range") IndexError: list index out of range

Error 4: Traceback (most recent call last): File "GlyphsApp/plugins.py", line 1118, in drawForegroundForLayeroptions File "/Users/toshi/Library/Application Support/Glyphs/Repositories/StemThickness/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py", line 100, in foreground closestData = self.calcClosestInfo(layer, crossHairCenter) File "/Users/toshi/Library/Application Support/Glyphs/Repositories/StemThickness/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py", line 264, in calcClosestInfo if OnNode.type == CURVE: AttributeError: 'NoneType' object has no attribute 'type'