Hi Francois,
Thanks for your answer!
I now call brainstorm compile
rather than using bst_compile
. I am using Windows 11.
When I compile brainstorm for the first time, everything works fine. I can execute scripts without any problem.
When I compile brainstorm a second time and try to execute script, I get a message like:
Could not find "doc" folder
and Could not find "defaults" folder
(see error message below). I did not have these messages when compiling the first time. I also get these messages when I compile brainstorm with custom classes added in the toolbox
folder.
These messages seems to cause problem when creating a protocol. I do not get error message when executing a filter, an ica, etc..
I tried running a script that verify if a protocol is created. If the protocol does not exist, the protocol is created. If the protocol already exists, the protocol is loaded.
If I execute the script, I will get the error message below. If I execute the same script a second time, it will be executed correctly. It seems like the error is raised when creating the protocol (but after it has been saved). Since the script is executed correctly the second time, it means the protocol has been created and is simply loaded.
I hope that my explanations are clear,
Thank you for your help,
Corentin
Error Message:
Matlab R2020a found:
C:\Program Files\MATLAB\MATLAB Runtime\v98
Please wait...
(if it takes more than a few minutes, try pressing ENTER)
BST> Starting Brainstorm:
BST> =================================
BST> Could not find "doc" folder.
BST> BrainstormHomeDir = C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain\Documents
BST> Version: 27-Jun-2022
BST> Deleting old process reports...
BST> Loading configuration file...
BST> Plugin brain2mesh: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\brain2mesh
BST> Plugin iso2mesh: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\iso2mesh
BST> Plugin brainentropy: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\brainentropy
BST> Plugin blackrock: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\blackrock
BST> Plugin neuroelectrics: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\neuroelectrics
BST> Plugin libsvm: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\libsvm
BST> Plugin derivelfp: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\derivelfp
BST> Plugin nirstorm: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\nirstorm
BST> Plugin mcxlab-cl: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\mcxlab-cl
BST> Plugin mia: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\plugins\mia
BST> Plugin spm12: C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain.brainstorm\spmtrip
BST> Reading process folder...
BST> Could not find "defaults" folder.
BST> BrainstormHomeDir = C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain\Documents
BST> Could not find "defaults" folder.
BST> BrainstormHomeDir = C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain\Documents
BST> Loading current protocol...
BST> =================================
BST> Could not find "defaults" folder.
BST> BrainstormHomeDir = C:\Users\brain\AppData\Local\Temp\brain\mcrCache9.12\bst_ja1\Users\brain\Documents
** Error: Line 184: panel_command>ExecuteScript
** Error while executing script:
** cat
** Dimensions of arrays being concatenated are not consistent.
**
** Call stack:
** >panel_command.m>ExecuteScript at 184
** >panel_command.m at 26
** >bst_call.m at 28
** >brainstorm.m at 297
**
BST> Saving protocol "MyProtocol"...
BST> Emptying temporary directory...
BST> Brainstorm stopped.
BST> Compiled code returned without errors.