Type coercion bug in FB Server 6.0.0.296

Not sure if this has been addressed already, but I just came across what seems to be a variable typing problem in FinalBuilder Server 6.0.0.296. (running against FinalBuilder 6.0.0.574)

To reproduce:

  1. Create a FB project with a variable "my_var"
  2. Add the "Log Variable Values" action to record the value of my_var
  3. Save project
  4. Add that project to FB Server
  5. Set the my_var project variable in FB Server to be "1.0"
  6. Run the project in FB Server.


Expected:
Log will output a value of "1.0" for my_var.

Actual result:
Log outputs a value of "1" for my_var.

Other notes:

  • Setting the my_var value in FB Server to be "1_0" or "1.5" behaves as one would expect; you get the correct value in the log. 
  • If you bypass FB Server completely by creating a brand new project, then include the original project with an "Include Project" action, and set my_var to "1.0" in that action, then my_var is logged as "1.0" as expected.  Therefore, the problem seems to exists in FB Server only.



So... in the mean time, how can i coerce the value of a variable to remain a string? :-)

Thanks,
-John

FWIW, I’ve gotten around this for now by making my variable in FB Server = “1.0_”, then I use the “String Replace” task to remove all occurrences of “_”. This seems to work fine, but I’d rather not have to do it.

-John

Hi John

This is not an FBServer problem, it’s actually an FBCmd problem. So far I haven’t found a workable solution to this other than the workaround you currently use. We will look into making it possible to specify the type from FBServer.