What steps will reproduce the problem? 1. bzr branch lp:synapse-project 2. open some .vala file into src/ folder with gedit from terminal 3. lots of error and no autocomplete
What is the expected output? What do you see instead? I expect to have autocomplete working.
What version of the product are you using? On what operating system? Lastest checked out from gitorious.
Please provide any additional information below. First of all, there is a problem in the vbfautotools.vala around line 206: The regexp(s) should be: //Extract AC_CONFIG_FILES reg = new GLib.Regex ("AC_CONFIG_FILES\(\[([^\]\)])\]\)", RegexCompileFlags.MULTILINE); bool res = reg.match (buffer, RegexMatchFlags.NEWLINE_CR, out match); if (!res) { reg = new GLib.Regex ("AC_OUTPUT\(\[([^\]\)])\]\)", RegexCompileFlags.MULTILINE); res = reg.match (buffer, RegexMatchFlags.NEWLINE_CR, out match); }
Also if you look at synapse's src/Makefile.am, you can see at the first line an "include $(top_src)/Makefile.common", this will throw an error in process_include_directives (..), that error should be catched inside process_include_directives, otherwise it'll crash all the refresh(..)[line 84] internal loop.
There's also a bug when fetching packages [line 160]: if the configure.ac has multilne packages you should remove tokens that contains only a "\". So I added a: if (pkg == "\") {idx++; continue;} Inside the loop at line 164.
If you do those things, vbfautotools is working correctly, but autocomplete is not working: (there are a lot of) ** Message: symbolresolver.vala:54: file /home/alby/dev/synapse-project/src/tile-view/tile.vala - can't resolve using directive: Gtk
I don't know how symbolresolver is working, so I can't help at the moment.
Thank you.
Comment #1
Posted on Mar 13, 2011 by Quick OxWhat about opening the project with the menu' File -> open project?
You have just to select the folder containing the configure.ac script from the dialog.
If you still want to open source files directly and automatically open the whole project just go in the plugin option and enable 'project automatically find root folder' options.
With your correction and one of this step vala toys should work as expected.
Thanks for your suggestions I will review and include them in the next release. By the way do you mind attach here a patch done with git diff ?
Comment #2
Posted on Mar 13, 2011 by Massive GiraffeAttached the patch :)
I've tried now the open project, and it (almost) works: It doesn't show sources in (synapse's) src/.vala, and it shows files under src//*.vala, I don't know why...
- patch.diff 1.73KB
Comment #3
Posted on Mar 13, 2011 by Quick OxThanks for the patch, I'll review ASAP!
I didn't understand the following:
It doesn't show sources in (synapse's) src/.vala, and it shows files under src//*.vala, I don't know why...
The project view is not a filesystem kind of view so you should see something like:
Target Name 1 (exec o lib) +-- Source Name 1 +-- Source Name 2
Or are you saying the some source file are not visible at all in that view?
Comment #4
Posted on Mar 13, 2011 by Massive GiraffeSynapse tree is structured like: src. ...core ........vala ...plugins ........vala ...main.vala ...ui-*.vala
Now core and plugins results in 2 intermediate library that are used by main.vala and ui-.vala When i open the project i can't see main.vala and ui-.vala Why? Is it my fault?
Comment #5
Posted on Mar 13, 2011 by Massive GiraffeI mean : there's no exec target..
Comment #6
Posted on Mar 14, 2011 by Massive GiraffeOk found the bug: sometimes only "_VALASOURCES" is present and not "_SOURCES".
Attached updated patch =)
- patch-updated.diff 3.33KB
Comment #7
Posted on Mar 14, 2011 by Quick OxI just committed a fix based on your patch, but now I don't have the time to test with your project.
So can you give me some feedback if it works for you too?
P.S. If you want you can email me your real name for the THANKS file or if you prefere I can use your nick. I'm fine with either :)
Comment #8
Posted on Mar 14, 2011 by Massive GiraffeI can confirm that now it works perfectly!
I'll mail you in a few minutes with my real name! Thank you for your work, vtg helps me a lot! Also I have Vala 0.11.6 so I can confirm that it works with 0.11.6!
Comment #9
Posted on Jul 27, 2011 by Quick Ox(No comment was entered for this change.)
Comment #10
Posted on Jul 27, 2011 by Quick Ox(No comment was entered for this change.)
Status: Released
Labels:
Type-Defect
Priority-Medium
Milestone-Release0.12.0