Log (10) function fails in latest release

I just installed the latest release 2024r4.2 and now the function
Log (10)
fails :thinking:.

Looks like a bug to me, as it used to work in previous releases.
The debugger states:
“There is more than one method with this name but this does not match any of the available signatures.
Return Floor(log(dValue) / log(10))”

Anyone a clue?

I can’t reproduce this.

Are you sure it isn’t flagging log(dvalue)? What is dvalue?

What OS and what’s dValue? Double?

The function shouldn’t run when I try to start the app. Never had this before. yes dValue is a double.
In the debugger the part “Log(1” is highlighted in yellow, so I assumed there was the error:
debugger note

This highlight is weird. Close Xojo, open again, reload the project. Does it continue like that?

Also after closing Xojo, restarting and restarting the project it gives the same error. Although the highlight now also holds the 0, hmmpf:

I also tried restarting the (Win10) pc. And reinstalling Xojo… No success. Weird for such a basic function

Do you have a Log function defined in some module?

Should end as:

I’m not sure, but we had once a weird bug affecting only people using some plugins. Like we could not write our function “Log”, but one existed somewhere in a plugin cache causing an unknown compilation error… something like that. Probably it wasn’t “Log”, but maybe we are seeing something similar?

This works here, does it work in your system @J_Vink ?

log_fail.zip (3.7 KB)

No, I try to prevent redefining existing functions :grinning:.
I tried your ‘log_fail’ project and yes, it fails too.

The problem can circumvented by using:

Var dTen As Double
dTen = 10

Return Floor(Log(dValue) / Log(dTen))

But I don’t know why.

We isolated the problem. It’s in your system.

And I suspect it has something related to plugins.

We could start cleaning the caches and restarting Xojo:

Later, removing some plugins (assuming you have some) looking for a culprit.

1 Like

Ah, yes! Some time ago I installed Bob Delaney’s “Decimal Plugin”, in order to experiment with it and maybe use it. Never gave me problems, but now it does.

Removing the plugin solves the issue. Thanks for the great help!

1 Like

:+1:t2: