[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 22 May 2017 15:50:18 -0700 (PDT)
Juan Pablo Carbajal-2 wrote
> On Sun, May 21, 2017 at 5:40 PM, siko1056 <
> > wrote:
>> JuanPi wrote
>>> On Sun, May 21, 2017 at 3:19 PM, JuanPi <
>>> > wrote:
>>>> Hi all,
>>>> Trying the function publish in 4.2.1 I get
>>>> error: 'create_output' undefined near line 375 column 17
>>>> error: called from
>>>> publish at line 375 column 15
>>>> Any ideas?
>>>> I was also wondering whether Kai's publish is already integrated in
>>>> 4.2.1, if not, where do we get Kai's publish?
>>>> JuanPi Carbajal
>>>> Public GnuPG key: 9C5B72BF
>>>> "Why is thought, being a secretion of the brain, more wonderful than
>>>> gravity, a property of matter?"
>>>> - C. Darwin
>>> it seems 4.2.1 is having troubles with subfunctions, because
>>> create_output is there...
>>> JuanPi Carbajal
>>> Public GnuPG key: 9C5B72BF
>>> "Why is thought, being a secretion of the brain, more wonderful than
>>> gravity, a property of matter?"
>>> - C. Darwin
>> Hi JuanPi,
>> Using a self-compiled Octave 4.2.1 on Linux, trying to publish this
>> https://github.com/siko1056/OctConf2017/blob/master/demo2/intro.m works
>> normal calling:
>>>> publish ("intro.m")
>> ans = /workspace/OctConf2017/demo2/html/intro.html
>> Also subfunctions don't bother my 4.2.1 version... did you modify
>> about publish or Octave? I'm very interested about getting this to work
>> View this message in context:
>> Sent from the Octave - General mailing list archive at Nabble.com.
>> Help-octave mailing list
> ok, found it!
> The issue is that the script being published cannot call
> clear all
> because it will delete the subfunction.
> Try it out
> ## A simple example
> # This will break publish
> clear all
> I did not find this documented, sorry. But I guess the script being
> published should be run in its own workspace... no idea how to do that
> or publish will have to comment out all the clear all and clear
> Also, need help with the markdown output or you already have it?
Thank you for pointing me to this issue. For me, this is really worth a bug
report! A fix (hack) would be to add a subfunction called clear at the very
end of the file, just before the tests start at line: "## Bad function
calls", see patch attached.
I think at least a warning should be issued, to inform the publisher, that
he should try to avoid using clear as long as bug
https://savannah.gnu.org/bugs/?35881 is open.
The other question about markdown support, that feature will be present in
the next release, currently dev or 4.3.0+. An almost ready template is
available from here:
(One just needs to strip the Jekyll part).
View this message in context:
Sent from the Octave - General mailing list archive at Nabble.com.