Merge lp:~monkey-libre/valide/vala-0.11.5 into lp:valide

Proposed by Monkey
Status: Merged
Merged at revision: 578
Proposed branch: lp:~monkey-libre/valide/vala-0.11.5
Merge into: lp:valide
Diff against target: 132 lines (+23/-21)
4 files modified
libvalide/utils.vala (+13/-12)
plugins/symbol/symbol.vala (+5/-4)
plugins/waf/waf-executable.vala (+4/-4)
wscript (+1/-1)
To merge this branch: bzr merge lp:~monkey-libre/valide/vala-0.11.5
Reviewer Review Type Date Requested Status
Nicolas Joseph Approve
Review via email: mp+47124@code.launchpad.net

Commit message

Update and set to vala 0.11.5

Description of the change

Review carefully the changes.
Thanks in advance.

To post a comment you must log in.
Revision history for this message
Monkey (monkey-libre) wrote :
Download full text (4.7 KiB)

Sorry but I can't update symbol file :( (I can compile but valide when tries to gets symbols shows a warning window

Backtrace:

#0 0x0012d422 in __kernel_vsyscall ()
#1 0x00fceb86 in poll () from /lib/tls/i686/cmov/libc.so.6
#2 0x00b434eb in g_poll () from /lib/libglib-2.0.so.0
#3 0x00b360ac in ?? () from /lib/libglib-2.0.so.0
#4 0x00b36817 in g_main_loop_run () from /lib/libglib-2.0.so.0
#5 0x0032eabf in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
#6 0x001c8615 in valide_window_message (self=0x80bf088, log_domain=0x0,
    log_levels=G_LOG_LEVEL_CRITICAL,
    message=0x81a0040 "symbol_get_full_name: assertion `self != NULL' failed")
    at debug/libvalide/window.c:507
#7 0x001cd97b in _valide_window_message_glog_func (log_domain=0x0,
    log_levels=G_LOG_LEVEL_CRITICAL,
    message=0x81a0040 "symbol_get_full_name: assertion `self != NULL' failed",
    self=0x80bf088) at debug/libvalide/window.c:2068
#8 0x00b3cbea in g_logv () from /lib/libglib-2.0.so.0
#9 0x00b3d056 in g_log () from /lib/libglib-2.0.so.0
#10 0x00b3d2bb in g_return_if_fail_warning () from /lib/libglib-2.0.so.0
#11 0x0166201e in symbol_get_full_name (self=0x0)
    at debug/plugins/symbol/symbol.c:291
#12 0x01663e36 in symbol_browser_parse_line (self=0x8219878,
    line=0x849bd48 "Valide.Application\t/home/monkey/Escritorio/valide/src/main.vala\t40;\"\tkind:class\tline:40\tlanguage:Vala\tinherits:Object\taccess:public\timplementation:") at debug/plugins/symbol/symbol.c:907
#13 0x01664652 in symbol_browser_exec_ctags (self=0x8219878,
    filename=0x847c380 "/home/monkey/Escritorio/valide/src/main.vala",
    error=0xbfffe5c4) at debug/plugins/symbol/symbol.c:1093
#14 0x01665832 in symbol_browser_populate_symbols_asc (self=0x8219878)
    at debug/plugins/symbol/symbol.c:1427
#15 0x01665d95 in _symbol_browser_populate_symbols_asc_gsource_func (
    self=0x8219878) at debug/plugins/symbol/symbol.c:1528
#16 0x00b30661 in ?? () from /lib/libglib-2.0.so.0
#17 0x00b325e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#18 0x00b362d8 in ?? () from /lib/libglib-2.0.so.0
#19 0x00b364b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#20 0x003b5224 in gtk_main_iteration () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x00189d27 in valide_utils_process_gtk_events ()
    at debug/libvalide/utils.c:1028
#22 0x0018dcd7 in valide_document_manager_create (self=0x811d050,
    filename=0x8189258 "/home/monkey/Escritorio/valide/src/main.vala",
    error=0xbfffe894) at debug/libvalide/document-manager.c:1020
#23 0x0019ef18 in valide_project_open_file (self=0x82dd100,
    filename=0x84290c0 "/home/monkey/Escritorio/valide/src/main.vala",
    error=0xbfffe914) at debug/libvalide/project.c:1608
#24 0x001be92c in valide_project_manager_file_select (self=0x81b8040,
    sender=0x8215208, path=0x81a1440, column=0x818a960)
    at debug/libvalide/project-manager.c:921
#25 0x001c4133 in _valide_project_manager_file_select_gtk_tree_view_row_activated (_sender=0x8215208, path=0x81a1440, column=0x818a960, self=0x81b8040)
    at debug/libvalide/project-manager.c:2656
#26 0x003b96df in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00aaf252 in g_closure_invoke () from /usr...

Read more...

lp:~monkey-libre/valide/vala-0.11.5 updated
578. By Monkey

Update and set vala 0.11.5

Revision history for this message
Monkey (monkey-libre) wrote :

I´ve finished and valide seems works fine now. But test it carefully.

