Commit graph

777 commits

Author SHA1 Message Date
gambas
3240ebd8ef Fix the default NULL value for objects. JIT functions returning NULL objects as default value do not crash anymore.
[GB.JIT]
* BUG: Fix the default NULL value for objects. JIT functions returning NULL objects as default value do not crash anymore.
2021-03-10 01:55:50 +01:00
gambas
d5c59c123c Change the GB_FUNCTION structure so that it stores the index of the method instead of its description pointer.
[INTERPRETER]
* NEW: Change the GB_FUNCTION structure so that it stores the index of the method instead of its description pointer.

[GB.DATA]
* OPT: The new GB_FUNCTION structure allows to reduce the size of the GRAPH_DESC structure.
2021-03-07 23:51:12 +01:00
gambas
50db463077 Support for '#Script' preprocessor keyword.
[COMPILER]
* NEW: Support for '#Script' preprocessor keyword.

[GB.EVAL]
* NEW: Support for '#Script' preprocessor keyword.
2021-03-06 22:18:15 +01:00
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
c4bc1a9ef6 Add more color constants.
[GB.IMAGE]
* NEW: Add more color constants.
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
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
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
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
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
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
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
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
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
gambas
2c173c0a2d Correctly remove 'gb.component' file from installation once the metadata has been generated.
[CONFIGURATION]
* BUG: Correctly remove 'gb.component' file from installation once the metadata has been generated.
2020-11-27 20:33:15 +01:00
gambas
fd478d91b9 SQLRequest: Do not quote "*" field name in Select() method.
[GB.DB]
* NEW: SQLRequest: Do not quote "*" field name in Select() method.
2020-11-24 21:42:02 +01:00
gambas
2ca5bdd574 The debugger now correctly saves and prints the current error message.
[INTERPRETER]
* NEW: Add a debug API that returns the current error message, and remove the API that printed it.

[GB.DEBUG]
* BUG: The debugger now correctly saves and prints the current error message.
2020-11-11 03:32:03 +01:00
gambas
5ae68582e6 Add 'gb.qt4.webview' component.
[GB.GUI.WEBVIEW]
* NEW: Handle 'gb.qt4.webview'.

[GB.QT4.WEBVIEW]
* NEW: New component based on QtWebKit like 'gb.qt4.webkit'.
2020-09-30 17:43:26 +02:00
gambas
3e0b760dc6 Work on web browser components continue. New QT/GTK+ web browser switcher component.
[GB.GTK3.WEBVIEW]
* NEW: WebView: Add Title and Zoom properties.
* NEW: WebView: Add History property and history support.

[GB.GUI]
* NEW: Enhance debugging messages.

[GB.GUI.OPENGL]
* NEW: Fix debugging messages.

[GB.GUI.QT]
* NEW: Enhance debugging messages.

[GB.GUI.WEBVIEW]
* NEW: New QT/GTK+ web browser switcher component.

[GB.QT5.WEBVIEW]
* NEW: WebView: Add Title and Zoom properties.
* NEW: WebView: Add History property and history support.
2020-09-23 01:06:18 +02:00
gambas
f0606b61c3 Disable jit compiler if no compiler is found.
[INTERPRETER]
* NEW: Disable jit compiler if no compiler is found.

[GB.JIT]
* NEW: Don't crash if no compiler is found, but just tell the interpreter.
2020-09-14 21:15:20 +02:00
gambas
18a74ff682 Use "-march=native -mtune=native" to compile JIT translated code.
[GB.JIT]
* OPT: Use "-march=native -mtune=native" to compile JIT translated code.
2020-09-11 00:43:08 +02:00
Tobias Boege
62823aed08 gb.test: Improve diagnostics of Approximate assertions
[GB.TEST]
* BUG: Improve diagnostics of Approximate and RelativeApproximate assertions, showing the original values too.
2020-08-09 22:11:07 +02:00
gambas
8af699ce91 Correctly handle "~" in database directories.
[GB.DB.SQLITE2]
* BUG: Correctly handle "~" in database directories.

