Skip to content

Error message (6) #236

@HolQue

Description

@HolQue

JSON code:

"testlist" : ["A", "B", "C", "D"],
"param2"   : ${testlist}[X]

causes:

'Invalid syntax! A sub-element in ${testlist}[X] has to enclosed in quotes.'

That's wrong. Correct would be something like: "list indices must be integers"

For example, this works:

"intval"   : 1,
"testlist" : ["B", 2],
${testlist}['${intval}'] : 4

Outcome:

'Could not set variable '${testlist}['${intval}']' with value '4'! Reason: list indices must be integers or slices, not str'

Addendum: In between it has been decided to block slicing. Therefore we cannot suggest to use slices. The part "or slices" has to be removed from error message.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions