[haxe] --display and relative path don't work together

73 views
Skip to first unread message

Left Right

unread,
Jul 19, 2013, 6:01:05 AM7/19/13
to haxe...@googlegroups.com
$ haxe --connect 127.0.0.1:1257 --cwd
/home/wvxvw/Projects/haxe-doodles/ -swf
/home/wvxvw/Projects/haxe-doodles/bin/OrgBabelTest.swf -cp
/home/wvxvw/Projects/haxe-doodles/src -swf-header 800:600:31
-swf-version 10 -cp /home/wvxvw/Projects/haxe-doodles/.flymake/
--display org/babel/js/Main.hx@126
Error: Display file does not exists

$ haxe --connect 127.0.0.1:1257 --cwd
/home/wvxvw/Projects/haxe-doodles/ -swf
/home/wvxvw/Projects/haxe-doodles/bin/OrgBabelTest.swf -cp
/home/wvxvw/Projects/haxe-doodles/src -swf-header 800:600:31
-swf-version 10 -cp /home/wvxvw/Projects/haxe-doodles/.flymake/
--display /home/wvxvw/Projects/haxe-doodles/.flymake/org/babel/js/Main.hx@126
<list>
<i n="charAt"><t>index : Int -&gt; String</t><d>
. . .

Above is an output from two commands, which are same in all other
respects sans the absolute vs relatve path of the file requesting
completion. Is this intended? I've also tried removing the other
source directory, but that has no effect.
Just for the record, error checking accepts relative paths.

Best.

Oleg

Simon Krajewski

unread,
Jul 19, 2013, 6:05:16 AM7/19/13
to haxe...@googlegroups.com
Using --cwd in conjunction with a relative path should work. Comparing
your absolute and relative version, you seem to be missing .flymake in
the latter?

Simon

Left Right

unread,
Jul 19, 2013, 10:08:21 AM7/19/13
to haxe...@googlegroups.com
In which of the two do I miss the `.flymake' bit? I have -cp twice in
both cases, once it points to the ${project directory}/src and the
other time it's ${project directory}/.flymake. Flymake directory is
for storing the copies of the files being checked for syntax errors /
autocompleted (so that I won't have to save the actual files). The
reason it is mentioned twice is because in larger projects some
project sources may be distributed across several source paths, so I
don't want to create a duplicate near the source file, rather I want
it near the project (so that it is easier to get rid of it when
working with VCS etc.).

Best.

Oleg
> --
> To post to this group haxe...@googlegroups.com
> http://groups.google.com/group/haxelang?hl=en
> --- You received this message because you are subscribed to the Google
> Groups "Haxe" group.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Heinz Hölzer

unread,
Jul 19, 2013, 10:29:05 AM7/19/13
to haxe...@googlegroups.com
this:

$ haxe --connect 127.0.0.1:1257 --cwd 
/home/wvxvw/Projects/haxe-doodles/ -swf 
/home/wvxvw/Projects/haxe-doodles/bin/OrgBabelTest.swf -cp 
/home/wvxvw/Projects/haxe-doodles/src -swf-header 800:600:31 
-swf-version 10 -cp /home/wvxvw/Projects/haxe-doodles/.flymake/ 
--display org/babel/js/Main.hx@126 
Error: Display file does not exists 

should be:

$ haxe --connect 127.0.0.1:1257 --cwd 
/home/wvxvw/Projects/haxe-doodles/ -swf 
/home/wvxvw/Projects/haxe-doodles/bin/OrgBabelTest.swf -cp 
/home/wvxvw/Projects/haxe-doodles/src -swf-header 800:600:31 
-swf-version 10 -cp /home/wvxvw/Projects/haxe-doodles/.flymake/ 
--display .flymake/org/babel/js/Main.hx@126 

Error: Display file does not exists 

because display is relative to the cwd directory which is "/home/wvxvw/Projects/haxe-doodles/"

best,
h

Left Right

unread,
Jul 19, 2013, 1:03:23 PM7/19/13
to haxe...@googlegroups.com
Thanks Heinz, this gets me closer, but that's not the reason:

$ haxe --connect 127.0.0.1:1257 --cwd
/home/wvxvw/Projects/haxe-doodles/ -swf
/home/wvxvw/Projects/haxe-doodles/bin/OrgBabelTest.swf -cp
/home/wvxvw/Projects/haxe-doodles/src -swf-header 800:600:31
-swf-version 10 -cp /home/wvxvw/Projects/haxe-doodles/.flymake/
--display .flymake/org/babel/js/Main.hx@126
<list>
<i n="charAt"><t>index : Int -&gt; String</t><d>
. . .
</list>
$ cd ./.flymake/
$ haxe --connect 127.0.0.1:1257 --cwd
/home/wvxvw/Projects/haxe-doodles/ -swf
/home/wvxvw/Projects/haxe-doodles/bin/OrgBabelTest.swf -cp
/home/wvxvw/Projects/haxe-doodles/src -swf-header 800:600:31
-swf-version 10 -cp /home/wvxvw/Projects/haxe-doodles/.flymake/
--display .flymake/org/babel/js/Main.hx@126
Error: Display file was not found in class path

I.e. haxe disregards the --cwd option and instead uses $PWD (current
directory of the shell that called the command). Or am I missing
something else?

Best.

Oleg
Reply all
Reply to author
Forward
0 new messages