Hello and a small issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Hello and a small issue

Reinoud
Hi folks,

When designing my new laser cutter design, I noticed an oddity that on a linux
distro gives warnings but on the windows distribution crashes. Its due to my
(mis) use of `use <file.scad>' instead of `include <file.scad>'. Apparently
there is a semantic difference in that using `include' just works and when
using `use` it fails to find constants defined in the file included and under
the windows version crashes the program. No backtrace is given so I have no
idea where it bombed out. I used `use <MCAD/steppers.scad>'.

With regards,
Reinoud


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hello and a small issue

MichaelAtOz
Administrator
Hi,

Could you post a small example of the .scad code that crashes.

What versions of OpenSCAD are you using on Windows & Linux? Windows version?

Confirm that it is a crash, ie the .exe stops, not an error in the console.
Admin - PM me if you need anything,
or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hello and a small issue

Reinoud
Hi

On Mon, Feb 06, 2017 at 02:15:06PM -0700, MichaelAtOz wrote:
> Could you post a small example of the .scad code that crashes.
>
> What versions of OpenSCAD are you using on Windows & Linux? Windows version?
>
> Confirm that it is a crash, ie the .exe stops, not an error in the console.

I've created the smalles example I could think of that crashes. It crashes
regardless of the OS I run it on. I tested on NetBSD, Linux and Windows10. The
OpenSCAD release is the 2015.03p3. Note that if I change the `use` to
`include` it renders fine.

With regards,
Reinoud


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

boem.scad (75 bytes) Download Attachment
openscad-error-log (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hello and a small issue

Reinoud
On Mon, Feb 13, 2017 at 11:43:01AM +0100, Reinoud Zandijk wrote:

Ahum, the file ought to read like this:

-------
use <MCAD/stepper.scad>

motor(Nema14, NemaMedium, dualAxis=false);
-------

As in `use` instead of the working `include`.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hello and a small issue

kintel
Administrator
In reply to this post by Reinoud
Hi Reinoud,

This was fixed a while ago in master: https://github.com/openscad/openscad/issues/1528

 -Marius


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Loading...