Author Topic: BaCon Forum  (Read 6504 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
BaCon Forum
« on: December 02, 2018, 09:20:44 PM »
Hi Peter,

I would be happy to host your forum ,(like Charle's O2 project) if you want off ProBoards. The sandbox would make the guys happy. You would have Plesk Onyx control panel admin rights. The server instance runs on AWS + Route53 running CentOS 7.

ProBoards to SMF Converter  (link updated)

Without trying to sound biased, I feel BaCon, Scipt BASIC and Oyxgen Basic are the last of the non-Microsoft BASIC survivors. If we unite, we may be able to keep BASIC vibrant for a few more years.

BaCon - Linux / Unix Traditional BASIC to C Translator

Script BASIC - Cross platform traditional BASIC interpreter

OxygenBasic - Hybrid BASIC to ASM self compiling compiler for Windows

« Last Edit: December 04, 2018, 02:34:24 AM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: BaCon Forum
« Reply #1 on: December 04, 2018, 09:34:57 PM »
I have created a sandbox repository for the BaCon open source project. The goal of bringing Bacon, Script BASIC and OxygenBasic together under one roof is to share concepts with the goal of collaborating and making BASIC the language it once was.
« Last Edit: December 04, 2018, 09:37:02 PM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: BaCon Forum
« Reply #2 on: December 05, 2018, 02:09:44 PM »
I tried running the BaConGUI executable from the build directory and recieved the following errors and warnings. The BaCon IDE did come up and seemed to work normally.

Any ideas how to resolve this?

Update:

After installing Gtk2.0 and -dev, I'm still getting this message and the following errors/warnings.

Gtk library for 'gtk2' not found! Trying GTK3...



jrs@jrs-laptop:~/BaCon/bacon-3.8/build$ ./bacongui-gtk
Gtk library for 'gtk2' not found! Trying GTK3...

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:26.646: gtk_source_buffer_new_with_language: assertion 'GTK_SOURCE_IS_LANGUAGE (language)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:26.646: gtk_source_buffer_set_highlight_matching_brackets: assertion 'GTK_SOURCE_IS_BUFFER (buffer)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:26.646: gtk_source_view_new_with_buffer: assertion 'GTK_SOURCE_IS_BUFFER (buffer)' failed

(bacongui-gtk:5042): GLib-GObject-WARNING **: 14:02:26.646: invalid (NULL) pointer instance

(bacongui-gtk:5042): GLib-GObject-CRITICAL **: 14:02:26.647: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(bacongui-gtk:5042): GLib-GObject-WARNING **: 14:02:26.647: invalid (NULL) pointer instance

(bacongui-gtk:5042): GLib-GObject-CRITICAL **: 14:02:26.647: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(bacongui-gtk:5042): GLib-GObject-WARNING **: 14:02:26.647: invalid (NULL) pointer instance

(bacongui-gtk:5042): GLib-GObject-CRITICAL **: 14:02:26.647: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:26.647: gtk_source_view_set_tab_width: assertion 'GTK_SOURCE_VIEW (view)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:26.648: gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:26.648: gtk_text_view_set_editable: assertion 'GTK_IS_TEXT_VIEW (text_view)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:26.648: gtk_text_view_set_wrap_mode: assertion 'GTK_IS_TEXT_VIEW (text_view)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:28.089: gtk_source_buffer_new_with_language: assertion 'GTK_SOURCE_IS_LANGUAGE (language)' failed

(bacongui-gtk:5042): GLib-GObject-WARNING **: 14:02:28.090: invalid (NULL) pointer instance

(bacongui-gtk:5042): GLib-GObject-CRITICAL **: 14:02:28.090: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:28.090: gtk_source_buffer_set_highlight_matching_brackets: assertion 'GTK_SOURCE_IS_BUFFER (buffer)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:28.090: gtk_source_view_new_with_buffer: assertion 'GTK_SOURCE_IS_BUFFER (buffer)' failed

(bacongui-gtk:5042): GLib-GObject-WARNING **: 14:02:28.090: invalid (NULL) pointer instance

(bacongui-gtk:5042): GLib-GObject-CRITICAL **: 14:02:28.090: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(bacongui-gtk:5042): GLib-GObject-WARNING **: 14:02:28.090: invalid (NULL) pointer instance

(bacongui-gtk:5042): GLib-GObject-CRITICAL **: 14:02:28.090: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(bacongui-gtk:5042): GLib-GObject-WARNING **: 14:02:28.090: invalid (NULL) pointer instance

(bacongui-gtk:5042): GLib-GObject-CRITICAL **: 14:02:28.090: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(bacongui-gtk:5042): GLib-GObject-WARNING **: 14:02:28.090: invalid (NULL) pointer instance

(bacongui-gtk:5042): GLib-GObject-CRITICAL **: 14:02:28.090: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:28.090: gtk_source_view_set_tab_width: assertion 'GTK_SOURCE_VIEW (view)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:28.092: gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:28.093: gtk_widget_grab_focus: assertion 'GTK_IS_WIDGET (widget)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:28.094: gtk_source_view_set_auto_indent: assertion 'GTK_SOURCE_IS_VIEW (view)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:28.094: gtk_source_view_set_show_line_numbers: assertion 'GTK_SOURCE_IS_VIEW (view)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:28.094: gtk_text_view_set_wrap_mode: assertion 'GTK_IS_TEXT_VIEW (text_view)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:28.095: gtk_widget_modify_font: assertion 'GTK_IS_WIDGET (widget)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:28.095: gtk_widget_modify_font: assertion 'GTK_IS_WIDGET (widget)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:28.095: gtk_widget_override_background_color: assertion 'GTK_IS_WIDGET (widget)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:02:28.097: gtk_source_buffer_set_style_scheme: assertion 'GTK_SOURCE_IS_BUFFER (buffer)' failed

(bacongui-gtk:5042): Gtk-CRITICAL **: 14:02:28.273: gtk_widget_grab_focus: assertion 'GTK_IS_WIDGET (widget)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:06:00.150: gtk_source_buffer_get_style_scheme: assertion 'GTK_SOURCE_IS_BUFFER (buffer)' failed

(bacongui-gtk:5042): GtkSourceView-CRITICAL **: 14:06:00.150: gtk_source_style_scheme_get_id: assertion 'GTK_SOURCE_IS_STYLE_SCHEME (scheme)' failed
jrs@jrs-laptop:~/BaCon/bacon-3.8/build$


« Last Edit: December 05, 2018, 02:34:46 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: BaCon Forum
« Reply #3 on: December 05, 2018, 10:15:38 PM »
No problems grabbing from the fossil repository and building/running here.  Ubuntu 18.10

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: BaCon Forum
« Reply #4 on: December 05, 2018, 11:13:18 PM »
I downloaded 3.8 from Peter's website. I tried to run bacongui-gtlk from the build directory just after it was built. I didn't run make install first. Strange it can't find Gtk 2.0 after installing it.

Even after running make install the problem still exists.


jrs@jrs-laptop:~/BaCon/bacon-3.8$ sudo make install
[sudo] password for jrs:
mkdir -p /usr/local/bin
mkdir -p /usr/local/share/applications
/usr/bin/install -c bacon.sh /usr/local/bin
/usr/bin/install -c build/bacon /usr/local/bin
/usr/bin/install -c build/bacongui-gtk /usr/local/bin
/usr/bin/install -c -m 644 bacongui-gtk.desktop /usr/local/share/applications
mkdir -p /usr/local/lib
/usr/bin/install -c -m 644 build/libbacon.a /usr/local/lib
/usr/bin/install -c -m 644 build-cpp/libbacon++.a /usr/local/lib
mkdir -p /usr/local/share/man/man1
/usr/bin/install -c -m 644 bacon.1 /usr/local/share/man/man1
mkdir -p /usr/local/share/pixmaps
/usr/bin/install -c -m 644 icons/BaCon.png /usr/local/share/pixmaps
/usr/bin/install -c -m 644 icons/BaCon24.png /usr/local/share/pixmaps
/usr/bin/install -c -m 644 icons/BaConEyes.png /usr/local/share/pixmaps
mkdir -p /usr/share/enscript/hl
/usr/bin/install -c -m 644 syntax/bacon.st /usr/share/enscript/hl
jrs@jrs-laptop:~/BaCon/bacon-3.8$

« Last Edit: December 05, 2018, 11:25:51 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: BaCon Forum
« Reply #5 on: December 06, 2018, 09:23:07 AM »
Those warnings are GTKSOURCEVIEW related.

You may have multiple versions, or your lib paths are screwy.

What do you see when you run: 

apt list --installed | grep gtksourceview

and:

ldconfig -p | grep gtksourceview

and for your 64bit (I'm assuming that's what you're running, if not change "m64" to "m32" below) lib paths:

gcc -m64 -Xlinker --verbose  2>/dev/null | grep SEARCH | sed 's/SEARCH_DIR("=\?\([^"]\+\)"); */\1\n/g'  | grep -vE '^$'


AIR.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: BaCon Forum
« Reply #6 on: December 06, 2018, 10:07:28 AM »
ldconfig -p | grep gtksourceview

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libgtksourceview-3.0-1/cosmic,now 3.24.9-1 amd64 [installed,automatic]
libgtksourceview-3.0-common/cosmic,cosmic,now 3.24.9-1 all [installed,automatic]

gcc -m64 -Xlinker --verbose  2>/dev/null | grep SEARCH | sed 's/SEARCH_DIR("=\?\([^"]\+\)"); */\1\n/g'  | grep -vE '^$'

/usr/local/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu64
/usr/local/lib64
/lib64
/usr/lib64
/usr/local/lib
/lib
/usr/lib
/usr/x86_64-linux-gnu/lib64
/usr/x86_64-linux-gnu/lib

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: BaCon Forum
« Reply #7 on: December 06, 2018, 10:15:19 AM »
May just be a missing syntax file then.  You can grab that under the "options" menu.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: BaCon Forum
« Reply #8 on: December 06, 2018, 10:35:32 AM »
Please excuse my ignorance but what do you mean?

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: BaCon Forum
« Reply #9 on: December 06, 2018, 03:37:32 PM »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: BaCon Forum
« Reply #10 on: December 06, 2018, 04:16:03 PM »
Thanks AIR I'll give that a try.

Quote
EDIT: fixed in the latest beta.

Apparently NOT.

Update

Same problem.  :-\

I don't normally use the GUI IDE with BaCon. I'm going to give the IUP example I have a try and see if the same problems occur.

« Last Edit: December 06, 2018, 04:36:06 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: BaCon Forum
« Reply #11 on: December 06, 2018, 05:30:16 PM »
Odd thing is that it worked "out of the box" in a VM, but on my laptop I had to pass it the -gtk3 switch ONCE and it was fine after that...

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: BaCon Forum
« Reply #12 on: December 06, 2018, 05:33:16 PM »
Thanks AIR!

That fixed the startup errors but I get the following on exit of the IDE.

(bacongui-gtk:4938): GtkSourceView-CRITICAL **: 17:32:04.181: gtk_source_style_scheme_get_id: assertion 'GTK_SOURCE_IS_STYLE_SCHEME (scheme)' failed


Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: BaCon Forum
« Reply #13 on: December 06, 2018, 05:35:15 PM »
Try launching:

bacongui-gtk -gtk3

Then, while in the ide, under the "options" menu select "update syntax file..." and when that's done, in the same "options" menu, click on "Select Theme" and choose any of the themes.

After this, when you relaunch, you should no longer see any of the gtksourceview warnings.  You will still see the message about not finding Gtk2, ignore it, since it will use Gtk3 which is the default in regular Ubuntu.


Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: BaCon Forum
« Reply #14 on: December 06, 2018, 05:41:42 PM »
If you were a BaCon support person, I would give you a A+.

Works great!