[GB.DB.SQLITE3]
* BUG: Correctly handle "~" in database directories.
2020-08-02 21:14:15 +02:00
Christof Thalhofer
fffe0cc8db gb.test ignore case in test fixtures' method names
[GB.TEST]
* BUG: gb.test ignore case of method names of test fixtures
2020-07-18 12:45:31 +02:00
gambas
ef7fce00d4 Fix a typo in an help comment.
[GB.TEST]
* BUG: Fix a typo in an help comment.
2020-07-09 13:25:24 +02:00
Benoît Minisini
6d6f99887a Merge branch 'master' into 'master'
Updated brazilian portuguese translations

See merge request gambas/gambas!150
2020-07-04 09:52:12 +00:00
gambas
0423ce0dfb Fix a badly written code that crashes on 32-bits CPU.
[GB.JIT]
* BUG: Fix a badly written code that crashes on 32-bits CPU.
2020-07-02 22:35:07 +02:00
gambas
fd5ec670e1 Add man pages.
[CONFIGURATION]
* NEW: Add man pages.

[INTERPRETER]
* NEW: Use 'time_t' in GB.MakeDateFromTime API.

[WIKI CGI SCRIPT]
* NEW: Add a command-line option to print the package table.
2020-06-20 04:56:22 +02:00
Gen Braga
e70c3ae879 Added Brazilian Portuguese translations
[GB.TEST]
* NEW: Added Brazilian Portuguese translations.
2020-06-11 22:03:13 -03:00
Christof Thalhofer
2818930937 gb.test: Taskell with new task to be done. 2020-06-07 17:50:10 +02:00
Tobias Boege
44a6c2462a gb.test: Show bad plans in summary
[GB.TEST]
* NEW: Show bad plans in summary.
* BUG: Set recently added TestAssertion properties from TapPrinter as well.
2020-06-07 00:43:44 +02:00
Christof Thalhofer
09da14aa68 gb.test plan selftests and taskell
[GB.TEST]
*NEW: plan selftests
*NEW: forbid assertions in _Setup.. and _Teardown.. to ensure plan is always valid
2020-06-06 12:08:14 +02:00
Christof Thalhofer
e1bfd66808 gb.test documentation
[GB.TEST]
* OPT: documentation
2020-06-05 10:56:37 +02:00
gambas
a6ada310a7 Merge branch 'master' of gitlab.com:gambas/gambas 2020-06-03 16:15:43 +02:00
gambas
37db5413e1 Connection.ApplyTemplate() now updates existing tables.
[GB.DB]
* NEW: Connection.Url is a new property that returns the URL of the connection.
* NEW: Connection.ApplyTemplate() now updates existing tables.
2020-06-03 15:48:14 +02:00
Christof Thalhofer
a26f2e6e46 gb.test taskell update 2020-06-03 08:18:42 +02:00
Christof Thalhofer
7068c6bbca gb.test testmethod's names must not contain underscore
[GB.TEST]
* NEW: testmethod's names must not contain underscore
2020-06-02 11:04:06 +02:00
Tobias Boege
efdc072276 gb.test: document and fix Todo tests
[GB.TEST]
* NEW: Add tests for Assert.Match.
* BUG: Assert: document Approximate and RelativeApproximate.
* BUG: Special-case Expected = 0 in RelativeApproximate.
2020-06-01 06:57:45 +02:00
Tobias Boege
42065f8f0f gb.test: TSkipAll now passes
The test TSkipAll now passes with its intended implementation,
so remove the Test.Todo.
2020-06-01 06:36:04 +02:00
Tobias Boege
2f56334d2a TestRunner: Prefer Exec over Shell
[GB.TEST]
* OPT: TestRunner: do not assemble a Shell command string when Exec works.

Also remove leftover TODOs.
2020-06-01 06:33:45 +02:00
Tobias Boege
939397a734 gb.test: Parse a skipping plan line
[GB.TEST]
* NEW: The parser can now parse a plan line which skips the entire test.
2020-06-01 06:30:52 +02:00