Revision history for this message
Nicolas Joseph (gege2061) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libvalide/utils.vala'
2--- libvalide/utils.vala 2011-01-19 18:07:06 +0000
3+++ libvalide/utils.vala 2011-01-22 12:04:09 +0000
4@@ -125,10 +125,11 @@
5 */
6 public static string get_extension (string filename)
7 {
8- string ext = filename.rchr (-1, '.');
9- if (ext != null)
10+ string ext = null;
11+ int index_char = filename.last_index_of_char ('.',-1);
12+ if (index_char != -1)
13 {
14- ext = ext.substring (1).down ();
15+ ext = ext.substring (index_char).down ();
16 }
17 return ext;
18 }
19@@ -146,10 +147,10 @@
20
21 if (filename != "." && filename != "..")
22 {
23- unowned string ext;
24+ int ext;
25
26- ext = filename.rchr (-1, '.');
27- if (ext != null)
28+ ext = filename.last_index_of_char ('.',-1);
29+ if (ext != -1)
30 {
31 long pos;
32
33@@ -479,10 +480,10 @@
34 {
35 int offset;
36 bool ret = false;
37- unowned string pos;
38+ int pos;
39
40- pos = s.rchr (-1, sep);
41- if (pos != null)
42+ pos = s.last_index_of_char (sep);
43+ if (pos != -1)
44 {
45 offset = (int)s.char_count ((ssize_t)pos);
46 s = s.substring (offset);
47@@ -503,10 +504,10 @@
48 {
49 int offset;
50 string ret;
51- unowned string pos;
52+ int pos;
53
54- pos = s.rchr (-1, sep);
55- if (pos != null)
56+ pos = s.last_index_of_char (sep, -1);
57+ if (pos != -1)
58 {
59 offset = (int)s.char_count ((ssize_t)pos);
60 offset++;
61
62=== modified file 'plugins/symbol/symbol.vala'
63--- plugins/symbol/symbol.vala 2010-09-19 02:12:01 +0000
64+++ plugins/symbol/symbol.vala 2011-01-22 12:04:09 +0000
65@@ -233,17 +233,18 @@
66 /* name file ex_cmd;" kind:function line:x language:x signature:x */
67 /* name file ex_cmd;" kind:variable line:x language:x */
68
69- string[] fields;
70+ string[] fields = null;
71 Symbol symbol = null;
72-
73+ int name_ext;
74 fields = line.split ("\t", 0);
75 if (fields[0] != null)
76 {
77 symbol = new Symbol ();
78 symbol.full_name = fields[0];
79- if (symbol.full_name.rchr (-1, '.') != null)
80+ name_ext = symbol.full_name.last_index_of_char ('.',-1);
81+ if (name_ext != -1)
82 {
83- symbol.name = symbol.full_name.rchr (-1, '.').offset (1);
84+ symbol.name = symbol.full_name.substring (name_ext);
85 }
86 else
87 {
88
89=== modified file 'plugins/waf/waf-executable.vala'
90--- plugins/waf/waf-executable.vala 2010-09-03 21:40:48 +0000
91+++ plugins/waf/waf-executable.vala 2011-01-22 12:04:09 +0000
92@@ -86,11 +86,11 @@
93 {
94 Gdk.Color.parse (Utils.Color.INFO, out color);
95 }
96- else if (line.str ("warning:") != null)
97+ else if (line.index_of ("warning:") != 0)
98 {
99 Gdk.Color.parse (Utils.Color.WARNING, out color);
100 }
101- else if (line.str ("error:") != null)
102+ else if (line.index_of ("error:") != 0)
103 {
104 Gdk.Color.parse (Utils.Color.ERROR, out color);
105 }
106@@ -112,11 +112,11 @@
107 switch (this.step)
108 {
109 case BuildingStep.CONFIGURE:
110- if (line.str (": ok") != null || line.str (": yes") != null)
111+ if (line.index_of (": ok") != 0 || line.index_of (": yes") != 0)
112 {
113 Gdk.Color.parse (Utils.Color.SUCCESS, out color);
114 }
115- else if (line.str (": fail") != null)
116+ else if (line.index_of (": fail") != 0)
117 {
118 Gdk.Color.parse (Utils.Color.WARNING, out color);
119 }
120
121=== modified file 'wscript'
122--- wscript 2011-01-19 18:12:19 +0000
123+++ wscript 2011-01-22 12:04:09 +0000
124@@ -50,7 +50,7 @@
125 conf.check_cfg (package='gtk+-2.0', uselib_store='GTK+', atleast_version='2.18.0', args='--cflags --libs', mandatory=True)
126 conf.check_cfg (package='libxml-2.0', uselib_store='LIBXML', atleast_version='2.5.0', args='--cflags --libs', mandatory=True)
127 conf.check_cfg (package='gtksourceview-2.0', uselib_store='GTKSOURCEVIEW', atleast_version='2.10.0', args='--cflags --libs', mandatory=True)
128- conf.check_cfg (package='libvala-0.12', uselib_store='VALA', atleast_version='0.11.4', args='--cflags --libs', mandatory=True)
129+ conf.check_cfg (package='libvala-0.12', uselib_store='VALA', atleast_version='0.11.5', args='--cflags --libs', mandatory=True)
130 conf.check_cfg (package='gdl-1.0', uselib_store='GDL', atleast_version='2.28', args='--cflags --libs', mandatory=True)
131 if not Options.options.without_libunique:
132 conf.check_cfg (package='unique-1.0', uselib_store='UNIQUE', atleast_version='1.0.0', args='--cflags --libs', mandatory=False)

Subscribers

People subscribed via source and target branches

to all changes: