Closed Ironholds closed 8 years ago
Ok, first thing I noticed is parser isn't loaded. It has its own setup/teardown method, as sometimes it makes sense to load things in separate modules e.g. so you don't have to pull in the language classifier if it's not being used.
I haven't set everything up yet, but that's a likely cause.
Yeah, I saw your patch and immediately headdesked; my screwup. Now having trouble building on my machine but I think that's an indicator that I somehow messed up the libpostal install process rather than anything else.
Often a fresh make install
will do the trick. Otherwise maybe nuke and try again?
thumbs up
Tried, no dice. Nuke and try again it is!
(Just to make sure, obliterating the data directory, the pkg-config output and the libpostal source dir constitutes "nuke" right?)
Yeah, that should be it. Just reclone and bootstrap/configure/make/make install
Well, that's interesting. The error is now: "Error loading transliteration module". But the command line parser now works, which it didn't before. Wat?
Oh, weird. This is 64-bit arch I take it?
Yup!
Aaand now Rcpp can't find <libpostal/libpostal.h> relying on pkg-config even though running pkg-config absolutely finds it. R, what are you DOING?
Hmn. Okay, that may be because libpostal no longer lives where pkg-config thinks it does. I'm going to avoid running my mouth at a mile a minute and debug it ;p
After kicking, swearing and giving my machine the hairy eyeball it looks like it can now find where everything lives and your setup/teardown changes (with a few tweaks I need to push) made parsing work happily! Danke schoen!
As an upstream suggestion: it seems like there should be a better response to "you've asked for a parse but nobody did setup" than a segfault. Want me to open an issue? Does it sound silly?
:tada: no problem. It should definitely not segfault, should either log an error and return NULL or do an assert, which would be a more graceful crash that tells you what went wrong.
Want me to file then?
It's a 2-line change, I'll just add it in now.
Leads to: