The time now is Sun 19 May 2013, 08:49
All times are UTC - 4 |
| Author |
Message |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 16 Mar 2009, 04:36 Post subject:
|
|
Will try and bear that in mind.
I quite often miss posts, lose threads (and my mind on special occasions) etc.
Shadow my programming buddy was very impressed with Genie
(as usual he had mastered and gone beyond what I could do in aprox 10 minutes)
I too like it and want to get the IDE working or linking it to the Glade system in the devxx
If we adopt what is in effect 3 languages (the Python like Genie, the C++ like Vala and of course C) all interlinked with a potential IDE and mashable
Add the odd bit of Bash script, we really have something with vast potential.
The generation of C code in particular makes us more processor independent as the ARM chip is likely to increase in importance as phone and netbooks begin to merge . . .
(am I ranting again)
Anyway what I would like to suggest is (this is up to Barry too)
we create the future tutorials here
http://puppylinux.org/ (oh boy that is down - but the wiki section)
or on the old wiki
or even a page here:
http://tmxxine.com/wik/wikka.php?wakka=LinuxTmxxine10
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
MUguest
Joined: 09 Dec 2006 Posts: 73
|
Posted: Mon 16 Mar 2009, 06:42 Post subject:
|
|
Here is a new PET of the Valaide.
It includes in an own subfolder /usr/local/glib2.18/ some newer systemlibraries.
They do NOT replace Puppys files, so there is no danger to corrupt something.
These files are only needed for the IDE, not for Vala itself.
http://dotpups.de/puppy4/dotpups/Programming/Vala/
Problem description:
The IDE depends on libgio.so.
But this was not built for Puppys Glib 2.14.2, but is part of newer versions of Glib.
So despite the IDE starts with libgio.so from Muggins, it crashes soon, as Puppys glib is too old.
So I now added a newer glib and Gtk (only what was needed, not the full stuff).
As Puppy could break compatibility with other programs, if we would replace existing files, I include them from the seperate folder.
They will be used automatically by "validestart" or by running the IDE from the menu.
Note: the IDE does not have a grafical designer.
To use Glade, we need to create an example project, that is able to use Glade XML files.
It seems that the IDE itself was created using Glade, so it should be not too difficult.
I will have a look when I find some time.
Mark
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 16 Mar 2009, 07:34 Post subject:
|
|
Valide is working fine in 4.2 rc3
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 16 Mar 2009, 08:37 Post subject:
|
|
just found out that the official Genie site is editable
Just register . . .
http://live.gnome.org/Genie
What requirements are needed to make Geany (our text editor)
have support for Genie? (I should know this)
_________________ Puppy WIKI
Last edited by Lobster on Mon 16 Mar 2009, 11:31; edited 1 time in total
|
|
Back to top
|
|
 |
MUguest
Joined: 09 Dec 2006 Posts: 73
|
Posted: Mon 16 Mar 2009, 09:01 Post subject:
|
|
I attach a Glade example.
I created it from:
http://live.gnome.org/Vala/GladeSample
I had to add some changes, to be able to use it in the IDE.
I attach a screenshot, that makes it easier to understand the following text.
Extract the attached archive to your valide project-folder.
Then set up the IDE preferences, so that you see the filebrowser in the left panel.
(you must click on the small folder there, to see it).
Also set up the IDE, to see the bottom area, where you get info about compilation, and see output from your testprograms.
Doubleclick main.vala, to open it in the inbuilt editor.
Also doubleclick gladesample.glade, to see it.
In addition, open gladesample.glade in Glade.
To be able to compile, I had to modifiy Glade1/Glade1.vide.
I added these lines:
| Code: | <pkg>libglade-2.0</pkg>
<pkg>gmodule</pkg> |
This simulates the compileroptions from the original example.
I also created a new project in Glade.
A window with two buttons.
I had to set the window to "visible".
And I had to set three custom signalhandlers, when you click on the buttons, or close the window.
When you compile and execute the example, you will not see anything in the area at bottom of the IDE, until you close the examplewindow.
Then the messages appear, that show, which button was clicked.
Mark
| Description |
|

Download |
| Filename |
Glade1-03.16.2009-13.44.28.tar.gz |
| Filesize |
7.1 KB |
| Downloaded |
850 Time(s) |
| Description |
|

Download |
| Filename |
glade1.jpg |
| Filesize |
137.77 KB |
| Downloaded |
940 Time(s) |
|
|
Back to top
|
|
 |
