Bug?: "Ignoring unknown function" error when using external library

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug?: "Ignoring unknown function" error when using external library

QuackingPlums
I noticed this error when parsing/compiling an existing project that works fine with 2014.03, and have narrowed it down to the following reproducible example.

Create a library file called <library.scad> containing one function:
function remote_function() = 1;

Import this into a test like this:
use <library.scad>;
echo( remote_function() );
var = remote_function();
echo(var);


Hit F5. The output in the console pane I get is as follows:
WARNING: Ignoring unknown function 'remote_function'.
Compiling design (CSG Tree generation)...
ECHO: 1
ECHO: 1


It looks like both of the calls to remote_function() are succeeding but the assignment of the function result to my variable is erroneously reporting a warning? Is this a known bug?
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Bug?: "Ignoring unknown function" error when using external library

tp3
Yes, that might be https://github.com/openscad/openscad/issues/949
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Bug?: "Ignoring unknown function" error when using external library

QuackingPlums
Doh! Sorry, I should have found that in the issue tracker myself. I must have used the wrong search term or suffered temporary blindness.