Commit 3a4a1346 authored by LIGNEUL CLEMENT's avatar LIGNEUL CLEMENT
Browse files

remove print in console + executable ok

parent 5926d3aa
......@@ -7,7 +7,7 @@
"private": false,
"scripts": {
"build": "webpack --mode production",
"start": "set NODE_ENV=env && webpack && qode ./dist/index.js",
"start": "webpack && qode ./dist/index.js",
"debug": "webpack && qode --inspect ./dist/index.js",
"update-modules": "ncu -u && npm install"
},
......
......@@ -122,18 +122,23 @@ export class Compile {
option_layout.addWidget(label_mode, 0,0);
option_layout.addWidget(check_gp, 1,0);
option_layout.addWidget(check_cuda, 1,1);
option_layout.addWidget(check_cuda_gp, 1,2);
option_layout.addWidget(check_nsgaii, 1,3);
option_layout.addWidget(check_nsgaiii, 1,4);
option_layout.addWidget(check_asrea, 2,0);
option_layout.addWidget(check_ibea, 2,1);
option_layout.addWidget(check_cdas, 2,2);
option_layout.addWidget(check_memetic, 2,3);
option_layout.addWidget(check_cmaes, 2,4);
option_layout.addWidget(check_nsgaii, 1,1);
option_layout.addWidget(check_nsgaiii, 1,2);
option_layout.addWidget(check_asrea, 1,3);
option_layout.addWidget(check_ibea, 1,4);
option_layout.addWidget(check_cdas, 2,0);
option_layout.addWidget(check_memetic, 2,1);
option_layout.addWidget(check_cmaes, 2,2);
option_layout.addWidget(misc_label, 3,0);
option_layout.addWidget(check_v, 4,0);
option_layout.addWidget(check_tl, 4,1);
// cuda options if nvcc is installed
const cuda_test = new Pseudo_term('Cuda test');
if(cuda_test.run_command('nvcc',['--version']) !== -1){
option_layout.addWidget(check_cuda, 2,3);
option_layout.addWidget(check_cuda_gp, 2,4);
}
option_layout.setSpacing(15);
......@@ -203,7 +208,7 @@ export class Compile {
});
run.on('exit', (code)=>{
console.log("exit " + code);
// console.log("exit " + code);
if(code === 0){
output_compile.text.insertPlainText('\n');
var make = output_compile.compile('make', ['-f', ez_makefile], dir_path);
......
......@@ -4,21 +4,11 @@ import { Compile } from './compile_tab';
import { general_css } from './style';
import { Run_tab } from './run_tab';
import * as util from './utilities';
import { Pseudo_term } from './pseudo_term';
import { Win_alert } from './win_alert';
import { exit } from 'process';
const { QMenuBar, QAction, QGridLayout } = require("@nodegui/nodegui");
import { QMenuBar, QAction, QGridLayout } from "@nodegui/nodegui";
// list of running child processes
export let running_proc: ChildProcess[] = [];
// verify if easea is installed
const easea_test = new Pseudo_term('Easea test');
if(easea_test.run_command('easena',['--version']) === -1){
new Win_alert('Please install EASEA before using this application.\nConsult the documentation for more information', 'EASEA not found');
exit(0);
}
// main window
const global_win = new QMainWindow();
global_win.setWindowTitle("EASEA Compiler");
......@@ -58,7 +48,7 @@ global_win.setStyleSheet(general_css);
// global_win.setFixedSize(1300, 800);
global_win.addEventListener(WidgetEventTypes.Close, () => {
console.log("On kill tout ici");
// console.log("On kill tout ici");
util.kill_all(running_proc);
});
......
......@@ -99,7 +99,7 @@ export class Pseudo_term{
// run shell command and print stdin & stdout in text
// return child process pid or -1 if an error occur
// return child process pid or -1 if an error occurs
run_command(command: string, params?: string[], dir?: string) {
var array_params = [];
......@@ -120,8 +120,7 @@ export class Pseudo_term{
}
}
process.env.EZ_PATH = "/usr/local/easena/"
process.env.EZ_PATH = "/usr/local/easena/";
var child = spawnSync(command, array_params,{
cwd: dir,
env: process.env
......@@ -185,7 +184,6 @@ export class Pseudo_term{
this.text.insertPlainText('\n$ ' + cmd + ' ' + params + '\n');
console.log('$ ' + cmd + ' ' + params + '\n');
}
console.log('$ ' + cmd + '\n');
process.env.EZ_PATH = "/usr/local/easena/"
var child = spawn(cmd, array_params, {
......
......@@ -5,7 +5,6 @@ import { Processus } from './processus';
import { Advanced_option_widget } from './advanced_option_widget';
import * as util from './utilities';
import { general_css } from './style';
import { start } from 'repl';
export class Run_options {
window: QDialog;
......@@ -575,6 +574,8 @@ export class Run_options {
for(var i = 0; i < this.proc_tab.length; i++){
this.proc_tab[i].seed_value = NaN;
}
check_plot.setChecked(false);
compression_arg.text_edit.setText('');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment