adireddy / eclihx

Automatically exported from code.google.com/p/eclihx
0 stars 0 forks source link

intellisense doesn't support -lib in hxml #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install polygonal
2. insert -lib polygonal in hxml
3. try using the classes from polygonal, only the import show proper 
intellisense. 

What is the expected output? What do you see instead?
polygonal's (libraies) classes/methods to show up in the intellisense.

What version of the product are you using? On what operating system?
eclihx 0.4.0, haxe 2.07 (not nightly), Eclipse Helios, Ubuntu 10.10

Please provide any additional information below.

Original issue reported on code.google.com by aau...@gmail.com on 26 Mar 2011 at 7:17

GoogleCodeExporter commented 9 years ago
Could you please provide a short example of code where you expect intellisence 
to work?

Original comment by goodwi...@gmail.com on 27 Mar 2011 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by goodwi...@gmail.com on 27 Mar 2011 at 6:31

GoogleCodeExporter commented 9 years ago
Hi, I left my code at home, but this should work out as an example. From 
polygonal use the LinkedStack class, assuming the proper import is already 
written:

var foo:_ <- Press ctrl+space, should show LinkedStack class, but I can't find 
it in eclihx

foo = new LinkedStack<Int>();
foo._ <- should show the method list, but it didn't

I'll try again when I get home, but this should do I guess
Thanks for the response.

Original comment by aau...@gmail.com on 28 Mar 2011 at 4:34

GoogleCodeExporter commented 9 years ago
You first point is duplicate for Issue 60. Eclihx currently isn't able to look 
for imports properly and do the strict redirecting for haxe "--display" results.

The second thing is a little more tricky, because I can't reproduce in my 
simple test file. Please open Window->Show View->General->Error Log and see the 
the number of messages about content assist execution right after typing '.' 
char. Is there expected haxe compiler call exist? Also the problem could be in 
error positioning when you use non-english comments - see the other known 
issue: http://code.google.com/p/eclihx/issues/detail?id=76

Thank you for reporting, hope I'll be able to resolve your issues soon.

Original comment by goodwi...@gmail.com on 28 Mar 2011 at 9:02

GoogleCodeExporter commented 9 years ago
Hi thanks for the feedback, about the duplicate issue, I'm sorry I didn't
know :D.
About the 2nd issue, here I give you the hxml, the source and the log file,
hope this helps, what I expect is eclihx to list methods of the
LinkedStack<T>

hxml:
###################################
#build resources
###################################
#-cmd cd res
#-cmd hxswfml xml2lib res.xml res.swf
#-cmd cd ..

###################################
#build application
###################################
-lib polygonal
-cp src
-main Main
-swf-lib ../res/res.swf
-swf9 out/HelloWorld.swf
-swf-header 400:300:30:888888
-debug

Main.hx:
package ;
import flash.display.Bitmap;
import flash.display.BitmapData;

import de.polygonal.ds.LinkedStack;

class Main
{
    public static function main()
    {
        trace("Hello World !");
        var smilies:Smilies = new Smilies(0, 0);
        flash.Lib.current.stage.addChild(new Bitmap(smilies));

        var q = new LinkedStack<Int>();
        q.push(10);
        q.push(30);
        q.push(40);
        q.push(20);
        q.// <- ctrl+space here
        for (d in q)
        {
            trace(d);
        }
    }
}

.log:

!ENTRY eclihx.core 1 0 2011-03-29 08:29:43.820
!MESSAGE Use project tips configuration

!ENTRY eclihx.core 1 0 2011-03-29 08:29:43.821
!MESSAGE Eclihx ExecuteProcess. WorkingDirectory:
"/home/aaulia/Development/Workspaces/HelloWorld". CommandLine:
"/usr/bin/haxe -main Main -lib polygonal -cp src -debug --display
/home/aaulia/Development/Workspaces/HelloWorld/src/Main.hx@381 --no-output
-swf9 out/HelloWorld.swf -swf-header 400:300:30:888888 -swf-lib
../res/res.swf ".

!ENTRY eclihx.core 1 0 2011-03-29 08:29:43.955
!MESSAGE Haxe Tips Output: Error : get_full_path

!ENTRY eclihx.core 1 0 2011-03-29 08:29:43.955
!MESSAGE Use standard tips configuration

!ENTRY eclihx.core 1 0 2011-03-29 08:29:43.956
!MESSAGE Eclihx ExecuteProcess. WorkingDirectory:
"/home/aaulia/Development/Workspaces/HelloWorld". CommandLine:
"/usr/bin/haxe -cp /home/aaulia/Development/Workspaces/HelloWorld/src
--display 
/home/aaulia/Development/Workspaces/HelloWorld/src/Main.hx@381--no-output
Main ".

!ENTRY eclihx.core 1 0 2011-03-29 08:29:43.963
!MESSAGE Haxe Tips Output:
/home/aaulia/Development/Workspaces/HelloWorld/src/Main.hx:3: characters
0-28 : Class not found : flash.display.Bitmap

hmm I don't know why flash.display.Bitmap is not found :-/

Original comment by aau...@gmail.com on 29 Mar 2011 at 1:32

GoogleCodeExporter commented 9 years ago
Current tip processor tries to resolve tips with using main project 
configuration (at 08:29:43.821) and if it fails also tries to apply default 
configuration (at 08:29:43.956). It can't find flash.display.Bitmap because 
there's no mention about "flash" target in default configuration. 

More interesting why haxe compiler returned "Error : get_full_path". That was 
the reason why first attempt of getting tips with using project default build 
file has failed. Don't know, maybe the problem in linking with swf-lib. Could 
you try to execute "/usr/bin/haxe -main Main -lib polygonal -cp src -debug 
--display
/home/aaulia/Development/Workspaces/HelloWorld/src/Main.hx@381 --no-output
-swf9 out/HelloWorld.swf -swf-header 400:300:30:888888 -swf-lib
../res/res.swf " from console with and without swf-lib option?

Original comment by goodwi...@gmail.com on 30 Mar 2011 at 10:56

GoogleCodeExporter commented 9 years ago
Ok will try as soon as I get back home, I'll let you know

Original comment by aau...@gmail.com on 31 Mar 2011 at 4:47

GoogleCodeExporter commented 9 years ago
Hi, sorry but it seems I deleted the test project :(. But I can confirm,
apparently using lib without the --swf-lib is ok :-/. Pretty weird. Thanks

On Thu, Mar 31, 2011 at 11:46 AM, Achmad Aulia Noorhakim
<aaulia@gmail.com>wrote:

Original comment by aau...@gmail.com on 31 Mar 2011 at 4:26

GoogleCodeExporter commented 9 years ago
Trunk version contains a console view for showing errors in content assist. 
Probably that's all for that issue.

Original comment by goodwi...@gmail.com on 1 May 2011 at 7:40