The following code with identical input in all cases:

<debug(|"get-type: ")> t;
type := <get-type;try(rm-annotations);write-to-string>t

Works fine when called from the hover or from a menu builder.
Result:

get-type: BinExp(Plus,Integer("7"){(Type,Result(8))},Integer("4"){(Type,Result(8))}){(Type,Result(42))}

But throws an exception when called from the properties-view.
Result:

get-type: BinExp(Plus,Integer("7"){(Type,Result(8))},Integer("4"){(Type,Result(8))}){(Type,Result(42))}
Internal error evaluating editor-properties (InterpreterException; see error log)
rewriting failed, trace:
	editor_properties_0_0
	get_editor_properties_0_0
	type_prop_0_0
	get_type_0_0
	get_property_0_1
	try_1_0
	task_result_combinations_single_0_0
	task_api_result_combinations_2_2

How can this happen while the input is exactly the same in all cases?

Submitted by Daco Harkes on 26 February 2014 at 15:39

On 26 February 2014 at 16:02 Daco Harkes commented:

The task-engine and index were not set up, thats why it failed.

Issue can be closed.


On 26 February 2014 at 16:32 Guido Wachsmuth commented:

Done.


On 26 February 2014 at 16:32 Guido Wachsmuth closed this issue.

Log in to post comments