Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Chun Jiu on May 27, 2020, 05:19:14 am

Title: Bugs about script settings in compiler search path
Post by: Chun Jiu on May 27, 2020, 05:19:14 am
Hi, guys.

I found a bug about script settings, it is in the compiler settings, please see the picture below.

My intention is to need a hook to start the compiler to temporarily set the options that need to be changed in the project.

Then I thought of adding a script function to the compiler search path to start my hook.

But after each exit of C :: B, the next time C :: B is opened, the script becomes two incomplete lines, so it becomes an error.



Title: Re: Bugs about script settings in compiler search path
Post by: Chun Jiu on May 27, 2020, 06:05:47 am
Okay !

I found the cause of the problem. You cannot add ";" after a single function in square brackets, it will truncate this script string.

Wrong writing: [[ print("."); ]]
-----------------------------^

Correct wording: [[ print(".") ]]