﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5804	Profiling blocks+html is broken again in OMEdit	Francesco Casella	Adrian Pop	"It seems that we really cannot keep profiling to work for more than half a year (see #4708, #5030).

Steps to reproduce:
- open OMEdit 1.16.0-dev
- open Modelica.Blocks.Examples.PID_Controller
- enable blocks+html profiling in the Simulation Setup | Simulation window
- run the simulation

The following error messages are reported
{{{
Plot command failed: C:/Program Files/OpenModelica1.16.0-dev-64bit//lib/omc/libexec/gnuplot/binary/gnuplot.exe d:/temp/OMEdit/Modelica.Blocks.Examples.PID_Controller/Modelica.Blocks.Examples.PID_Controller_prof.plt

Failed to generate html version of profiling results: C:/Program Files/OpenModelica1.16.0-dev-64bit//lib/omc/libexec/xsltproc/xsltproc.exe -o d:/temp/OMEdit/Modelica.Blocks.Examples.PID_Controller/Modelica.Blocks.Examples.PID_Controller_prof.html C:/Program Files/OpenModelica1.16.0-dev-64bit//share/omc/scripts/default_profiling.xsl d:/temp/OMEdit/Modelica.Blocks.Examples.PID_Controller/Modelica.Blocks.Examples.PID_Controller_prof.xml

Time measurements are stored in d:/temp/OMEdit/Modelica.Blocks.Examples.PID_Controller/Modelica.Blocks.Examples.PID_Controller_prof.html (human-readable) and d:/temp/OMEdit/Modelica.Blocks.Examples.PID_Controller/Modelica.Blocks.Examples.PID_Controller_prof.xml (for XSL transforms or more details)
""C:/Program"" non è riconosciuto come comando interno o esterno, 
 un programma eseguibile o un file batch. 

""C:/Program"" non è riconosciuto come comando interno o esterno, 
 un programma eseguibile o un file batch. 
}}}
and of course the HTML file is not produced, nor any data is visualized in the declarative debugger.

I guess this is yet another case of space in an executable path (the damn {{{Program Files}}} breaking a Windows script. May them be damned.

The other options that do not produce an html file work fine, and the profiling results are eventualy loaded in the debugger.

Can you please fix this ASAP?"	defect	closed	blocker	1.16.0	OMEdit		fixed		
