Re: [Vala] syntax error, expected get, set, or construct



Hi Evan,

thank you very much for helping. That works.

Greetings Sascha


On 15.04.2017 20:07, Evan Nemerson wrote:
On Sat, 2017-04-15 at 15:38 +0200, Sascha Manns wrote:
Hello list,

i prepared that class:
https://github.com/saigkill/gnome-publisher/blob/master/src/ui/build_
publication.vala

The compiler says to me:

sascha@linux-ktr9:~/Projects/gnome-publisher-tmp/src> make
  GEN      resources.c
git.mk: Generating .gitignore
make  all-am
make[1]: Verzeichnis „/home/sascha/Projects/gnome-publisher-tmp/src“
wird betreten
  VALAC    gnome_publisher_vala.stamp
ui/build_publication.vala:57.2-57.11: error: syntax error, expected
get,
set, or construct
    build_docx = chkDOCX.active;
    ^^^^^^^^^^

The functions are missing parenthesis.  For example,

    [GtkCallback]
    private void on_chkDOCX_toggled {
          build_docx = chkDOCX.active;
    }

Should be

    [GtkCallback]
    private void on_chkDOCX_toggled () {
          build_docx = chkDOCX.active;
    }

And the error above it gets me for each element in the class. But
this
class is build like the other classes (like
https://github.com/saigkill/gnome-publisher/blob/master/src/ui/revisi
on_update.vala).
On the other classes i haven't seen that issue.

Maybe anyone has an idea?

Greetings

Sascha

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list

-- 
Sascha Manns
Maifeldstraße 10
56727 Mayen

P: +49-2651-4014045
W: http://saigkill.tuxfamily.org


Attachment: signature.asc
Description: OpenPGP digital signature



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