Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error message if parameter for function is unknown #29

Open
fingenerf opened this issue Jan 21, 2020 · 0 comments
Open

Bad error message if parameter for function is unknown #29

fingenerf opened this issue Jan 21, 2020 · 0 comments
Labels
enhancement New feature or request parser

Comments

@fingenerf
Copy link

fingenerf commented Jan 21, 2020

time_to_process_order and estimated_earliest_starting_time is defined as follows

number function time_to_process_order(Complexity complexity) = 
	if (complexity == C0)
		120
	else if (complexity == C1)
		180
	else if (complexity == C2)
		240
	else if (complexity == C3)
		300
	else
		1020 // A full game lasts 17min = 1020s

number function estimated_earliest_starting_time(number order_id) = (order_delivery_period_begin(order_id) - time_to_process_order(order_complexity(order_id))) + 60

If the following test is done with the unknown variable id
test(game_time().sec > estimated_earliest_starting_time(id));
the error message is:

Parsing /home/praktikum/labhlap2/rapha/fawkes-robotino-labhlap2019/src/gologpp/rcll_production/rcll_production.gpp...
Syntax error at line 44:

	test(game_time().sec > estimated_earliest_starting_time(id));
	                       ^ Expected: <typed_expression>
15:18:00.785268 FawkesMainThread: Failed to load plugins ros,navgraph,flite,skiller,gologpp, exception follows
15:18:00.785283 FawkesMainThread: [EXCEPTION] Caught std::exception: boost::spirit::qi::expectation_failure
15:18:00.785283 FawkesMainThread: [EXCEPTION] Could not initialize thread 'gologpp_agent' (ThreadList gologpp)
15:18:00.785283 FawkesMainThread: [EXCEPTION] Plugin >>> gologpp <<< could not be initialized, unloading
@vmatare vmatare added enhancement New feature or request parser labels Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request parser
Projects
None yet
Development

No branches or pull requests

2 participants