Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Jul 2014, 12:14
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Vala and Genie programming
Post new topic   Reply to topic View previous topic :: View next topic
Page 6 of 35 [517 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 33, 34, 35 Next
Author Message
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 25 Mar 2009, 09:09    Post subject:  

Lobster,
for the hello-gtk.gs, do you have a carriage-return on the last line?

I just tested, running Intrepid Puppy alpha3, devx loaded, I copied the example hello-gtk from my web page, pasted it into a file, compiled it with valac, it works.

Hmm, I took the carriage-return off the last line, it still compiles.

I have copied the code you posted to this thread, that compiles too.

I'm using Vala 0.5.7.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 25 Mar 2009, 09:18    Post subject:  

Many thanks Barry,

I am awaiting a page on GTK on your Genie pages Smile
I have cautiously added Valide Shocked
and got a working hello world

There are good example GTK for Vala but not Genie on the Vala pages
Mark is already using Glade but I am still working up to crawl status

Quote:
Lobster,
for the hello-gtk.gs, do you have a carriage-return on the last line?


Yes tried all that but it just must be that!
thanks will try again . . .

edit:
no luck and leafpad is not saving - valide strikes again . . .
gonna try another computer . .

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
DMcCunney

Joined: 02 Feb 2009
Posts: 897

PostPosted: Wed 25 Mar 2009, 10:28    Post subject:  

Lobster wrote:
I instead installed medit

that seems OK and supports Vala - I have written to the developer about Genie support

AFAIK, Geany supports Vala.

File type support is defined in a file called filetypes.<name>, where <name> is the language name.

There is a filetypes.vala file in /usr/share/geany
______
Dennis
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Wed 25 Mar 2009, 11:10    Post subject:  

@ lobster

attached is the genie.lang from here:
http://bugzilla.gnome.org/show_bug.cgi?id=576141

if you're using my medit-package, extract it to

Code:
/usr/share/moo/language-specs


and there you are.

aragon
genie.lang_medit.tar.gz
Description 
gz

 Download 
Filename  genie.lang_medit.tar.gz 
Filesize  2.09 KB 
Downloaded  425 Time(s) 

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 25 Mar 2009, 13:15    Post subject:  

Thanks guys
Thanks aragon
how about a free movie . . . violence and stuff . . . Blank
http://www.webtvwire.com/blank-movie-director-foregoes-hollywood-for-p2p-movie-legally-available-on-bittorrent/

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
seeker

Joined: 26 Nov 2008
Posts: 89
Location: Indiana, USA

PostPosted: Thu 26 Mar 2009, 16:14    Post subject:  

Lobster,

I just tried to compile hello-gtk.gs with Genie and got the same error you had. I noticed the line 'add (button)' was indented with two tab characters so I replaced the tabs with 8 spaces. It didn't compile so I added a blank line , without any indentation, at the end of the code and then it compiled. Using Vala 0.5.7 and Puppy 4.1.2 frugal.

Seeker
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 27 Mar 2009, 05:25    Post subject:  

Thanks seeker Smile

that is good advice
(didn't seem to help)

The Valide editor seems to be the source of serious problems for me
- or maybe it is the required libraries for gtk compiling . . .
- it effects other editors and even Seamonkey, so that invoking save as crashes the program you are activating save as and sometimes even save from
this effects things too drastically to use it
and I must for now stick with Geany editor or Medit editor

I have noticed this on three pristine installs of Puppy

for now I will be using
    Puppy 4.12
    and the devxx
    vala-05.7.pet
    libgee-20081125-i486.pet
    medit-0.9.4.pet
    genie.lang_medit.tar.gz

Valide is however potentially an excellent IDE for Vala/Genie
so if anyone can replicate this behaviour and find out what and why
that would be great Wink

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 27 Mar 2009, 11:36    Post subject:  

Quote:
- it effects other editors and even Seamonkey, so that invoking save as crashes the program you are activating save as and sometimes even save from
this effects things too drastically to use it


Maybe I know the reason.
When you used the IDE, delete the file:
/root/.recently-used.xbel

It seems that Puppys programs use an older syntax in it, while new programs like Valide use a new syntax. It is a XML file, that you can look at in an editor.
It stores the "recently used" entries in the Gtk filedialog, so there is no problem to delete it.

Puppys libraries slowly start to get outdated, such issues might happen more often in future, using new programs.
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Mr. Maxwell


Joined: 30 Aug 2008
Posts: 215
Location: Nebraska, USA

PostPosted: Fri 27 Mar 2009, 23:00    Post subject:  

I have medit and the genie launguage specs package installed but how do I turn on the genie syntax highlighting?

EDIT:

Never mind, a couple reboots later it works.

_________________
Super amazing game!
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 27 Mar 2009, 23:53    Post subject:  

Great tip MU - makes sense - it has been difficult
but hey this is cutting edge . . . Smile

Quote:
Never mind, a couple reboots later it works.

. . . we await your first programming examples Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Mr. Maxwell


Joined: 30 Aug 2008
Posts: 215
Location: Nebraska, USA

PostPosted: Sat 28 Mar 2009, 09:49    Post subject:  

This should be an easy question, how do I use a window I made with Glade in Genie?

What about square roots and exponents?

_________________
Super amazing game!
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 28 Mar 2009, 10:09    Post subject:  

full example: glade window in Genie:
http://www.murga-linux.com/puppy/viewtopic.php?p=286241#286241

A simpler example I attached here:
http://www.murga-linux.com/puppy/viewtopic.php?t=39560&start=30
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Mr. Maxwell


Joined: 30 Aug 2008
Posts: 215
Location: Nebraska, USA

PostPosted: Sat 28 Mar 2009, 10:16    Post subject:  

Thanks I'll take a look at it.

But now when I try to compile my program I get this error message:

Code:
test.gs:5.22-5.36: error: The name `Gee' does not exist in the context of `main'
    var my_list = new list of int


My guess says that is caused by an error with Genie and Geelib. Any ideas on how to fix this?

_________________
Super amazing game!
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 28 Mar 2009, 10:42    Post subject:  

install:
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/libgee-0.1.5.pet

http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/libgee_DEV-0.1.5.pet

Then in the Valaide, go to the options, and add as library there:
gee-1.0

On my system, the ide crashes again, if I go to the options Sad
That worked right after I had installed it.
So I added with an editor:
Code:
    <pkg>gee-1.0</pkg>

to the file:
/root/valide/gee1/gee1.vide

If your project has a different name and location, use the .vide file of your project.

If someone compiles by hand, use such a command:
valac --pkg=gee-1.0 hello.gs
Barry explains it here:
http://puppylinux.com/genie/datatypes.htm
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Mr. Maxwell


Joined: 30 Aug 2008
Posts: 215
Location: Nebraska, USA

PostPosted: Sat 28 Mar 2009, 11:03    Post subject:  

Thanks! The "valac --pkg=gee-1.0 hello.gs" is what I needed. The IDE broke my puppy so I can't use it. Sad
_________________
Super amazing game!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 6 of 35 [517 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 33, 34, 35 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0844s ][ Queries: 12 (0.0073s) ][ GZIP on ]