It is currently Sat Dec 14, 2019 7:15 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [Done] PB5.71b1 syntax check ignores compiler options
PostPosted: Thu Jun 20, 2019 5:37 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Mar 02, 2009 9:20 pm
Posts: 110
Location: Germany
The following code never triggers a syntax error when doing a syntax check ("Compiler > Syntax check" in the IDE). It doesn't matter if the debugger is enabled or disabled in the compiler options . So it seems like the syntax check ignores the compiler options. If this is the intended behaviour (...which I hope is not the case...), then a comment in the documentation would be nice.

Code:
CompilerIf #PB_Compiler_Debugger
  try to trigger a syntax error right here ;)
CompilerEndIf


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.71b1] syntax check ignores compiler options
PostPosted: Thu Jun 20, 2019 6:32 pm 
Offline
Moderator
Moderator
User avatar

Joined: Thu Dec 31, 2009 11:05 pm
Posts: 1108
Location: Berlin (Germany)
+1
I noticed that, too.

_________________
ImageImageImageImage Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.71b1] syntax check ignores compiler options
PostPosted: Thu Jun 20, 2019 6:50 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 376
Location: Germany
I've already reported it: Syntax check should use the debugger when enabled
It's not a bug for me, so I reported it as a feature request.

_________________
Image
Why OpenSource should have a license
PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!
Manjaro Xfce x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.71b1] syntax check ignores compiler options
PostPosted: Thu Jun 20, 2019 8:08 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1160
Location: right here
I tried with
Code:
pbcompiler --debugger --check --constant PB_Compiler_Debugger=1 file.pb
and get a segfault?
Code:
Loading external modules...
Starting syntax check...
Starting compilation...
Segmentation fault (core dumped)


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.71b1] syntax check ignores compiler options
PostPosted: Thu Jun 20, 2019 9:19 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 941
I can't reproduce this. With 'Syntax-Check' I get, or get no error as expected.

Tested with Pb546x32 + Pb570x64 on Win7

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.71b1] syntax check ignores compiler options
PostPosted: Fri Jun 21, 2019 1:37 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13662
Location: France
Fixed.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye