[CLOSED] Failed to compile the code

Post your bug reports here. Include information that helps us to understand and reproduce the bug.
Post Reply
faisal.quadirey
Posts: 33
Joined: Wed Apr 07, 2021 6:50 am

[CLOSED] Failed to compile the code

Post by faisal.quadirey »

On editing anything in OpenType Layout Feature Code Editor - OTLFD, it returns the error Failed to compile the code.
For your reference, screenshots have been attached.
In the screenshot, you see that in Line.#.2442 entry is NULL
if I changed NULL to value 0 then it's ignored otherwise it returns an error.
Attachments
Ref2.png
Ref2.png (83.76 KiB) Viewed 4971 times
Ref1.png
Ref1.png (75.87 KiB) Viewed 4971 times
Erwin Denissen
Moderator
Moderator
Posts: 11160
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Failed to compile the code

Post by Erwin Denissen »

Line #2442 is just a warning, so it should compile, but the error is the empty lookup at #4855. It should compile after you have removed that lookup.

Can you edit and compile with the Adobe feature syntax (FEA) instead of OTLFD? That is nowadays the preferred syntax.
Erwin Denissen
High-Logic
Proven Font Technology
faisal.quadirey
Posts: 33
Joined: Wed Apr 07, 2021 6:50 am

Re: Failed to compile the code

Post by faisal.quadirey »

No, I am just using OTLFD
okay, I'll remove the empty lookup.
Erwin Denissen
Moderator
Moderator
Posts: 11160
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Failed to compile the code

Post by Erwin Denissen »

faisal.quadirey wrote: Wed Jul 12, 2023 6:43 am No, I am just using OTLFD
okay, I'll remove the empty lookup.
Better use the upper-left combo box to switch from OTLFD to FEA.
Erwin Denissen
High-Logic
Proven Font Technology
Post Reply