You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While making my own version of Faust IDE, I'm finding it a little difficult to use Faust.createMonoFactory().compileNode() when given incorrect dsp, because the specific details about the syntax error don't seem to be available anywhere. All that I see is that console.error is called stating that a syntax error occurred, and the result of the promise returned from .compileNode() is null.
Would it be worth considering this?
a) surfacing the details of the syntax error through the API
a) If compilation fails, it might be more idiomatic javascript and more useful for developer if the promise returned from .compileNode() rejects with an Error containing those error details. Simply receiving null gives no information about what went wrong.
Or is there a way I don't know about? I'm looking into compilation parameters that might affect this.
The Faust IDE for example shows a more specific error "unexpected float":
import("stdfaust.lib");
process = os.sawtooth(1000.0), os.sawtooth(200.0.0);
yields
The text was updated successfully, but these errors were encountered:
While making my own version of Faust IDE, I'm finding it a little difficult to use
Faust.createMonoFactory().compileNode()
when given incorrect dsp, because the specific details about the syntax error don't seem to be available anywhere. All that I see is thatconsole.error
is called stating that a syntax error occurred, and the result of the promise returned from.compileNode()
isnull
.My code:
Would it be worth considering this?
a) surfacing the details of the syntax error through the API
a) If compilation fails, it might be more idiomatic javascript and more useful for developer if the promise returned from
.compileNode()
rejects with anError
containing those error details. Simply receivingnull
gives no information about what went wrong.Or is there a way I don't know about? I'm looking into compilation parameters that might affect this.
The Faust IDE for example shows a more specific error "unexpected float":
yields
The text was updated successfully, but these errors were encountered: