Liberty BASIC Community Forum
General >> Announcements, Software and Websites >> Liberty BASIC v4.5.1 beta 2
http://libertybasic.conforums.com/index.cgi?board=software&action=display&num=1493210268

Liberty BASIC v4.5.1 beta 2
Post by CarlGundel on Apr 26th, 2017, 07:37am

Okay, v4.5.1 beta 2 is posted. smiley

http://www.libertybasic.com/lb451b2setup.exe

-Carl

Liberty BASIC v4.5.1 beta 2 release notes
----------------------------------------------------------------------

-The toolbar icons for changing the editor font size were missing.
Fixed.

-Added source code coloring to the debugger code pane.

-Fixed a crash in the popup menu item for the debugger. Run to next
local line.

-Added display of global variables when debugging a sub or function.
A checkbox in the debugger turns this on/off.

-Fixed some inconsistencies in the installer setup which were still
referring to v4.5.0.
Re: Liberty BASIC v4.5.1 beta 2
Post by Rod on Apr 26th, 2017, 09:27am

Cool, I get the font change icons now and a new ide icon on the desktop called Liberty BASIC v4.5.1 beta 1, I expected beta 2? and I don't know if the removal of the torch icon is deliberate. The runtime is run451.exe

Good so far. However since we are tinkering smiley

For a while now cutting and pasting code from my browser has been problematic. Conforums code cuts and pastes fine but Wiki code does not.

What is happening is that some servers are introducing asc character 160, a non breaking space character, instead of the more usual character 32 space character. So it can be found anywhere in a line.

This confuses the ide which will not compile code and stops on any line with character 160 in it. It means a lot of manual editing before any copied code will run.

Could the bad character set be amended or could the 160 be filtered out to 32? It is a Unicode character. My gut instinct is that eliminating it or indeed swapping it for character 32 would both be working solutions.
Re: Liberty BASIC v4.5.1 beta 2
Post by cundo on Apr 26th, 2017, 11:56am

@Rod, what icon. Is that correct English, or should I ask which icon is missing...
@Carl, the colored syntax at the debugger is great. Didn't know that was possible. Displaying Global, great also, someone was asking for that recently.
I didn't made any test yet. But so far it looks good.
What about a Lite-Debug toolbar button, a ladybug but different color perhaps? I don't want to ask for things. So if it is a problem to add this don't worry.

Re: Liberty BASIC v4.5.1 beta 2
Post by Rod on Apr 27th, 2017, 09:32am

After a restart on my pc the normal torch icon shortcut is now on my desktop. When I first installed 4.5.1 b2 it showed a default Windows icon but that has now changed without intervention by myself.

Although it points to beta2 it is labelled Liberty BASIC v4.5.1 beta1.
Re: Liberty BASIC v4.5.1 beta 2
Post by thejoecole on Apr 27th, 2017, 12:11pm

Over lunch today I installed 4.5.1 beta 2 and have the same initial observations Rod had.

1. The first thing I observed was the generic icon (not the torch) added to my desktop. Also, the program title says "Liberty BASIC v4.5.1 beta 1" (not beta 2)

2. I right-clicked on the icon to check out the properties. Under the "General" tab, I see the name in the text box does reference "beta 1". Also, the icon shown here is the correct "torch" icon.

3. Under the "Shortcut" tab, the program name references beta 1, but the Target location does reference beta 2 and the Target shows the correct install directory with beta 2 (C:\Program Files (x86)\Liberty Basic v4.5.1 beta 2\liberty.exe)

4. I clicked on the "Change Icon" button and it shows the correct torch icon is selected.

After a reboot of my system, the icon issue resolved itself and the correct "torch" icon is displayed on my desktop.

Have to go back to work and will run the program and see if there are more issues later.

Regards,
Joe
Re: Liberty BASIC v4.5.1 beta 2
Post by Rod on Apr 27th, 2017, 1:59pm

The checkbox to show or hide global variables works really well. Quick click and scroll gets the info on the global. Syntax color is cool as well.

Character 160 is still a pain, I have filter bad characters clicked but it gets pasted and stalls the compile for even the simplest of code copied from the wiki.
Re: Liberty BASIC v4.5.1 beta 2
Post by cundo on Apr 27th, 2017, 2:17pm

I think that the icon issue it is just a cache thing. It did the same on mine, but updated really fast to the torch, like in a second.
Re: Liberty BASIC v4.5.1 beta 2
Post by CarlGundel on Apr 27th, 2017, 4:26pm

on Apr 27th, 2017, 2:17pm, cundo wrote:
I think that the icon issue it is just a cache thing. It did the same on mine, but updated really fast to the torch, like in a second.

Yeah, if the icon is wrong that would seem to be a Windows issue because the icon is pointing to the right place. Not sure I can fix it.

-Carl
Re: Liberty BASIC v4.5.1 beta 2
Post by JohnnyD on Apr 28th, 2017, 03:21am

Hi Carl,

If you're adding features, I think it would be great to be able to comment out large blocks of code (by adding the " ' " at the start of a line) by highlighting a block of code then click a button to add the " ' " automatically.

It is a right royal pain to do it manually when doing this to 100+ lines!

johnnyD





how easy would it be to be able to highlight a block of code
Re: Liberty BASIC v4.5.1 beta 2
Post by CarlGundel on Apr 28th, 2017, 06:20am

Not a bad idea. It would be great to allow for scripting in the editor so that new features can be added by the user.

-Carl
on Apr 28th, 2017, 03:21am, JohnnyD wrote:
Hi Carl,

If you're adding features, I think it would be great to be able to comment out large blocks of code (by adding the " ' " at the start of a line) by highlighting a block of code then click a button to add the " ' " automatically.

It is a right royal pain to do it manually when doing this to 100+ lines!

johnnyD





how easy would it be to be able to highlight a block of code

Re: Liberty BASIC v4.5.1 beta 2
Post by CarlGundel on Apr 28th, 2017, 06:54am

on Apr 27th, 2017, 1:59pm, Rod wrote:
The checkbox to show or hide global variables works really well. Quick click and scroll gets the info on the global. Syntax color is cool as well.

Character 160 is still a pain, I have filter bad characters clicked but it gets pasted and stalls the compile for even the simplest of code copied from the wiki.

I will add code to transform the 160 character to a 32 character. smiley

-Carl
Re: Liberty BASIC v4.5.1 beta 2
Post by CarlGundel on Apr 28th, 2017, 07:15am

on Apr 28th, 2017, 06:54am, CarlGundel wrote:
I will add code to transform the 160 character to a 32 character. smiley

-Carl


Okay, can you point me at a specific example on the wiki? I've tried several and found no 160 ASCII characters.

-Carl
Re: Liberty BASIC v4.5.1 beta 2
Post by hooshnik on Apr 28th, 2017, 10:47am

Just confirmed the 160d / A0h bug here with a hex editor. I put it between a print statement and a double quote - got a syntax error. It just looks like a regular space.
Re: Liberty BASIC v4.5.1 beta 2
Post by G. Rahman on Apr 28th, 2017, 12:37pm


It's going fine here.
But the LSN part doesn't show the new toolbar icons yet.

Keep the good things going ....

Gordon
Re: Liberty BASIC v4.5.1 beta 2
Post by Rod on Apr 28th, 2017, 2:29pm

If I use this code from the wiki

http://lbpe.wikispaces.com/Textbox+with+Columns

and indeed any other code from the wiki

and copy and paste to the ide I immediately get a compile error with the first 160 character highlighted in blue.

I am on Win 10 using Edge browser.

Edit: just tried Chrome and it copies and pastes the code without the 160 character. sad Lots of folks will use Edge so a solution might come from MS but failing safe with 160=32 might be still be a good fix.
Re: Liberty BASIC v4.5.1 beta 2
Post by thejoecole on Apr 28th, 2017, 3:41pm

I don't pretend to understand the 160 or 32 character issue, but I did try to replicate what Rod mentioned and believe it may be browser specific.

When I copied the code from the wiki

http://lbpe.wikispaces.com/Textbox+with+Columns

and brought it into LibertyBASIC from the MS Edge browser, I received the following message: "Basic Compile Halted: Syntax Error"


When I did the same copy/paste from Chrome, Vivaldi, and Firefox it ran just fine on my Windows 10 system.

Just a thought...
Re: Liberty BASIC v4.5.1 beta 2
Post by Brandon Parker on Apr 28th, 2017, 3:54pm

In the event that a reboot is always working for getting the icon to appear correctly on the .LNK (shortcut) then you might be able to just restart explorer.exe; this should force a refresh of the icon cash. In the event that it doesn't work then you could kill explorer.exe, delete the user's IconCache.db file under their appdata folder, and restart explorer.exe.

I'm pretty sure there is a more elegant way to force this, but the methods above should work.


{:0)

Brandon
Re: Liberty BASIC v4.5.1 beta 2
Post by robmcal on Apr 28th, 2017, 5:21pm

The installer I use for my program (Inno Setup) has a section that sets up file associations. When that part runs it refreshes icon cash.
Re: Liberty BASIC v4.5.1 beta 2
Post by BeeTrap on Apr 29th, 2017, 07:17am

Please be careful when deleting the Icon Cache in Windows 10. Things have changed quite a bit. Please look at:
https://www.howtogeek.com/232779/how-to-rebuild-a-broken-icon-cache-in-windows-10/
This is a very detailed description of the MANY files involved.
Re: Liberty BASIC v4.5.1 beta 2
Post by cundo on Apr 29th, 2017, 10:18am

I don't think it is a big problem. I consider this icon issue an OS hiccup, since we are beta testing, and there are some identicall shortcuts on these b1 and b2 distributions.
The system cache should clean itself after a while.
Re: Liberty BASIC v4.5.1 beta 2
Post by Stefan Pendl on Apr 29th, 2017, 3:30pm

Focus on the real issues, the icon can be displayed by selecting refresh from the desktop context menu, so it is not an issue, just a Windows annoyance.
Re: Liberty BASIC v4.5.1 beta 2
Post by robmcal on Apr 29th, 2017, 3:39pm

on Apr 29th, 2017, 3:30pm, Stefan Pendl wrote:
Focus on the real issues, the icon can be displayed by selecting refresh from the desktop context menu, so it is not an issue, just a Windows annoyance.

That doesn't work on Windows 7, but I agree, this is a Windows bug.
Re: Liberty BASIC v4.5.1 beta 2
Post by thejoecole on May 1st, 2017, 10:08am

“Buy Upgrade Online!” Button:

When clicking the “Buy Upgrade Online!” button on the toolbar, I noticed my browser would open on a BLANK page (www.libertybasic.com/toolbarlb4.html). Though this isn’t a show-stopping bug, it may impact the user’s perception of the program and ultimately a potential sale.

I saw this testing an unregistered copy of LB 4.5.1 beta2. Once I upgraded my software from 4.0.4 to 4.5.0, the beta2 version picked up my registration information from 4.5.0 and the “Buy Upgrade Online!” button is now gone from both 4.5.0 and 4.5.1 beta2.

Regards,
Joe