gsohler / openscad

OpenSCAD - The Programmers Solid 3D CAD Modeller
https://www.openscad.org
Other
26 stars 7 forks source link

Tiny bug: printing a OpenSCAD object chops the rest of the printout #17

Closed gandrewstone closed 7 months ago

gandrewstone commented 7 months ago

Describe the bug

printing out an openscad object appears to be chopping the rest of the line:

prefix None suffix
prefix OpenSCAD (2)

To Reproduce try this:

import openscad as ops
s = ops.sphere(10)
t = None
print("prefix", t, "suffix")
print("prefix", s, "suffix")
gsohler commented 7 months ago

repr member of openscad object created an extra '\0' character. Could you check if its fixed in your place and close ?

gandrewstone commented 7 months ago

got this error building e1f34aab6c77300629b4ae6eb68edfc156813e42 /usr/bin/ld: CMakeFiles/OpenSCAD.dir/src/geometry/GeometryEvaluator.cc.o: in function std::ostream& operator<< <__mpz_struct [1], __mpz_struct [1]>(std::ostream&, __gmp_expr<__mpz_struct [1], __mpz_struct [1]> const&)': GeometryEvaluator.cc:(.text._ZlsIA1_12__mpz_structS1_ERSoS2_RK10__gmp_exprIT_T0_E[_ZlsIA1_12__mpz_structS1_ERSoS2_RK10__gmp_exprIT_T0_E]+0x36): undefined reference tooperator<<(std::ostream&, __mpz_struct const*)'

gsohler commented 7 months ago

Sorry, cannot See this Error in my Side. Did you try a "make clean" ?

Andrew Stone @.***> schrieb am Sa., 17. Feb. 2024, 17:05:

got this error building e1f34aa https://github.com/gsohler/openscad/commit/e1f34aab6c77300629b4ae6eb68edfc156813e42 /usr/bin/ld: CMakeFiles/OpenSCAD.dir/src/geometry/GeometryEvaluator.cc.o: in function std::ostream& operator<< <mpz_struct [1], __mpz_struct [1]>(std::ostream&, gmp_expr<mpz_struct [1], __mpz_struct [1]> const&)': GeometryEvaluator.cc:(.text._ZlsIA1_12mpz_structS1_ERSoS2_RK10gmp_exprIT_T0_E[_ZlsIA1_12__mpz_structS1_ERSoS2_RK10gmp_exprIT_T0_E]+0x36): undefined reference to operator<<(std::ostream&, __mpz_struct const*)'

— Reply to this email directly, view it on GitHub https://github.com/gsohler/openscad/issues/17#issuecomment-1950244345, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCO4MVZRFKY27QS2IGMT2TYUDINVAVCNFSM6AAAAABDHCXTIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJQGI2DIMZUGU . You are receiving this because you commented.Message ID: @.***>

gandrewstone commented 7 months ago

no trying that now; I was able to build HEAD~1 fine though