numbas / numbas/editor

The mathematical expression part editor doesn't pick up variables used in expressions substituted into the expected answer

Open
#849 3 comments 0 reactions 0 assignees View on GitHub
confirmed bug
Dominant language
JavaScript
Stars
60
Forks
62
PR merge metrics
No merged PRs in 30d

Description

I have a question variable `answer = expression("x")`. The expected answer for the part is `{answer}`. The variable `x` doesn't show up in the list of variable value generators in the accuracy tab.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the question with answer = expression("x") and expected answer {answer}, then inspect the mathematical expression part editor's accuracy tab and its variable value generator list. The issue is done when x appears as a variable value generator for this substituted expression.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.