DMcCunney
Joined: 02 Feb 2009 Posts: 894
|
Posted: Mon 16 Mar 2009, 11:15 Post subject:
|
|
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 16 Mar 2009, 11:29 Post subject:
|
|
I uploaded a slightly hacked IDE.
http://dotpups.de/puppy4/dotpups/Programming/Vala/Genie-test/
It can compile the Genie *.gs files.
As by default, it creates *.vala files, you must create a empty .gs by hand, and then add it to an existing project.
You then can delete the generated main.vala.
I also uploaded the file I patched, project.vala.
Find the two patches by searching for "//MU".
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 16 Mar 2009, 11:36 Post subject:
|
|
You just did - many thanks.
Enrico, the Geany developer (thanks for spelling info my spelling is
atros . . . atrocu . . . bad!) is on this forum.
So hopefully he will offer support if he hears about Genie/Vala . . .
Hey Mark will try your modified IDE next
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 16 Mar 2009, 11:55 Post subject:
|
|
Mark I installed it once and could not get it working (Valide loaded but I was unable to compile - due to not following your instructions fully)
Tried again and got this even after deleting and uninstalling old version . . . so will have to reinstall - which might take a while . . .
| Quote: | There was an error expanding package valide-0.4-1-i686-Genie-4.tar.gz.
Either the file is corrupted, or has not expanded into its own directory with
name of valide-0.4-1-i686-Genie-4/ (which is how most packages expand).
You will have to go into /root/.packages/ directory and manually clean it up.
This script will now exit... |
_________________ Puppy WIKI
Last edited by Lobster on Sat 02 May 2009, 09:55; edited 1 time in total
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 16 Mar 2009, 12:01 Post subject:
|
|
might be a broken download.
I just downloaded and installed it at home in NYP, this works.
So the file is not corrupt.
Please try to download again.
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 16 Mar 2009, 12:17 Post subject:
|
|
Like this you quickly can test it:
create a new Project.
I created one called "Genie", Gtk.
So I have /root/valide/Genie/
When it finished, exit the IDE.
Rename with your filemanager:
/root/valide/Genie/main.vala
to:
/root/valide/Genie/main.gs
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
But if you open again now your project, you can enter Genie code in main.gs, and "save - compile - execute".
This example works:
| Code: | [indent=2]
init
var a = "test"
print("%s" , a)
|
Version 0.4 was released on march, 10th, so I hope that soon bugfixes will be added.
We should inform the developer of the IDE about this thread.
I think it might be pretty motivating to see people using it
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
DMcCunney
Joined: 02 Feb 2009 Posts: 894
|
Posted: Mon 16 Mar 2009, 14:10 Post subject:
|
|
| Lobster wrote: |
You just did - many thanks.
Enrico, the Geany developer (thanks for spelling info my spelling is
atros . . . atrocu . . . bad!) is on this forum.
So hopefully he will offer support if he hears about Genie/Vala . . . |
Er. you're asking him to create Scintilla lexers for Genie/Vala for use in Geany?
Generally speaking, authors of editors based on Scintilla don't write lexers for specific languages. Users who program in those languages and need support for them do. The user understands the syntax and structure of the language, since they code in it. The author of the editor may not have heard of the language.
If you need lexers for Geany and Vala, that might be something you should take a crack at doing.
A SciTE variant called SciTE-st includes a Vala lexer, but it's written in Lua, and can't just be dropped into Geany. (SciTE-st includes Lua as an embedded script language.)
Go here: http://caladbolg.net/scite_st.php
Versions for Windows and Linux are available.
______
Dennis
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 16 Mar 2009, 14:52 Post subject:
|
|
| Quote: | | This example works: |
Hi Mark
Managed to get it working - almost . . .
Followed everything as you suggested but that compiling part does not seem to be doing anything - sometimes I get an error message that the program is already running but I see nothing.
left this out and tried it with tabs - no luck
.
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 16 Mar 2009, 16:07 Post subject:
|
|
Lobster, be certain to activate "view - bottom view".
That displays the internal console, where the messages from your program are printed.
Sidenote:
the forum is extremely slow, so I also will be in the #puppylinux IRC chat, maybe we can find a solution there quicker than here
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 16 Mar 2009, 16:36 Post subject:
|
|
there also should be created a executable by compiling your application.
And be sure, to save, before you compile (other IDEs like Eclipse remind you, if the file changes, Valide does not, so you must remember to save. I forget this sometimes).
You also can test/use the generated executable outside of the IDE, like this (maybe the path is different for you, if you saved to a different folder):
cd /root/valide/Genie
./Genie
Or:
/root/valide/Genie/Genie
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
|
|
|
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
|