Sanny Builder Bug Tracker - Sanny Builder
View Issue Details
0000030Sanny Builder[All Projects] compilerpublic2014-08-10 17:362017-04-22 15:53
Emissary 
Seemann 
immediatemajoralways
closedno change required 
Windows 7 SP1 ultimate x646.1.7601.22616
3.2.2 
 
0000030: Does not compile file "main.scm"
When I try to compile, it displays an error "Неверное число условий." on line 232224. Happens on version 3.2.1. Version 3.1.4 compiles without problems.
No tags attached.
has duplicate 0000029closed Seemann Does not compile file "main.scm" 
png Сохраненное изображение 2014-8-10_16-28-41.204.png (16,517) 2014-08-10 17:36
http://bugs.sannybuilder.com/file_download.php?file_id=13&type=bug
png
Issue History
2014-08-10 17:36EmissaryNew Issue
2014-08-10 17:36EmissaryStatusnew => assigned
2014-08-10 17:36EmissaryAssigned To => Seemann
2014-08-10 17:36EmissaryFile Added: Сохраненное изображение 2014-8-10_16-28-41.204.png
2014-08-11 11:42SeemannNote Added: 0000029
2014-08-11 11:43SeemannStatusassigned => closed
2014-08-11 11:43SeemannResolutionopen => no change required
2014-08-11 11:45SeemannRelationship addedhas duplicate 0000029
2014-08-14 22:30EmissaryNote Added: 0000030
2014-08-14 22:30EmissaryStatusclosed => feedback
2014-08-14 22:30EmissaryResolutionno change required => reopened
2014-08-14 23:06SeemannNote Added: 0000031
2015-09-28 14:44SeemannNote Edited: 0000031bug_revision_view_page.php?bugnote_id=31#r17
2017-04-22 15:53SeemannNote Added: 0000042
2017-04-22 15:53SeemannStatusfeedback => closed
2017-04-22 15:53SeemannResolutionreopened => no change required

Notes
(0000029)
Seemann   
2014-08-11 11:42   
Look, it's not a bug. Your IF statement have no any conditions to check, thus the compiler consider this as a possible mistake on your side. To avoid this message, either:
1) turn off the "Check conditions" check in the Sanny options (F10).
2) remove the 'if' and 'else_jump' opcodes from that piece of the code (they actually do nothing).
3) add some dummy conditional opcode in between the 'if' and 'else_jump' opcodes, so there is at least one condition to check.
(0000030)
Emissary   
2014-08-14 22:30   
Nothing helped.

http://www.screencapture.ru/uploaded/91/b2/23/91b22362.jpg [^]
(0000031)
Seemann   
2014-08-14 23:06   
(edited on: 2015-09-28 14:44)
Current solution is to remove this code

if
else_jump @SYND4_3672
wait 0
jump @SYND4_3650

it won't cause any problems

(0000042)
Seemann   
2017-04-22 15:53   
Current implementation of the compiler is strict to empty conditions block.