|
Post by xiao on Feb 12, 2020 5:26:06 GMT
Hi,
I'm getting some weird JS errors when I try to compile. I don't know javascript so I don't know how to decode these error messages, any help would be appreciated! I've c/p the full error message here:
experiment.js:2431: ERROR - Parse error. missing : after property id var block_learn = { ^
experiment.js:2432: ERROR - Parse error. syntax error blockname: "block_learn", step: 1, trial_counter: 0, ^
experiment.js:2433: ERROR - Parse error. syntax error trial_counter_per_task: [0], max_trials_in_block: 999999, criteria_fullfilled: 1, choosetask: 0, ^
experiment.js:2434: ERROR - Parse error. syntax error start: function(){block_learn.step=1; current_block="block_learn"; ^
experiment.js:2436: ERROR - Parse error. syntax error psy_clear_stimulus_counters_db();block_learn.run();}, ^
5 error(s), 0 warning(s)
|
|
|
Post by PsyToolkit on Feb 12, 2020 15:46:40 GMT
Hi, this should not happen. But I have never seen this error.
Please send an email to psytoolkit@gmx.com and then I can check your experiment (please send me your details as well, including name of experiment).
|
|
|
Post by PsyToolkit on Feb 13, 2020 15:38:41 GMT
If anyone has this problem, please resolve it as such:
1) Go to settings and select the advanced settings option 2) Then compile the experiment with the option NOT to minimize the code
Then it will compile fine.
|
|
|
Post by martinsimcik on Oct 22, 2020 20:57:46 GMT
Hey, I have similiar problem. But the option to in advanced settings not to minimize the code isn't there.
The error says this:
experiment.js:2665: ERROR - [JSC_PARSE_ERROR] Parse error. ')' expected psy_choose(999999,1,4,,,,); ^
1 error(s), 0 warning(s) mv: cannot stat 'tmp_.js': No such file or directory
I'm just starting to getting to know the language, but I dont know what is the problem in my code. Thank you for your help.
|
|
|
Post by PsyToolkit on Oct 22, 2020 22:28:39 GMT
if such things happen, please contact psytoolkit@gmx.com with your user email and name of experiment.
|
|
|
Post by pragya on Dec 12, 2020 14:56:51 GMT
Hi, I am getting a similar error while compiling the experiment.
The error:
experiment.js:2616: ERROR - [JSC_PARSE_ERROR] Parse error. primary expression expected new conditionsBlock1type( Apos, A, positive1, +, 0, 1,0), ^
1 error(s), 0 warning(s) mv: cannot stat 'tmp_.js': No such file or directory
Could you please help finding the error? Thank You!
|
|
lazzy
New Member
Posts: 8
|
Post by lazzy on Jul 2, 2021 10:45:52 GMT
If anyone has this problem, please resolve it as such: 1) Go to settings and select the advanced settings option 2) Then compile the experiment with the option NOT to minimize the code Then it will compile fine. I got a similar error and tried this. What do you mean by " Then compile the experiment with the option NOT to minimize the code" I activated the advanced options but I only get this options: "Do not report warnings even when they are there (be careful with this) Compile experiment with only 3 trials per block (handy for testing) Compile experiment in debug mode (handy for testing complex experiments) Start experiment without the red box" Could the problem be that my experiment extends my available disk space?
|
|