Duplicates in feature code are not caught by “Compile”

Hello there,

I found that there were duplicate lines within the liga feature code of a font which where not caught by pressing the compile button. The liga feature was not generated automatically.

Shouldn’t this produce an error or a warning?

It should do that but is makeOTF that is responsible.

So how can that be fixed?

Wouldn’t it be possible for Glyphs to catch such errors without relying on makeOTFs logic?

Duplicates in automated feature code? Can you give me an example?

if Glyphs could parse feature code to an extend that it could find this problem, I’m halfway through to write my own feature compiler :wink:

Well, not all feature code is automated.

Not sure I get it. Can you send me the file?