question

Chris Ligetti avatar image
0 Likes"
Chris Ligetti asked Ben Wilson commented

Why am I getting so many compiler errors?

I keep getting a large amount of compiler errors when opening my model. None of these seem to have anything to do with my model objects or logic. Any idea what these could be related to? Unfortunately, due to the proprietary nature of it, I cannot share my model.

Flexscript Error	VIEW:/standardviews/documentwindows/GlobalTableView/TableView>eventfunctions/shiftBundleCellsDown Line 7		syntax error, unexpected integer, expecting ';'
Flexscript Error	VIEW:/standardviews/documentwindows/GlobalTableView/TableView>eventfunctions/shiftBundleCellsDown Line 7		syntax error, unexpected ++ assignment operator, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/standardviews/documentwindows/GlobalTableView/TableView>eventfunctions/shiftBundleCellsUp Line 7		syntax error, unexpected integer, expecting ';'
Flexscript Error	VIEW:/standardviews/documentwindows/GlobalTableView/TableView>eventfunctions/shiftBundleCellsUp Line 7		syntax error, unexpected ++ assignment operator, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	MAIN:/project/events/OnUpdateModel/Update to 7.0/updateTimeTables Line 60		syntax error, unexpected integer, expecting ';'
Flexscript Error	MAIN:/project/events/OnUpdateModel/Update to 7.0/updateTimeTables Line 98		syntax error, unexpected ++ assignment operator, expecting ';'
Flexscript Error	MAIN:/project/events/OnUpdateModel/Update to 7.0/updateTimeTables Line 100		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	MAIN:/project/events/OnUpdateModel/Update to 7.0/updateTimeTables Line 103		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	MAIN:/project/events/OnUpdateModel/Update to 7.0/updateTimeTables Line 106		syntax error, unexpected ++ assignment operator, expecting ';'
Flexscript Error	MAIN:/project/events/OnUpdateModel/Update to 7.0/updateTimeTables Line 108		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	MAIN:/project/events/OnUpdateModel/Update to 7.0/updateTimeTables Line 111		syntax error, unexpected assignment operator, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/standardviews/modelingutilities/QuickProperties>variables/propertiesPanels/Search/Search>eventfunctions/findInTextAndCode Line 56		syntax error, unexpected integer, expecting ';'
Flexscript Error	VIEW:/standardviews/modelingutilities/QuickProperties>variables/propertiesPanels/Search/Search>eventfunctions/findInTextAndCode Line 133		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/standardviews/modelingutilities/QuickProperties>variables/propertiesPanels/TokenRelationships/Relationships/ChildrenTable>eventfunctions/hotlinkx Line 8		syntax error, unexpected integer, expecting ';'
Flexscript Error	VIEW:/standardviews/modelingutilities/QuickProperties>variables/propertiesPanels/TokenRelationships/Relationships/ChildrenTable>eventfunctions/hotlinkx Line 16		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/standardviews/statistics/Experimenter/tabcontrol/Optimizer Design/Variables/TheTable>variables/StringSetPopup/Add>OnPress Line 2		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/standardviews/statistics/Experimenter/tabcontrol/Optimizer Design/Variables/TheTable>variables/StringSetPopup/Remove>OnPress Line 11		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/standardviews/statistics/Experimenter/tabcontrol/Optimizer Design/Variables/TheTable>eventfunctions/showStringSetPopup Line 13		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/standardviews/statistics/PerformanceMeasures>eventfunctions/generatedashboarddata Line 38		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 18		syntax error, unexpected integer, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 20		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 22		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 43		syntax error, unexpected ++ assignment operator, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 45		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 48		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 74		syntax error, unexpected integer, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 76		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 78		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 99		syntax error, unexpected ++ assignment operator, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 101		syntax error, unexpected assignment operator, expecting ';'
Flexscript Error	VIEW:/standardviews/tools/GraphicalTimeTable>OnApply Line 104		syntax error, unexpected assignment operator, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/modules/ProcessFlow/guiclasses/EventTriggers/EventsPanel/SingleEventPanel/RequirementsPanel>eventfunctions/refresh Line 8		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/modules/ProcessFlow/guiclasses/EventTriggers/EventsPanel/SingleEventPanel/StandardEventPanel>eventfunctions/refresh Line 14		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/modules/ProcessFlow/guiclasses/EventTriggers/EventsPanel/SingleEventPanel/LevelListenerPanel>eventfunctions/refresh Line 8		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/viewslibrary/DashboardWidgets/DashboardTable>eventfunctions/changeValue Line 5		syntax error, unexpected integer, expecting ';'
Flexscript Error	VIEW:/viewslibrary/DashboardWidgets/DashboardTable>eventfunctions/changeValue Line 27		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/popups/experimenter/ExperimentVariables/GlobalTable/chooseGT>eventfunctions/apply Line 8		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/pages/unique/Robot/MotionPanels/PathPlanner/PathTable>eventfunctions/updateRow Line 10		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


Flexscript Error	VIEW:/pages/LineControllerParameters/tabcontrol/Product Data/thetable/Browse>OnApply Line 14		syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.


FlexSim 17.0.0
compiler
· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Chris Ligetti avatar image Chris Ligetti commented ·

Now flexsim is crashing on open (not even opening a model). Seeing an ntdll.dll exception in Visual Studio.

Exception thrown at 0x00000000773B81ED (ntdll.dll) in flexsim.exe: 0xC0000005: Access violation writing location 0x00000000000E0C18.

0 Likes 0 ·
Sam Stubbs avatar image Sam Stubbs ♦ Chris Ligetti commented ·
0 Likes 0 ·
Chris Ligetti avatar image Chris Ligetti commented ·

After a restart, flexsim no longer crashing on open.

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Chris Ligetti commented ·

Are you still having issues with those syntax errors?

It looks like something in your model is messing up the FlexScript compiler.

If you are still having issues, please build a non-confidential sample model that demonstrates the problem or post your model in a private question with steps on how to duplicate the issue.

1 Like 1 ·
Chris Ligetti avatar image Chris Ligetti Chris Ligetti commented ·

I stripped out all the sensitive information in this attached test model and am still getting the compiler errors.compilererrors.fsm

0 Likes 0 ·
compilererrors.fsm (16.3 KiB)

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Ben Wilson commented

The problem is in your Global Macros. You are defining row and column, which breaks a lot of the code within FlexSim's UI that uses row and column as local variables.

Also, you are trying to define floating point numbers and identifiers with period characters and parenthesis. Neither of those are valid identifiers for a #define macro definitions. Macro definitions should follow the same rules as local variable identifiers: alphanumeric characters and underscores that don't start with a numeric character.

To avoid collisions and improve readability of macros, most programmers follow the pattern in the user manual examples of using all caps and underscores, such as:

#define MAX_WAIT_TIME 30
#define PROCESS_TIME_TABLE reftable("ProcessingTimesGT")
#define PAINTER_COLUMN 1

bad-macros.png (47.4 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Chris Ligetti avatar image Chris Ligetti commented ·

These were some rogue definitions that I had neglected to delete from my model. After deleting them, i am good to go. Thanks!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.