6.04 compiler freezes, Len(Str(Bin(20)))

Linux specific forum
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

6.04 compiler freezes, Len(Str(Bin(20)))

Post by AZJIO »

This is incorrect code, but instead of displaying an error, the compiler freezes.

Code: Select all

length = Len(Str(Bin(20)))
Arch x64
PB x64
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: 6.04 compiler freezes, Len(Str(Bin(20)))

Post by mk-soft »

Not on Mint Linux LMDE 6
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: 6.04 compiler freezes, Len(Str(Bin(20)))

Post by juergenkulow »

Code: Select all

/media/ramdisk/pb610B1/purebasic/compilers/pbcompiler /media/kulow/BCE4-8C0F/PB/LenStrBin.pb --commented 
PureBasic 6.10 beta 1 (Linux - x64)
Loading external modules...
Starting compilation...
Error: Line 1 - Bad parameter type, number expected instead of string.
@AZJIO Do other programs also freeze when errors occur on your machine? What language have you set in Preferences General Language?
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: 6.04 compiler freezes, Len(Str(Bin(20)))

Post by AZJIO »

juergenkulow wrote: Mon Jan 08, 2024 10:26 am Do other programs also freeze when errors occur on your machine?
No, this is the first time. I tried it several times, it freezes all the time. If I separate each function into a separate line with the return of the result to a variable, then it normally gives an error that the type is incorrect.
The language doesn't matter, the compiler doesn't do anything, it shows a window that compilation is in progress and so on for a long time. Switched to "C Backend", the same thing.

https://youtu.be/nvhe7ib1-Y0
juergenkulow wrote: Mon Jan 08, 2024 10:26 am PureBasic 6.10 beta
6.04
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: 6.04 compiler freezes, Len(Str(Bin(20)))

Post by AZJIO »

juergenkulow wrote: Mon Jan 08, 2024 10:26 am What language have you set in Preferences General Language?
Switched to English, the problem disappeared.

Sorry for distracting you with small things. It wasn't critical, as I came across it once and it wasn't worth someone else's time.
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: 6.04 compiler freezes, Len(Str(Bin(20)))

Post by mk-soft »

With language switching to German, there is not the problem.
But it shouldn't happen either. Not that it is a problem with the language files
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply