Commit graph

2143 commits

Author SHA1 Message Date
Christof Thalhofer
97e67b9481 gb.test use dot instead of colon in TAP output
[GB.TEST]
* OPT: Use dot instead of colon in TAP output for testmodule.testmethod
2021-03-06 14:14:58 +01:00
gambas
1656bfa06c Test.BailOut() now raises an error to quit later, instead of quitting immediately, to avoid circular references warning.
[GB.TEST]
* NEW: Test.BailOut() now raises an error to quit later, instead of quitting immediately, to avoid circular references warning.
2021-03-06 13:17:35 +01:00
gambas
ffe87b6074 Tabs and newlines are now replaced by spaces inside error messages. Otherwise the debugger breaks.
[GB.DEBUG]
* BUG: Tabs and newlines are now replaced by spaces inside error messages. Otherwise the debugger breaks.
2021-03-06 13:17:35 +01:00
gambas
321809c4c7 Keywords and subroutines are now returned by two different properties of the System class.
[GB.EVAL]
* NEW: Keywords and subroutines are now returned by two different properties of the System class.
* NEW: System properties Keywords, Subroutines and Datatypes now return a read-only array.

[GB.EVAL.HIGHLIGHT]
* NEW: Support for the new System Keywords and Subroutines properties.
2021-03-06 13:17:35 +01:00
gambas
1662aec5f2 Add an API to set the read-only flag of an array.
[INTERPRETER]
* NEW: Add an API to set the read-only flag of an array.
2021-03-06 13:17:35 +01:00
gambas
c4bc1a9ef6 Add more color constants.
[GB.IMAGE]
* NEW: Add more color constants.
2021-03-06 13:17:35 +01:00
gambas
5e6644409e Timers are not inherited anymore by background tasks.
[INTERPRETER]
* NEW: Timers are not inherited anymore by background tasks. They are actually inherited, but immediately disabled the first time they trigger inside the background task.
2021-03-06 13:17:35 +01:00
gambas
439af29083 TrayIcon: The Picture property kind is now "Picture:NoCache" so that the trayicon icon is not modified when the current theme is dark.
[GB.GUI.TRAYICON]
* NEW: TrayIcon: The Picture property kind is now "Picture:NoCache" so that the trayicon icon is not modified when the current theme is dark.
2021-03-06 13:17:35 +01:00
gambas
e23fca2ecc The enumerator object now can register a free function that is called when the enumeration ends or is aborted.
[INTERPRETER]
* NEW: The enumerator object now can register a free function that is called when the enumeration ends or is aborted.
2021-03-06 13:17:35 +01:00
Christof Thalhofer
8ebf5b5e61 gb.test report Error.Where on error and crash
[GB.TEST]
* NEW: Report Error.Where on error and crash.
2021-03-06 13:17:35 +01:00
Tobias Boege
6dcf1584b2 gb.test: don't mark string formats as translatable
[GB.TEST]
* BUG: Remove the marking of some string as translatable which are just formats, like "&1: &2".
2021-03-06 13:17:35 +01:00
gambas
fd7160b617 Allow ON ... GOTO / GOSUB to span on multiple lines.
[COMPILER]
* NEW: Allow ON ... GOTO / GOSUB to span on multiple lines.
2021-03-06 13:17:35 +01:00
gambas
d68c687b4e Fix a crash when GB.ReturnNewString() is used with a zero length.
[INTERPRETER]
* BUG: Fix a crash when GB.ReturnNewString() is used with a zero length.
2021-02-23 18:54:34 +01:00
gambas
ffe6133fd7 Still fixing Gambas highlighting of space characters.
[GB.EVAL]
* BUG: Still fixing Gambas highlighting of space characters.
2021-02-15 19:26:29 +01:00
gambas
8360ee65eb Fix space characters highlighting again.
[GB.EVAL]
* BUG: Fix space characters highlighting again.
2021-02-15 16:15:18 +01:00
gambas
69623f1eea Fix how highlighting deals with spaces.
[GB.EVAL]
* BUG: Fix how highlighting deals with spaces.
2021-02-15 03:20:41 +01:00
gambas
1609a6c60a Fix automatic conversion of multi-dimensional arrays.
[INTERPRETER]
* BUG: Fix automatic conversion of multi-dimensional arrays.
2021-02-10 19:20:43 +01:00
gambas
5c8f4e1b68 Really fix compilation on 32-bits systems.
[INTERPRETER]
* BUG: Really fix compilation on 32-bits systems.
2021-02-10 15:20:04 +01:00
gambas
8ef319b7cc Fix string array search with special comparisons.
[INTERPRETER]
* BUG: Fix string array search with special comparisons.
2021-02-10 15:18:01 +01:00
gambas
072101e02a Fix compilation on 32-bits systems.
[INTERPRETER]
* BUG: Fix compilation on 32-bits systems.
2021-02-10 14:48:14 +01:00
gambas
e7898916e9 Replace the Array.Sorted property by explicit FindSorted(), ExistSorted()... methods.
[INTERPRETER]
* BUG: Replace the Array.Sorted property by explicit FindSorted(), ExistSorted()... methods.
2021-02-09 23:36:09 +01:00
gambas
0fd80f690d Array.Sorted is a new property that makes the Find() and Exist() methods use a binary search algorithm. In other words, it tells the interpreter that the array is sorted.
[INTERPRETER]
* NEW: Array.Sorted is a new property that makes the Find() and Exist() methods use a binary search algorithm. In other words, it tells the interpreter that the array is sorted.
* BUG: Object[].Find() now correctly takes the optional 'Start' argument in account.
2021-02-09 20:28:58 +01:00
gambas
95572fb040 Fix multi-dimensional arrays management.
[INTERPRETER]
* BUG: Fix multi-dimensional arrays management.
2021-02-09 02:19:39 +01:00
gambas
15135fe60b Raise a memory error if the size of an array element overflows. The maximum size is now 16 MB minus one byte.
[INTERPRETER]
* BUG: Fix initialization of multi-dimensional array.
* NEW: Raise a memory error if the size of an array element overflows. The maximum size is now 16 MB minus one byte.
2021-02-08 22:08:15 +01:00
gambas
991695e493 Array access is now about 15% faster.
[INTERPRETER]
* OPT: Array access is now about 15% faster.
2021-02-08 21:45:29 +01:00
gambas
47a9a6679b '#Include" is a new preprocessor reserved identifier. Fix preprocessor lines highlighting.
[COMPILER]
* NEW: '#Include" is a new preprocessor reserved identifier.
* BUG: Always raise a syntax error if a preprocessor line starts with an unknown reserved identifier.

[GB.EVAL]
* BUG: Fix preprocessor lines highlighting.
2021-02-06 17:47:32 +01:00
gambas
ab74b3195d Stop watching debugger file descriptor as soon as there is a read error.
[GB.DEBUG]
* BUG: Stop watching debugger file descriptor as soon as there is a read error.
2021-02-06 17:05:03 +01:00
gambas
a22fb26f0f Enumerating subcollection now silently ignores elements that do not exist anymore, instead of raising an error.
[GB.DB]
* NEW: Enumerating subcollection now silently ignores elements that do not exist anymore, instead of raising an error.
2021-02-06 04:04:42 +01:00
gambas
7bcdef0ad5 Do not crash when using '("")' as value for a string constant.
[COMPILER]
* BUG: Do not crash when using '("")' as value for a string constant.
* NEW: Better support for background jobs crashes.
2021-02-04 04:04:23 +01:00
gambas
86981a3c2c Change the internal signature of the implementation of the class "fast methods".
[INTERPRETER]
* NEW: Change the internal signature of the implementation of the class "fast methods".
2021-02-03 18:56:34 +01:00
gambas
c0167ec949 Fix parser on multi-line text.
[GB.EVAL]
* BUG: Fix parser on multi-line text.
2021-02-03 18:29:55 +01:00
gambas
74f6f1e781 Wait for remaining background jobs after a compilation error has been reported.
[COMPILER]
* BUG: Wait for remaining background jobs after a compilation error has been reported.
2021-02-02 23:46:00 +01:00
gambas
ee50e97948 If the "class" word follows the "End" keyword, it is recognized as a keyword.
[COMPILER]
* NEW: If the "class" word follows the "End" keyword, it is recognized as a keyword.

[GB.EVAL]
* NEW: If the "class" word follows the "End" keyword, it is recognized as a keyword.
2021-02-01 04:04:46 +01:00
gambas
84c5ac08dd By default, the number of jobs is the number of cores plus one.
[COMPILER]
* NEW: By default, the number of jobs is the number of cores plus one.
* NEW: -j0 option means the number of cores plus one.
2021-02-01 04:04:08 +01:00
gambas
1249ebd2f9 System.Cores is a new property that returns the number of cores.
[COMPILER]
* NEW: By default, the compiler now use a number of background tasks equal to the number of cores.

