YuanhuiQu / ibus-cloud-pinyin

Automatically exported from code.google.com/p/ibus-cloud-pinyin
GNU General Public License v3.0
1 stars 1 forks source link

编译失败,The name `values' does not exist in the context of `Gee.HashMap<string,icp.LuaBinding.CloudEngine>' #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
依赖都应该OK了,valac的版本试过0.8.0和0.9.5,都不行。。。

具体的错误信息如下:
:: Generating C files for ibus-engine-cloud-pinyin ...
valac `cat valac-flags.txt` --pkg posix --thread --enable-checking --vapidir=. 
--disable-warnings  -C main.vala dbus-binding.vala pinyin-utils.vala 
frontend-utils.vala config.vala database.vala lua-binding.vala ibus-engine.vala
lua-binding.vala:39.38-39.51: error: The name `values' does not exist in the 
context of `Gee.HashMap<string,icp.LuaBinding.CloudEngine>'
      foreach (CloudEngine engine in engines.values) {
                                     ^^^^^^^^^^^^^^
lua-binding.vala:52.25-52.31: error: 
`Gee.HashMap<string,icp.LuaBinding.CloudEngine>' does not have an `iterator' 
method
      foreach (var i in engines) {
                        ^^^^^^^
lua-binding.vala:61.25-61.31: error: 
`Gee.HashMap<string,icp.LuaBinding.CloudEngine>' does not have an `iterator' 
method
      foreach (var i in engines) {
                        ^^^^^^^
lua-binding.vala:220.40-220.64: error: The name `values' does not exist in the 
context of `Gee.HashMap<string,icp.LuaBinding.CloudEngine>'
        foreach (CloudEngine engine in LuaBinding.engines.values) {
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^
ibus-engine.vala:317.11-317.41: error: The name `drain_head' does not exist in 
the context of 
`Gee.LinkedList<icp.IBusBinding.CloudPinyinEngine.PendingSegment>'
          pending_segment_list.drain_head(head_segs, committed_item_count);
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pinyin-utils.vala:821.29-821.41: error: `Gee.HashMap<string,int>' does not have 
an `iterator' method
      foreach (var entry in consonant_ids)
                            ^^^^^^^^^^^^^
pinyin-utils.vala:824.29-824.37: error: `Gee.HashMap<string,int>' does not have 
an `iterator' method
      foreach (var entry in vowel_ids)
                            ^^^^^^^^^
Compilation failed: 7 error(s), 0 warning(s)

Original issue reported on code.google.com by chenbin...@gmail.com on 13 Oct 2010 at 9:57

GoogleCodeExporter commented 8 years ago
valac 0.11.2-0ubuntu2 
同样问题

Original comment by felixonm...@gmail.com on 15 Nov 2010 at 8:33

GoogleCodeExporter commented 8 years ago
我这边是
lua: 5.1.4
glib-2.0: 2.26.1
gthread-2.0: 2.26.1
gdk-2.0: 2.22.1
gtk+-2.0: 2.22.1
ibus-1.0: 1.3.8
atk: 1.32.0
gee-1.0: 0.6.0
dbus-glib-1: 0.92
libnotify: 0.5.2
sqlite3: 3.7.3
valac: 0.10.1

还没有遇到问题,你们用的 gee 是什么版本的?

Original comment by arcpp.zju@gmail.com on 23 Nov 2010 at 6:21

GoogleCodeExporter commented 8 years ago
ubuntu natty 11.04:
liblua5.1-0-dev = 5.1.4-5
libglib2.0-dev = 2.27.4-0ubuntu1
libgtk2.0-dev = 2.23.2-0ubuntu3
libibus-dev = 1.3.9-1phuang1~maverick1
libatk1.0-dev = 1.32.0-1
libgee-dev = 0.6.0-1ubuntu2
libdbus-glib-1-dev = 0.88-2
libnotify-dev = 0.5.0-2ubuntu1
libsqlite3-dev = 3.7.4-1
valac = 0.11.2-0ubuntu2

Downgraded valac to 0.10.0-0ubuntu3(maverick) cannot solve the problem.

Original comment by felixonm...@gmail.com on 16 Dec 2010 at 3:03