MantisBT - mSLDev
View Issue Details
0000140mSLDevSyntax Checkingpublic2013-04-15 18:242013-11-01 12:13
Wims 
administrator 
normalminoralways
closedno change required 
 
 
0000140: error message on empty menu item body
Load this code:

alias test {

sclick:

}

msldev reports an error (warning) :
C:/Users/Wims/Desktop/CaveDwellers/CaveDesigner.mrc 21:9 Menu The menu item specified will never be displayed without any code.

I think that for reserved keyword event here (sclick, dclick etc), it shouldn't say that, rather "the <event> definition is empty" or similar where <event> is for example sclick, because it would never show anyway.

menu @win {
sclick:
test:echo -a
test1:
}
does work for the 'test' item

I also think it should say "empty definition" for custom empty definition like 'test1' here.
No tags attached.
Issue History
2013-04-15 18:24WimsNew Issue
2013-05-16 19:36administratorNote Added: 0000101
2013-05-17 07:53WimsNote Added: 0000104
2013-11-01 12:13administratorStatusnew => closed
2013-11-01 12:13administratorAssigned To => administrator
2013-11-01 12:13administratorResolutionopen => no change required

Notes
(0000101)
administrator   
2013-05-16 19:36   
They are not always keywords, consider the following:

menu * {
  aaa:echo -a foo
  sclick:echo -a @@@
  bbb:echo -a bar
}

Which works as a normal button named 'sclick' when right clicking in the status window, for example.
(0000104)
Wims   
2013-05-17 07:53   
Right, you can set this as resolved!
Btw, the shitty codes you can see are made on purpose to broke your program :), i don't actually use them as it is, stop complaining!