Issue 77 in eclihx: intellisense doesn't support -lib in hxml

1 view
Skip to first unread message

ecl...@googlecode.com

unread,
Mar 26, 2011, 3:18:38 PM3/26/11
to eclih...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 77 by aau...@gmail.com: intellisense doesn't support -lib in hxml
http://code.google.com/p/eclihx/issues/detail?id=77

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.


ecl...@googlecode.com

unread,
Mar 27, 2011, 2:31:59 PM3/27/11
to eclih...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 77 by goodwi...@gmail.com: intellisense doesn't support

Could you please provide a short example of code where you expect
intellisence to work?

ecl...@googlecode.com

unread,
Mar 27, 2011, 2:35:59 PM3/27/11
to eclih...@googlegroups.com
Updates:
Owner: goodwi...@gmail.com

Comment #2 on issue 77 by goodwi...@gmail.com: intellisense doesn't support

(No comment was entered for this change.)

ecl...@googlecode.com

unread,
Mar 28, 2011, 12:35:11 AM3/28/11
to eclih...@googlegroups.com

Comment #3 on issue 77 by aau...@gmail.com: intellisense doesn't support

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.

ecl...@googlecode.com

unread,
Mar 28, 2011, 5:03:28 PM3/28/11
to eclih...@googlegroups.com

Comment #4 on issue 77 by goodwi...@gmail.com: intellisense doesn't support

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.

ecl...@googlecode.com

unread,
Mar 28, 2011, 9:33:06 PM3/28/11
to eclih...@googlegroups.com

Comment #5 on issue 77 by aau...@gmail.com: intellisense doesn't support

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 :-/

ecl...@googlecode.com

unread,
Mar 30, 2011, 6:57:20 PM3/30/11
to eclih...@googlegroups.com

Comment #6 on issue 77 by goodwi...@gmail.com: intellisense doesn't support

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?

ecl...@googlecode.com

unread,
Mar 31, 2011, 12:47:18 AM3/31/11
to eclih...@googlegroups.com

Comment #7 on issue 77 by aau...@gmail.com: intellisense doesn't support

Ok will try as soon as I get back home, I'll let you know

ecl...@googlecode.com

unread,
Mar 31, 2011, 12:27:28 PM3/31/11
to eclih...@googlegroups.com

Comment #8 on issue 77 by aau...@gmail.com: intellisense doesn't support

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
<aau...@gmail.com>wrote:

ecl...@googlecode.com

unread,
May 1, 2011, 3:41:41 PM5/1/11
to eclih...@googlegroups.com
Updates:
Status: Fixed

Comment #9 on issue 77 by goodwi...@gmail.com: intellisense doesn't support

Trunk version contains a console view for showing errors in content assist.
Probably that's all for that issue.

Reply all
Reply to author
Forward
0 new messages