Open jmon12 opened 2 years ago
For anyone coming here to solve the problem, just remove the last line break from the last line.
Thank you @jmon12 for reporting this bug and to @guoguo616 for the solution. I apologize for the lack of reply as I guess I missed the original message...
@guoguo616 Would you mind submitting a pull request with the correction? Or specify the number of the line we need to remove? Thank you so much!
Thank you for the reply, @antoineallard . ,I'm sorry I don't know how to fix the error in C++ because I only have very limited exp with it. I suspect the problem is around embeddingS1.hpp line 1860~1862, we should skip both empty (or only blank chars) lines and lines starting with "#" here
Ah ok, I see. You meant removing the last line break of the last line of the .edges
file?
Yes, "removing the last line break of the last line of the .edges file" is how I work around the problem, though I highly suspect any blank line will cause the problem, though I didn't manage to test it out, though I am not sure about the readline flow operator actually behaves in different OS. It would be so nice of you to test and handle both the blank line and trailing line-switcher case. Thank you again.
The problem
Using mercator on a file
edges.edges
following the edgefile format convention where the LCC is not the whole network asmercator edges.edges
, the following behavior is to be observed, where the pattern leading to one or the other hasn't been identified:terminate called without an active exception Aborted (core dumped)