Giter Club home page Giter Club logo

Comments (2)

donbright avatar donbright commented on August 18, 2024

thanks for the easy to follow bug report. a patch has been submitted.

-DB

On Tue, Jan 31, 2012 at 11:11 AM, caliston
[email protected]
wrote:

When I have a file where the last character isn't a newline, OpenSCAD ignores the first argument on the command line.  Consider the code in the file scad-params.scad:

a_a=false;
b_b=false;
c_c=false;
echo("a=",a_a,"b=",b_b,"c=",c_c);
// end of file

If that has the last byte of the file as 'e' running it gives this:

$ openscad -o foo.dxf -D a_a=1 -D b_b=2 scad-params.scad
ECHO: "a=", false, "b=", 2, "c=", false
CGAL Cache insert: group(); (40 bytes)
CGAL Cache insert: group(){group();} (40 bytes)
Current top level object is not a 2D object.

If the 'e' is followed by a newline, ie the last two bytes are 'e\n', it correctly notices the -D a_a=1 argument:

$ openscad -o foo.dxf -D a_a=1 -D b_b=2 scad-params.scad
ECHO: "a=", 1, "b=", 2, "c=", false
CGAL Cache insert: group(); (40 bytes)
CGAL Cache insert: group(){group();} (40 bytes)
Current top level object is not a 2D object.

I'm running a freshly 'git pull'ed OpenSCAD: commit a15c899, on Ubuntu 11.04, x86.


Reply to this email directly or view it on GitHub:
#76

from openscad.

donbright avatar donbright commented on August 18, 2024

disregard my message, i had some problems with 'git update' not working. marius' patch fixes the bug.

from openscad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.