[INTERPRETER]
* NEW: System.Cores is a new property that returns the number of cores.
2021-02-01 01:21:08 +01:00
gambas
85fad8f9da The compile now creates its own process group, so that background tasks can join it when everything is run from a shell.
[COMPILER]
* BUG: The compile now creates its own process group, so that background tasks can join it when everything is run from a shell.
2021-01-30 15:25:08 +01:00
gambas
f7c783f536 Add a '-j' option to run multiple jobs in background to speed-up compilation.
[COMPILER]
* OPT: Add a '-j' option to run multiple jobs in background to speed-up compilation.
2021-01-30 14:06:09 +01:00
gambas
ec328f8d95 Remove trailing separators from 'gb.LongDate' date format.
[INTERPRETER]
* BUG: Remove trailing separators from 'gb.LongDate' date format.
2021-01-29 15:35:08 +01:00
gambas
f588c83fda PictureBox now uses the new UserControl Draw pseudo-event and Frame container in now implemented in Gambas.
[GB.DRAW]
* NEW: Add PaintExtents W and H properties as synonymous of Width and Height.

[GB.GUI.BASE]
* NEW: PictureBox now uses the new UserControl Draw pseudo-event.
* NEW: Frame container in now implemented in Gambas.

[GB.GTK]
* NEW: Frame container in now implemented in Gambas.
* BUG: Style drawing routines now work correctly on UserControl.

[GB.GTK3]
* NEW: Frame container in now implemented in Gambas.

[GB.QT4]
* NEW: Frame container in now implemented in Gambas.

[GB.QT5]
* NEW: Frame container in now implemented in Gambas.
* BUG: Do not activate windows on Wayland, this is not supported.
2021-01-23 23:30:36 +01:00
gambas
91cf8ef35e Min() and Max() are now faster.
[INTERPRETER]
* OPT: Min() and Max() are now faster.
2021-01-21 14:33:49 +01:00
gambas
1e22281d4d Add GB.String.Split() API. GB.Array.Get() does not check array bounds anymore.
[INTERPRETER]
* NEW: Add GB.String.Split() API.
* OPT: GB.Array.Get() does not check array bounds anymore.
2021-01-21 02:32:06 +01:00
gambas
1c3e02257c Signal handlers are now checked only if requested explicitly by a component.
[INTERPRETER]
* OPT: Signal handlers are now checked only if requested explicitly by a component.

[GB.GTK]
* NEW: Request SIGCHLD handler check.

[GB.GTK3]
* NEW: Request SIGCHLD handler check.
2021-01-21 01:49:38 +01:00
gambas
1e7ea9f50c Check SIGCHLD signal handler at each event loop.
[INTERPRETER]
* BUG: Check SIGCHLD signal handler at each event loop.
2021-01-18 21:40:48 +01:00
gambas
6bec59fc15 File.DefaultDirAuth is a new property that defines the default authorizations used when using MkDir.
[INTERPRETER]
* NEW: File.DefaultDirAuth is a new property that defines the default authorizations used when using MkDir.
2021-01-14 01:09:30 +01:00
gambas
a514b8a676 Fix error message choice.
[GB.GUI.QT.OPENGL]
* BUG: Fix error message choice.

[GB.GUI.QT.WEBKIT]
* BUG: Fix error message choice.

[GB.GUI.WEBVIEW]
* BUG: Fix error message choice.
2021-01-04 13:14:30 +01:00
gambas
197adab0b5 Fix uninstallation of gambas icons.
[CONFIGURATION]
* BUG: Fix uninstallation of gambas icons.
2021-01-03 18:35:22 +01:00
gambas
9ed2dab99e Fix thousand separators and Date values with no date formatting.
[INTERPRETER]
* BUG: Use the correct thousand separators.
* BUG: Val() correctly formats Date values with no date again, using 'gb.LongTime' format.
2021-01-02 22:31:03 +01:00
gambas
d94f117e7b Better workaround of libraries that incorrectly override SIGCHLD handler like 'glib'.
[INTERPRETER]
* BUG: Better workaround of libraries that incorrectly override SIGCHLD handler like 'glib'.
2020-12-28 02:45:56 +01:00
gambas
67631903cb Do not crash if '$XDG_CURRENT_DESKTOP' is not defined.
[GB.GUI]
* BUG: Do not crash if '$XDG_CURRENT_DESKTOP' is not defined.

[GB.GUI.QT]
* BUG: Do not crash if '$XDG_CURRENT_DESKTOP' is not defined.
2020-12-26 22:44:57 +01:00
gambas
05e27f506b Use "$XDG_CURRENT_DESKTOP" before "$KDE_FULL_SESSION" to know if we are running KDE.
[GB.GUI]
* BUG: Use "$XDG_CURRENT_DESKTOP" before "$KDE_FULL_SESSION" to know if we are running KDE.

[GB.GUI.QT]
* BUG: Use "$XDG_CURRENT_DESKTOP" before "$KDE_FULL_SESSION" to know if we are running KDE.
2020-12-21 17:45:26 +01:00