You can find the source of the compilation error in the
code, and troubleshoot it.
About this task
IBM® Rational® Rhapsody® displays
compilation errors that occur. To find the source of the compilation
error in the code, double-click the relevant error message.Rational Rhapsody tries
to get you as close as possible to the source of the compilation error:
- If the source of the problem is in the implementation
of an operation, the Features window for the operation is opened with
the Implementation tab displayed and the problematic
line of code highlighted.
- If the source of the problem is in the initialization
for a configuration, the Features window for the configuration is
opened with the Initialization tab displayed
and the problematic line in the initialization code highlighted.
- If the source of the problem is in the actions
defined for a state, the Features window for the state is opened with
the General tab displayed and the problematic
line of code highlighted.
- If the source of the problem is in a reaction defined
for a state, the Features window for the relevant reaction is opened
and the problematic line of code is highlighted.
- If the source of the problem is in the action code
defined for a transition, the Features window for the transition is
opened with the General tab displayed and the
problematic line of code is highlighted.
- For other compilation errors, the product opens
up the relevant file in the code editor and highlights the problematic
line of code. If you know where to correct this code within the model,
correct it. If not, you can correct the code manually and roundtrip
the corrected code back into the model.
Note: If there is no apparent problem in the model
and you have been generating code on selected classes, clean the whole
configuration using the Code/Clean menu command.
Compilation errors can occur if files were generated with different
versions of the model.