Skip to content

Commit

Permalink
Merge pull request #22 from ogavb/dynamicOptionsAlignment
Browse files Browse the repository at this point in the history
Dynamic options alignment
  • Loading branch information
stefanogermano committed Nov 17, 2019
2 parents 67a87ff + 1b6fa17 commit f96a79e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ io.sockets.on('connection', function (socket) { // Wait for the incoming connect
socket.on('run', function (data) { // Wait for the incoming data with the 'run' event and send data
print_log('Executed "run"')

// FIXME: This replace is needed because the client use 'solver' but the executor use 'engine'
data = data.replace('engine', 'solver');

// The function return the host path of one of the executors for a particular language and solver, if know
var host = getExcecutorURL( data );

Expand Down Expand Up @@ -126,7 +123,8 @@ function getExcecutorURL(data) {
if(servicesConfig.languages[i].value === data.language) {
var solvers = servicesConfig.languages[i].solvers;
for(var j in solvers) {
if(solvers[j].value === data.solver) {
// FIXME: The client should pass 'solver' parameter and not 'engine'
if(solvers[j].value === data.engine) {
// TODO let the user choose the executor. atm this is a missing data
// by default the first executor will be chosen
var executor = solvers[j].executors[0];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LoIDE",
"version": "2.0.0",
"version": "2.0.1",
"description": "Web-based IDE for Logic Programming",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit f96a79e

Please sign in to comment.