When running from command line with --export-svg option I am getting
Exporting to ./file.svg...Can't locate object method "encloses_point" via package "Slic3r::Polygon::Ref" at Slic3r/lib/Slic3r/Print.pm line 583.
Indeed, the method is not defined anywhere.
The guidelines require you tell us at least the version you're using :(
The version I am using is 0decbbf910766bb815ec6160ebf5242eef96be96 - git HEAD at the moment
$ git rev-parse HEAD
Bugfix: failure when exporting SVG from object containing multiple is…
…lands. Includes regression test. #2050
Thank you, fixed and added regression test.