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

Some objective expressions lead to a frozen IDE #163

Open
maxkratz opened this issue Sep 30, 2024 · 1 comment
Open

Some objective expressions lead to a frozen IDE #163

maxkratz opened this issue Sep 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@maxkratz
Copy link
Member

Problem specification:

package "gipsl.all.build.objbug"
import "platform:/resource/gipsl.all.build.model/model/Model.ecore"

config {  
	solver := GLPK [home:="fu", license:="bar"];
	launchConfig := true [main := "TODO"];
	timeLimit := true [value := 42.0];
	randomSeed := true [value := 0];
	presolve := true;
	debugOutput := true;
}

pattern p {
	host: SubstrateResourceNode
	vnode: VirtualResourceNode {
		-host -> host
	}
}

mapping m with p;

objective o -> mapping::m {
	1 / (1 + 1)
}

global objective : max {
	1
}

The objective o leads to a frozen Eclipse that never finished the state Building $project: Compile Model.gipsl.

Here is a call trace taken from the profiler:
Screenshot from 2024-09-30 15-20-00

@maxkratz maxkratz added the bug Something isn't working label Sep 30, 2024
@maxkratz
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant