Back to the main page.

Bug 3138 - improve support for R2016b

Status CLOSED FIXED
Reported 2016-06-07 16:18:00 +0200
Modified 2019-08-10 12:40:38 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also: http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3139

Guillaume - 2016-06-07 16:18:33 +0200

ft_preamble_init.m is a script that calls "nargin". This is not allowed in MATLAB R2016b (beta) and an error is thrown: Error using nargin You can only call nargin/nargout from within a MATLAB function. In file "fieldtrip/utilities/private/ft_preamble_init.m", function "ft_preamble_init" at line 34.


Robert Oostenveld - 2016-06-07 16:52:37 +0200

hmm, this is something that we already looked at, but not in relation to 2016b. Does it still work in 2016a?


Guillaume - 2016-06-07 16:58:41 +0200

(In reply to Robert Oostenveld from comment #1) Yes, it seems to work with R2016a. Only R2016b complains about it (even if both return the same error if nargin is called at the MATLAB prompt).


Robert Oostenveld - 2016-06-14 16:04:13 +0200

mac011> git commit utilities/private/ft_preamble_init.m [master 995765f] FIX - don't call nargin, as that fails on R2016b, see http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3138 1 file changed, 1 insertion(+), 1 deletion(-) I will push this soon.


Jan-Mathijs Schoffelen - 2016-11-29 09:19:50 +0100

@Hong: what's the status of installing 2016b on the cluster?


Hurng-Chun Lee - 2016-11-29 10:32:41 +0100

(In reply to Jan-Mathijs Schoffelen from comment #4) It's just done yesterday. Marek has asked me to check it and it seems to work fine.


Guillaume - 2017-06-15 18:30:00 +0200

ft_preamble_init.m still calls nargout. Should it be replaced by ft_nargout?


Robert Oostenveld - 2017-06-19 09:27:44 +0200

mac011> git commit ft_preamble_init.m [master e8e6c25] use ft_nargout instead of nargout, see http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3138#c6 1 file changed, 1 insertion(+), 1 deletion(-) mac011> git push ... thanks for following up.


Robert Oostenveld - 2019-08-10 12:34:28 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.


Robert Oostenveld - 2019-08-10 12:40:38 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.