Could not create command completion class

2011-02-21 Thread Sun, Yongqi (E F ES EN 1 2)
Hi all,

When I run OMShell of version 7970-1(nightly-ubuntu), there is an error saying

Could not open file:

OPENMODELICAHOME/share/omshell/commands.xml

Could not create command completion class!.

My environment variable is set to:

OPENMODELICAHOME=/home/share/OpenModelicaSource/build

The /home/share/OpenModelicaSource contains source from repository of version 
7973, and there is no share/omshell/commands.xml file or share/omshell 
folder in it. It seems that OMShell would like to read the content of this XML 
file, so creating an empty file with the same name does not help.

Any idea what may go wrong? Thanks to your support in advance.



With best regards,
Yongqi Sun

Siemens AG
Energy Sector
Fossil Power Generation Division
Energy Solutions
E F ES EN 1 2
Freyeslebenstr. 1
91058 Erlangen, Germany
Tel.: +49 (9131) 18-6118
mailto:yongqi@siemens.com



Re: Could not create command completion class

2011-02-21 Thread Per Östlund

Hi Yongqi,

If I understand you correctly, you have both the nightly build and a 
copy of the sourcecode from SVN that you have compiled yourself, and 
your OPENMODELICAHOME points to the version you have compiled yourself. 
What will happen in that case is that even if you run the OMShell from 
the nightly build it will still look for commands.xml in the SVN-version 
of OM that you have.


So, have you also compiled OMShell from source? commands.xml should be 
put in build/share/omshell when OMShell is built (the same for 
OMNotebook). So I see three solutions:


1) Build OMShell (make qtclients in src dir, or make in the OMShell 
dir), which should put all files where they belong.


2) Set OPENMODELICAHOME to the nightly build instead (but I guess you 
want to use the omc you've built yourself).


3) Copy commands.xml from src/OMNotebook/OMNotebookQT4 to 
build/share/omshell and hope that it works.


Best regards,
Per Östlund

2011-02-21 16:18, Sun, Yongqi (E F ES EN 1 2) skrev:


Hi all,

When I run OMShell of version 7970-1(nightly-ubuntu), there is an 
error saying


Could not open file:

OPENMODELICAHOME/share/omshell/commands.xml

Could not create command completion class!.

My environment variable is set to:

OPENMODELICAHOME=/home/share/OpenModelicaSource/build

The /home/share/OpenModelicaSource contains source from repository 
of version 7973, and there is no share/omshell/commands.xml file or 
share/omshell folder in it. It seems that OMShell would like to read 
the content of this XML file, so creating an empty file with the same 
name does not help.


Any idea what may go wrong? Thanks to your support in advance.

With best regards,
Yongqi Sun

Siemens AG
Energy Sector
Fossil Power Generation Division
Energy Solutions
E F ES EN 1 2
Freyeslebenstr. 1
91058 Erlangen, Germany
Tel.: +49 (9131) 18-6118
mailto:yongqi@siemens.com