discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Hello and a small issue

RZ
Reinoud Zandijk
Mon, Feb 6, 2017 8:47 PM

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 useit 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 useduse <MCAD/steppers.scad>'.

With regards,
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
M
MichaelAtOz
Mon, Feb 6, 2017 9:15 PM

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!

View this message in context: http://forum.openscad.org/Hello-and-a-small-issue-tp20348p20349.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

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! -- View this message in context: http://forum.openscad.org/Hello-and-a-small-issue-tp20348p20349.html Sent from the OpenSCAD mailing list archive at Nabble.com.
RZ
Reinoud Zandijk
Mon, Feb 13, 2017 10:43 AM

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

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
RZ
Reinoud Zandijk
Mon, Feb 13, 2017 10:53 AM

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.

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`.
MK
Marius Kintel
Mon, Feb 13, 2017 5:22 PM

Hi Reinoud,

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

-Marius

Hi Reinoud, This was fixed a while ago in master: https://github.com/openscad/openscad/issues/1528 -Marius