PureBasic Forum
https://www.purebasic.fr/english/

[Done] PB5.71b1 syntax check ignores compiler options
https://www.purebasic.fr/english/viewtopic.php?f=4&t=73055
Page 1 of 1

Author:  Regenduft [ Thu Jun 20, 2019 5:37 pm ]
Post subject:  [Done] PB5.71b1 syntax check ignores compiler options

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

Author:  RSBasic [ Thu Jun 20, 2019 6:32 pm ]
Post subject:  Re: [PB5.71b1] syntax check ignores compiler options

+1
I noticed that, too.

Author:  Sicro [ Thu Jun 20, 2019 6:50 pm ]
Post subject:  Re: [PB5.71b1] syntax check ignores compiler options

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.

Author:  #NULL [ Thu Jun 20, 2019 8:08 pm ]
Post subject:  Re: [PB5.71b1] syntax check ignores compiler options

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)

Author:  Josh [ Thu Jun 20, 2019 9:19 pm ]
Post subject:  Re: [PB5.71b1] syntax check ignores compiler options

I can't reproduce this. With 'Syntax-Check' I get, or get no error as expected.

Tested with Pb546x32 + Pb570x64 on Win7

Author:  Fred [ Fri Jun 21, 2019 1:37 pm ]
Post subject:  Re: [PB5.71b1] syntax check ignores compiler options

Fixed.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/