Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foma exits 0 - zero - on lexc syntax error #53

Open
GoogleCodeExporter opened this issue Mar 3, 2016 · 0 comments
Open

Foma exits 0 - zero - on lexc syntax error #53

GoogleCodeExporter opened this issue Mar 3, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a bogus lexc file, say garbage.lexc
2. foma -q -e "read lexc garbage.lexc" -e "compose net" -e "save stack 
garbage.fst " -s
3. echo $?

What is the expected output? What do you see instead?

Expected output: >0
Actual output: 0

What version of the product are you using? On what operating system?

OS: MacOSX 10.9
Foma version: the one included in hfst 3.5.1:

$ hfst_foma -v
hfst_foma 0.9.17alpha

Please provide any additional information below.

The bug is problematic when foma is part of a larger build system, as it causes 
syntax errors to pass by without forcing the linguist to fix them. With a 
proper exit value 'make' will abort at the error, thus making the error 
(hopefully) visible to the lexc developer.

Original issue reported on code.google.com by [email protected] on 22 Nov 2013 at 12:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant