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
Compilation in Sphinx fails (Goes to an infinite loop) when parfor statements are contained in methods in classes somewhere in the code.
The "complexity" of the statement seemingly doesn't play a role. Also note that the "faulty" method doesn't even need to be referenced in the sphinx docs, it's enough if it exists.
Steps to reproduce it
Grab a copy of this very github repo, go to docs/src/ and place this code in a file called 'test.m' in it:
classdeftest%TEST Summary of this class goes here%% Detailed explanation goes herepropertiesProperty1endmethodsfunctionobj= test(inputArg1,inputArg2)
%TEST Construct an instance of this class%% Detailed explanation goes here
obj.Property1 =inputArg1+inputArg2;
parfor i =1:10endendfunctionoutputArg= method1(obj,inputArg)
%METHOD1 Summary of this method goes here%% Detailed explanation goes here
outputArg =obj.Property1+inputArg;
endendend
The code is what Matlab generates by default as a class template. Do not touch any of the example code in the other files, leave it as is and try to compile the docs: make html
Expected output
The docs compile and are generated in the build output folder.
Actual output
The compilation doesn't finish, the compilation thread spins into an infinite loop.
Observations
If you remove the code for "method1" entirely, the bug disappears and the docs compile properly.
The text was updated successfully, but these errors were encountered:
Compilation in Sphinx fails (Goes to an infinite loop) when parfor statements are contained in methods in classes somewhere in the code.
The "complexity" of the statement seemingly doesn't play a role. Also note that the "faulty" method doesn't even need to be referenced in the sphinx docs, it's enough if it exists.
Steps to reproduce it
Grab a copy of this very github repo, go to
docs/src/
and place this code in a file called 'test.m' in it:The code is what Matlab generates by default as a class template. Do not touch any of the example code in the other files, leave it as is and try to compile the docs:
make html
Expected output
The docs compile and are generated in the build output folder.
Actual output
The compilation doesn't finish, the compilation thread spins into an infinite loop.
Observations
If you remove the code for "method1" entirely, the bug disappears and the docs compile properly.
The text was updated successfully, but these errors were encountered: