Just BASIC v2 Release Candidate available for download
Mar 31, 2018 19:41:08 GMT
cundo, jaypit, and 1 more like this
Post by carlgundel on Mar 31, 2018 19:41:08 GMT
The first release candidate of Just BASIC v2.0 is ready for your testing pleasure.
www.libertybasic.com/jb20setup.exe
If there are no showstoppers this will become the official v2.0 release of Run BASIC.
Showstopper - A new bug that doesn't exist in JB v1.01 or in Liberty BASIC v4.5.1 (from which JB v2.0 is derived), and which makes Just BASIC v2.0 unusable in some way.
Below are the release notes of new things for JB v2.0.
-Carl
Just BASIC v2.0 release notes
----------------------------------------------------------------------
-Updated the sprite examples to use a timer instead of a delay loop.
SPRGETXY.BAS, SPRTTST2.BAS and SPRTTST3.BAS
-Added a Just BASIC Tutorial which is opened from the Help menu. This
version of the tutorial is converted to HTML and is viewed in the
default web browser.
-Fixed error that sometimes occurs when the Icon Editor is opened.
-Fixed error Runtime error: "stepToNextLocalLine" not understood
when using debugger popup menu 'Run to next local line'.
-Added ASCII 160 to ASCII 32 conversion when Filter bad characters
is turned on.
NOTICE: TKN files need to be regenerated for use with the v2.0
runtime engine! This is because of a certain bug fix which
rendered the new TKN files unreadable by older runtime engines.
-Added a Smaller font and Larger font button to the Just BASIC
editor toolbar so that you can change the font size quickly.
-Updated runtime engine name to jrun20.exe
-Fixed the paste action so that in a window having one or more
textboxes and one or more texteditor widgets, that the paste would
figure out which control has the input focus before pasting.
-Fixed the error message that is produced when trying to print to a
file opened for input. It was complaining that file access is denied
but now it says:
Attempted to write to a file opened for input: #handle
-Added a variable highlighting feature to the code editor. Double
clicking on a variable name will cause other instances of that
variable to to be highlighted with yellow background to make them
easy to find.
-Control clicking on a branch label, sub or function name will cause
the code editor to jump to that place in the code if it exists.
-Remove restriction on the baud rates that are permitted when opening
serial ports to account for newer or exotic devices.
-Remember the Just BASIC editor size and position so that it will
open in the size and location it was when it was closed.
-Fix for Runtime error: Float denormalized operand
In various scenarios Just BASIC users have reported this error,
most recently in respect to using LB with a touchscreen.
-Memory limit raised from 70MB to 256MB. For a long time this was kept
low as a garbage collection optimization, but 70MB seems like an
unreasonable size restriction today.
-Added a filter to remove noncompileable and invisible characters from
files which are opened into the Just BASIC editor. Characters
with values above ASCII 32 are permitted along with LF (ASCII
10), CR (ASCII 13), and TAB (ASCII 9). Any other characters will
need to be represented using the CHR$() function or else read in from
a file or from some other source. The filter is also applied to text
which is pasted, or added using the File+Insert File... menu.
NOTE: This feature can be turned off in the Just BASIC Preferences
window under the Setup menu with the Filter Bad Characters checkbox.
-Eliminated a runtime error "asBoolean not understood" for when the
result of a comparison expression in an IF/THEN statement is a
floating point value. For example:
if 1/2 then print "testing"
Now the value is truncated to an integer if needed. This means that
if the result of the expression is 1 > n > -1 then the expression
will evaluate to false.
-Added support for Windows Vista, Windows 7, Windows 8/8.1 and
Windows 10!
-Fixed the FUNCTION statement so it will allow more than one space
between the keyword FUNCTION and the name of the function:
function thisDidntUsedToWork(a)
-Fixed the SUB statement so that it won't allow duplicate parameter
names, like so:
sub testName x0, x0
-Tweaked the debugger so it takes fewer clicks to step through an
INPUT statement.
-Tightened up syntax checking on the IF/THEN statement so that two
or more colons in a row after THEN is a syntax error
-Added a StartupDir$ variable which is handy particularly when using
Vista because the startup folder and user data folder aren't always
the same.
-Added the ability to specify two macros when creating entries in
the External Programs window under the Setup menu. You can use
either $USERDATA or $STARTUP. For example the preconfigured
error.log entry looks like:
notepad.exe $USERDATAerror.log
-Fixed a problem creating the backup folder when the user changes it.
-A popup error notice was sometimes appearing when a program would run
all the way through in the debugger. Fixed.
-Modified Just BASIC to place program and data files in the user
data folder instead of inside the application folder when running
under Windows Vista or newer.
-Changed the name of justbasic1.ini to justbasic2.ini.
-Fixed. Using the debugger could sometimes result in a "hasMainWindow
not understood" error.
-Added STEP to the list of keywords recognized by the syntax colorer.
-Fixed the tooltip for the release notes toolbar button to read
'Release Notes, Alt-H+R'
-Fixed a bug where the compiler would sometimes fail with an error
"syntaxError: not understood"
-Tighten up the detection of bad syntax. Here is an example of a line
that blows up in v1.01 but which is properly flagged as a compile
error in v2.0:
for x = 1 to n%
-Fixed an issue where sometimes deployed applications would fail with
index outside collection bounds errors when a user defined SUB or
FUNCTION called another user defined SUB or FUNCTION.
-Changed the terminology when closing a program from "Terminate..."
to "Close program..."
-Converted the help files to HTML format
-NEW option in preferences "Always Open Main Window on Debug"
causes the mainwindow to always appear when running programs in the
debugger, even if the programs have a nomainwin statement.
-Fixed the debugger so that you can now scroll in the code pane using
keyboard instead of being forced to use the scrollbars.
-A fix in the runtime engine that makes it better at properly exiting
the EXE in the case of an unhandled runtime error.
-Fixes a bug when compiling the DO statement where a syntax error
would fail to show the errant line in the editor.
-Optimized graphics redrawing to improve performance in some
cases.
-Made a change to serial communications to improve performance
when transmitting strings as opposed to single characters.
Your mileage may vary.
-Fixed a memory leak that becomes evident when opening and closing
windows repeatedly.
-Fix for a bug in the File+Insert File... feature which would
cause the inserted file's name to be used when the file in
the editor is later saved.
-Fix for a bug which caused subhandles to stick around in
memory after a window is closed. This caused the MAPHANDLE
command to malfunction.
-Fix for a bug which caused parameter names for user functions
to be treated as globals instead of locally scoped names
when executing a TKN file.
-Fix for reading TKN files when Windows is set up for MBCS
languages like Chinese
-Fix for binary file mode so that it will work correctly with
MBCS languages
-Fix for the mouseMove event, so that it properly adds offsets
from scrollbars
-Fixed the lite debug error when the program completes
-Fixed the the incorrect way that lessons are getting saved, which
essentially wipes them out.
-Fixed the coloring of compound variable names in the editor
www.libertybasic.com/jb20setup.exe
If there are no showstoppers this will become the official v2.0 release of Run BASIC.
Showstopper - A new bug that doesn't exist in JB v1.01 or in Liberty BASIC v4.5.1 (from which JB v2.0 is derived), and which makes Just BASIC v2.0 unusable in some way.
Below are the release notes of new things for JB v2.0.
-Carl
Just BASIC v2.0 release notes
----------------------------------------------------------------------
-Updated the sprite examples to use a timer instead of a delay loop.
SPRGETXY.BAS, SPRTTST2.BAS and SPRTTST3.BAS
-Added a Just BASIC Tutorial which is opened from the Help menu. This
version of the tutorial is converted to HTML and is viewed in the
default web browser.
-Fixed error that sometimes occurs when the Icon Editor is opened.
-Fixed error Runtime error: "stepToNextLocalLine" not understood
when using debugger popup menu 'Run to next local line'.
-Added ASCII 160 to ASCII 32 conversion when Filter bad characters
is turned on.
NOTICE: TKN files need to be regenerated for use with the v2.0
runtime engine! This is because of a certain bug fix which
rendered the new TKN files unreadable by older runtime engines.
-Added a Smaller font and Larger font button to the Just BASIC
editor toolbar so that you can change the font size quickly.
-Updated runtime engine name to jrun20.exe
-Fixed the paste action so that in a window having one or more
textboxes and one or more texteditor widgets, that the paste would
figure out which control has the input focus before pasting.
-Fixed the error message that is produced when trying to print to a
file opened for input. It was complaining that file access is denied
but now it says:
Attempted to write to a file opened for input: #handle
-Added a variable highlighting feature to the code editor. Double
clicking on a variable name will cause other instances of that
variable to to be highlighted with yellow background to make them
easy to find.
-Control clicking on a branch label, sub or function name will cause
the code editor to jump to that place in the code if it exists.
-Remove restriction on the baud rates that are permitted when opening
serial ports to account for newer or exotic devices.
-Remember the Just BASIC editor size and position so that it will
open in the size and location it was when it was closed.
-Fix for Runtime error: Float denormalized operand
In various scenarios Just BASIC users have reported this error,
most recently in respect to using LB with a touchscreen.
-Memory limit raised from 70MB to 256MB. For a long time this was kept
low as a garbage collection optimization, but 70MB seems like an
unreasonable size restriction today.
-Added a filter to remove noncompileable and invisible characters from
files which are opened into the Just BASIC editor. Characters
with values above ASCII 32 are permitted along with LF (ASCII
10), CR (ASCII 13), and TAB (ASCII 9). Any other characters will
need to be represented using the CHR$() function or else read in from
a file or from some other source. The filter is also applied to text
which is pasted, or added using the File+Insert File... menu.
NOTE: This feature can be turned off in the Just BASIC Preferences
window under the Setup menu with the Filter Bad Characters checkbox.
-Eliminated a runtime error "asBoolean not understood" for when the
result of a comparison expression in an IF/THEN statement is a
floating point value. For example:
if 1/2 then print "testing"
Now the value is truncated to an integer if needed. This means that
if the result of the expression is 1 > n > -1 then the expression
will evaluate to false.
-Added support for Windows Vista, Windows 7, Windows 8/8.1 and
Windows 10!
-Fixed the FUNCTION statement so it will allow more than one space
between the keyword FUNCTION and the name of the function:
function thisDidntUsedToWork(a)
-Fixed the SUB statement so that it won't allow duplicate parameter
names, like so:
sub testName x0, x0
-Tweaked the debugger so it takes fewer clicks to step through an
INPUT statement.
-Tightened up syntax checking on the IF/THEN statement so that two
or more colons in a row after THEN is a syntax error
-Added a StartupDir$ variable which is handy particularly when using
Vista because the startup folder and user data folder aren't always
the same.
-Added the ability to specify two macros when creating entries in
the External Programs window under the Setup menu. You can use
either $USERDATA or $STARTUP. For example the preconfigured
error.log entry looks like:
notepad.exe $USERDATAerror.log
-Fixed a problem creating the backup folder when the user changes it.
-A popup error notice was sometimes appearing when a program would run
all the way through in the debugger. Fixed.
-Modified Just BASIC to place program and data files in the user
data folder instead of inside the application folder when running
under Windows Vista or newer.
-Changed the name of justbasic1.ini to justbasic2.ini.
-Fixed. Using the debugger could sometimes result in a "hasMainWindow
not understood" error.
-Added STEP to the list of keywords recognized by the syntax colorer.
-Fixed the tooltip for the release notes toolbar button to read
'Release Notes, Alt-H+R'
-Fixed a bug where the compiler would sometimes fail with an error
"syntaxError: not understood"
-Tighten up the detection of bad syntax. Here is an example of a line
that blows up in v1.01 but which is properly flagged as a compile
error in v2.0:
for x = 1 to n%
-Fixed an issue where sometimes deployed applications would fail with
index outside collection bounds errors when a user defined SUB or
FUNCTION called another user defined SUB or FUNCTION.
-Changed the terminology when closing a program from "Terminate..."
to "Close program..."
-Converted the help files to HTML format
-NEW option in preferences "Always Open Main Window on Debug"
causes the mainwindow to always appear when running programs in the
debugger, even if the programs have a nomainwin statement.
-Fixed the debugger so that you can now scroll in the code pane using
keyboard instead of being forced to use the scrollbars.
-A fix in the runtime engine that makes it better at properly exiting
the EXE in the case of an unhandled runtime error.
-Fixes a bug when compiling the DO statement where a syntax error
would fail to show the errant line in the editor.
-Optimized graphics redrawing to improve performance in some
cases.
-Made a change to serial communications to improve performance
when transmitting strings as opposed to single characters.
Your mileage may vary.
-Fixed a memory leak that becomes evident when opening and closing
windows repeatedly.
-Fix for a bug in the File+Insert File... feature which would
cause the inserted file's name to be used when the file in
the editor is later saved.
-Fix for a bug which caused subhandles to stick around in
memory after a window is closed. This caused the MAPHANDLE
command to malfunction.
-Fix for a bug which caused parameter names for user functions
to be treated as globals instead of locally scoped names
when executing a TKN file.
-Fix for reading TKN files when Windows is set up for MBCS
languages like Chinese
-Fix for binary file mode so that it will work correctly with
MBCS languages
-Fix for the mouseMove event, so that it properly adds offsets
from scrollbars
-Fixed the lite debug error when the program completes
-Fixed the the incorrect way that lessons are getting saved, which
essentially wipes them out.
-Fixed the coloring of compound variable names in the editor