jsPsych icon indicating copy to clipboard operation
jsPsych copied to clipboard

Improve error message for survey-text plugin

Open jodeleeuw opened this issue 2 years ago • 1 comments

Just helped troubleshoot a situation where the parameter for the survey-text plugin was set as question instead of questions, but the error message generated was not helpful. We should provide a better error message (and generalize this beyond this particular plugin probably!).

jodeleeuw avatar Jan 25 '23 16:01 jodeleeuw

my $0.02: could be especially helpful for simulation-related functionality as I constantly find myself forgetting the names of the parameters. Possible error/warning messages could include: "Argument FOO provided in trial definition but not used" "Trial received simulation string BAR but BAR was not defined. Defaulting to DEFAULT behaviour." (warning) "FUZ simulation string defined but not used anywhere." (warning)

I am just starting to use AI assistants (Copilot, Codewhisperer) but it'd be nice to see if popular IDEs can be given sufficient information to detect such mis-namings.

nikbpetrov avatar Apr 21 '23 11:04 nikbpetrov