Thank goodness there are smart people guiding the idiot cructaceans . . .MU wrote:Lobster, be certain to activate "view - bottom view".
That displays the internal console, where the messages from your program are printed.
That did it
Works fine
Code: Select all
GtkWidget *w;
w=glade_xml_get_widget(xml, "button1");
Gtk_button_set_label(GTK_BUTTON(w) , "testtext");
OK I am in a strange place (quite usual for me)I already have this "tunnel-view", so would not see requirements for beginners.
Code: Select all
cat v1.gs
Hey MarkI would suggest, that you contact the author:
with a link to this forumBarry Kauler (creator of Puppy Linux) is adopting Vala/Genie
http://puppylinux.com/genie/
and MU one of our top coders is exploring and adapting
Valide to run Genie
Is Genie support and colour syntax coding planned for future valide releases?
No problemMU wrote:Lob, first thanks for writing to the author.
So Genie support is coming.Hello,
I have planned Genie support for Val(a)IDE.
Currently I work on auto completion, after this I think I will work on
genie support.
not good.Second, I'm very surprised, about your issues.
I can not imagine, what causes this, as vala and valaide do not modify anything in the system.
The problem is MarkDo your problems remain after a reboot?
When exactly do they begin?
I would compile an example in console.
Then try the IDE.
What I have done so far is run 4.2 rc3 and not tweaked Deep Thought- run in Icewm etcWhat I will do is work without it and see what happens.
Code: Select all
// Infinite Monkey Theorem
// Lobster March 2009
// myLine = myLine.concat(myChars[GLib.Random.int_range(0,myChars.length)])
init
a:int
myChars:array of string = {" ", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
myText:string = "i"
myLine:string = ""
i:int = 0
while i<10
a = GLib.Random.int_range(0,27)
if myChars[a] is not "i" do continue
if myChars[a] is not "n" do continue
print("%d",a)
print(myChars[a])
if myChars[a] is "n" do break
Code: Select all
// myLine = myLine.concat(myChars[GLib.Random.int_range(0,myChars.length)])
Code: Select all
stdout.printf("test")
stdout.printf("test")
stdout.printf("ok\n")
stdout.flush()
Code: Select all
[indent=2]
init
//-- define the random characters --
myChars:array of string = {" ", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
//-- fill the line with a word --
var myLine = "testline"
print ("%s" , myLine)
//-- this is like the long line with print statements included
//-- calculate the allowed random numbers --
var thelength = myChars.length
//-- create a random number --
var randomvalue = Random.int_range(0,thelength)
//-- get a random character --
var randomcharacter = myChars[randomvalue]
print ("%s" , randomcharacter)
//-- add the character to the line --
var alltogether = myLine.concat(randomcharacter)
print ("%s" , alltogether)
Code: Select all
myLine:string = "testline"
Code: Select all
var myLine = "testline"
Code: Select all
var randomvalue = GLib.Random.int_range(0,thelength)
Code: Select all
var randomvalue = Random.int_range(0,thelength)
Code: Select all
[indent=2]
init
myChars:array of string = {" ", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
var a = 0
while true
a = Random.int_range(0,27)
//print("%d",a)
if myChars[a] is not "i" do
if myChars[a] is not "n" do
stdout.printf("%d%s ",a, myChars[a])
if myChars[a] is "n" do
//stdout.printf("%d%s ",a, myChars[a])
break
stdout.printf("\n")
stdout.flush()
Mark - many thanks for you helpI am not certain, what your program shall do, maybe this is working:
. . . anyway gonna look at your code now . . .The infinite monkey theorem states that a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type a given text, such as the complete works of William Shakespeare
Yes I have added the support for Genie: http://valaide.blogspot.com/2009/03/genie-support.htmlMU wrote:We should inform the developer of the IDE about this thread.
I think it might be pretty motivating to see people using it
Mark
I have fixed this bug in trunk.MU wrote:Start the IDE again, and open your project.
Now right-click main.vala, and choose "add".
There add "main.gs".
And delete "main.vala" with a rightclick.
It still is listed, as you just renamed it, but it still is shown, as the IDE uses a internal filelist, to manage projects.
At this point, the IDE crashes.
It still is somewhat buggy
Code: Select all
** (valide:5873): DEBUG: Couldn't open this document
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
0xb7d14bd4 in gtk_tree_model_get_iter () from /usr/lib/libgtk-x11-2.0.so.0
Program received signal SIGSEGV, Segmentation fault.
Code: Select all
(gdb) backtrace
#0 0xb7d14bd4 in gtk_tree_model_get_iter () from /usr/lib/libgtk-x11-2.0.so.0
#1 0xb7d14c39 in gtk_tree_row_reference_new_proxy ()
from /usr/lib/libgtk-x11-2.0.so.0
#2 0xb7d14db4 in gtk_tree_row_reference_new ()
from /usr/lib/libgtk-x11-2.0.so.0
#3 0xb7c01e62 in gtk_combo_box_set_active_internal ()
from /usr/lib/libgtk-x11-2.0.so.0
#4 0xb7c02286 in gtk_combo_box_set_active () from /usr/lib/libgtk-x11-2.0.so.0
#5 0xb7806da9 in IA__g_object_set_property (object=0x82e0020,
property_name=0x82db890 "active", value=0x82ded14) at gobject.c:938
#6 0xb7d4dd00 in gtk_widget_buildable_set_buildable_property ()
from /usr/lib/libgtk-x11-2.0.so.0
#7 0xb7be17a5 in _gtk_builder_construct () from /usr/lib/libgtk-x11-2.0.so.0
#8 0xb7be208b in builder_construct () from /usr/lib/libgtk-x11-2.0.so.0
#9 0xb7be34be in start_element () from /usr/lib/libgtk-x11-2.0.so.0
#10 0xb7ecb075 in g_markup_parse_context_parse ()
from /usr/lib/libglib-2.0.so.0
#11 0xb7be1efb in _gtk_builder_parser_parse_buffer ()
from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb7be067c in gtk_builder_add_from_string ()
from /usr/lib/libgtk-x11-2.0.so.0
#13 0xb7fadb73 in ?? () from /usr/lib/libvalide-0.0.so
#14 0x082819b8 in ?? ()
---Type <return> to continue, or q <return> to quit---
#15 0xb7fc9e44 in ?? () from /usr/lib/libvalide-0.0.so
#16 0x00003341 in ?? ()
#17 0xbf8e8ac0 in ?? ()
#18 0x00000000 in ?? ()
Code: Select all
<property name="active">0</property>
Code: Select all
get_combobox(get_widget("combobox1")).set_active(0)