Re: [Vala] [Genie] multi-line structs



I can only think you are not using the right libvala (this is built when
you compile vala and contians the genie parser which valac uses)

I would recommend deinstalling vala  and just using the master version
to be sure

On Tue, 2010-01-05 at 23:13 -0500, Arc Riley wrote:
arc amun:~/work/libsoy$ rm -rf build
arc amun:~/work/libsoy$ python3 waf configure
Checking for program gcc,cc              : ok /usr/bin/gcc 
Checking for program cpp                 : ok /usr/bin/cpp 
Checking for program ar                  : ok /usr/bin/ar 
Checking for program ranlib              : ok /usr/bin/ranlib 
Checking for program g++,c++             : ok /usr/bin/g++ 
Checking for program valac               : ok /usr/local/bin/valac 
Checking for gthread-2.0                 : ok 
Checking for program version valac >= 0.1.6 : ok 0.7.10 
Checking for glib-2.0 >= 2.14.0             : ok 
Checking for gobject-2.0 >= 2.14.0          : ok 
Checking for gdk-2.0 >= 2.10.0              : ok 
Checking for bullet >= 2.75                 : ok 
'configure' finished successfully (1.177s)
arc amun:~/work/libsoy$ python3 waf build -v
Waf: Entering directory `/home/arc/work/libsoy/build'
[1/5] valac: src/windows.gs -> build/default/src/windows.c
build/default/src/soy.h build/default/src/soy.vapi
build/default/src/soy.deps
23:07:10 runner system command -> /usr/local/bin/valac -C --quiet
--thread --library soy --header default/src/soy.h
--basedir /home/arc/work/libsoy
-d /home/arc/work/libsoy/build/default/
--vapidir=/home/arc/work/libsoy/vapi
--vapidir=/home/arc/work/libsoy/build/default/vapi --pkg config --pkg
glib-2.0 --pkg gobject-2.0 --pkg gdk-2.0 --pkg
bullet ../src/windows.gs
src/windows.gs:36.1-36.7: error: syntax error, expected `=' but got
`tab indent' with previous end of line
Waf: Leaving directory `/home/arc/work/libsoy/build'
Build failed
 -> task failed (err #1): 
    {task: valac_task windows.gs ->
windows.c,soy.h,soy.vapi,soy.deps,soy.h}
arc amun:~/work/libsoy$ /usr/local/bin/valac --version
Vala 0.7.10
arc amun:~/work/libsoy$ /usr/bin/valac --version
Vala 0.7.9

I just did a git pull, built, and installed.  I did not previously
have /usr/local/bin/valac and was running the packaged 0.7.9 for
Ubuntu.

Is there a step I missed with git or building, perhaps?  It did show
many changes being pulled in regarding genie parsing.

On Tue, Jan 5, 2010 at 11:06 PM, Jamie McCracken
<jamie mccrack googlemail com> wrote:
        Are you sure you have git master? Did you remove previous
        versions of
        valac?
        
        I can compile that without any problems
        
        
        
        
        On Tue, 2010-01-05 at 22:51 -0500, Arc Riley wrote:
        > 35     var attrs = Gdk.WindowAttr () {
        > 36       title = self._title,
        > 37       width = 100, height = 100
        > 38     }
        >
        > src/windows.gs:36.1-36.7: error: syntax error, expected `='
        but got
        > `tab indent' with previous end of line
        >
        > This is with git master, works fine when lines 35-37 end in
        \ though
        >
        >
        >         I have now implemented the python way in master
        (stuff in
        >         parens and
        >         braces may straddle multiple lines) - please verify
        it works
        >         as you now
        >         expect
        >
        >         jamie
        >
        >
        >
        
        





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]