-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler error, Display file was not found in class path error on Linux? #50
Comments
Try updating vaxe once more, I fixed a potential file path issue. |
Hi, I'm a new Vaxe user (and a new Haxe/Lime user) on OSX, and I'm experiencing this exact same issue. I've updated Vaxe using Vundle's BundleUpdate command in MacVim, so I believe I'm fully up-to-date with the fix mentioned in the previous message. (Please let me know however if there's something else I need to do to update.) Any help would be much appreciated! |
I'll check in to it soon... |
Thanks very much! :) |
Hi, I've been hacking around with this a little, trying to find what's going wrong. I don't really have any experience writing Vim scripts or plugins, but I think I might have a bit of an idea of what the problem is. I think my issue may be slightly different to the original poster's, as I think in my case the fact that I'm working on a Lime project is key. Briefly, I don't think Vaxe is using the correct command line to request the I'm using the If I turn Vaxe logging on and then check the
...and indeed, if I try to call that same command from the terminal, then I get the same error as Vaxe reports. However, after experimenting in the terminal for a little while, I think I found a command that seems to work as (presumably) expected:
(That is, get haxe to process the hxml generated for the chosen Lime Target, rather than whatever the default project hxml is.) This proceeds to output a whole chunk of XML, which looks like it contains the auto-complete info that Vaxe needs. So the conclusion I'm drawing from this is Vaxe does not seem to be obeying the Lime Target selected when the file is loaded upon building its command line for the auto-completion, causing it to process the incorrect hxml file, which means haxe does not have all the class paths and various other defines setup to be able to successfully process the source for the chosen target. Does this sound plausible? I'd have a go at hacking a fix together myself, but sadly this is the first time I've ever taken a look at such large Vim plugin, so I'm a bit lost at the moment... |
Yes, it looks like lime is using some hxml that it generates in a template directory, and this isn't matching the hxml it generates with the "display" command. I'll see what Josh says is the right thing to do there, it seems like it might be a bug with lime. |
In the meantime, you should be able to run :ProjectHxml to select one of the hxmls from the export directory. |
Oh great, thanks! I didn't actually know about that command. I just tried it out, and after using it the auto-complete did indeed start working! Out of interest, what's the correct eventual fix? Perhaps Vaxe should automatically run the :ProjectHxml command after it has asked the user to choose their Lime Target? (I don't actually know the criteria for when Vaxe asks for the Lime Target - it seems to be every time I open one of my project's .hx files currently - but I presume there's a way to set a default in the project? If so, being able to set a default ProjectHxml in a similar manner might also make sense?) |
Lime has changed a lot, and it seems like it's moving towards separate hxml files, rather than the "lime display" command that I was using. Josh isn't responding just yet, but I'm guessing that's what's happening. Lime support in vaxe is a bit awkward right now, since I use hxml for completions and lime commands for builds. I'll probably try to port the completion commands to pure lime versions, although I feel like I really shouldn't be forced to do that. To set a default target, use the "g:vaxe_lime_target" variable to the target you want. You can also check Thanks again for your efforts towards figuring out what was going on! |
You're welcome! Thank you for your informative replies. :) |
"lime display" is still the proper way to do this. It will output HXML you can use for completion. Is this how it works now, or does it do something different? |
Hey Josh, try the "display hxml" generated for the SimpleOpenGL test project. That one had problems. |
And thanks! |
I've had this problem as well. I figured out that the problem was happening on iOS target, but not for Android. Paths are a bit different for example:
Btw, Vaxe is great! :) |
Thanks! This looks like a lime issue. I'm crossposting it here: openfl/lime#185 |
There was a recent fix to lime-tools, which dealt with an issue on trailing slashes for Haxe display completion. Apparently, the paths work properly when compiling, but the trailing slash can cause it to fail during code completion, providing unusual errors. If someone could please test using a recent source build of lime-tools along with vaxe, that would be awesome. Thanks! |
Thanks for the update Josh |
This still doesn't seem to work.
This is with vaxe master (installed from vundle): a134e61 |
In case it matters, more versions: Running on openSUSE Leap 42.1 x86_64 |
Thanks for the platform tips, I'll take a look. |
Hi
I installed Vaxe. It asks for the compiler options when I open a file that is in the project so that is good. But It is giving me the error above when I try to type something like
import openfl.(caret)
thanks
The text was updated successfully, but these errors were encountered: