jdonaldson/vaxe

How to compile?

Closed this issue · 5 comments

Hi

It says that vaxe supports compiling but your doc is abit impolicit aout the actual command and process. It just says that it supports custom makeprg. Can you please compiling a bit more explicit?

thanks

Vim has an internal make system, which you can run with:
:make

If you have vaxe open, and a valid build file, running that command should build your project.

to learn more about :make, you can run:
:help make

to learn more about :makeprg, it's:
:help makeprg.

I'll add a small note about this to the vaxe readme.

jdonaldson,
thanks, then probably my vaxe setup is not working because it is throwing bunch of errors on Windows. I might report a bug later

thanks

Please do, I don't have many windows users.

Hi

Here is the messages from vim when opening an hx file

"C:\DEVEXAMPLES\haxe3\flixel-demos_III\git\Effects\FlxBlur\export\flash\haxe\nme\AssetData.hx" [unix] 32L, 502C
Error detected while processing function vaxe#AutomaticHxml..vaxe#DefaultHxml..vaxe#openfl#BuildOpenflHxml..vaxe#openfl#Target..vaxe#openfl#BuildOpenflHxml..122_Sys:
line 1:
E484: Can't open file C:\Users\user1\AppData\Local\Temp\VIo15E1.tmp
E484: Can't open file C:\Users\user1\AppData\Local\Temp\VIo1630.tmp
Error detected while processing function vaxe#AutomaticHxml..vaxe#DefaultHxml..vaxe#openfl#BuildOpenflHxml..vaxe#openfl#Target..vaxe#openfl#BuildOpenflHxml:
line 23:
E484: Can't open file C:\Users\user1\AppData\Local\Temp\VIo1670.tmp
Error detected while processing function vaxe#AutomaticHxml..vaxe#DefaultHxml..vaxe#openfl#BuildOpenflHxml..122_Sys:
line 1:
E484: Can't open file C:\Users\user1\AppData\Local\Temp\VIo16AF.tmp
E484: Can't open file C:\Users\user1\AppData\Local\Temp\VIo16FE.tmp
Error detected while processing function vaxe#AutomaticHxml..vaxe#DefaultHxml..vaxe#openfl#BuildOpenflHxml:
line 23:
E484: Can't open file C:\Users\user1\AppData\Local\Temp\VIo173D.tmp
Default build file not valid: C:\DEVEXAMPLES\haxe3\flixel-demos_III\git\Effects\FlxBlur\export\flash\haxe\nme/C:\DEVEXAMPLES\haxe3\flixel-demos_III\git\Effects
FlxBlur\project.xml.hxml
Please enable autowrite (see :help autowrite) in order for vaxe autocompletion to work naturally
19 more lines
19 more lines
19 fewer lines; before #1 1 seconds ago
19 more lines
19 more lines
19 fewer lines; before #2 1 seconds ago
19 more lines
19 more lines
19 fewer lines; before #3 1 seconds ago
17 more lines
17 more lines
17 fewer lines; before #4 3 seconds ago
E488: Trailing characters

Thanks for the log output.

One of the things that is currently required for file completion is enabling the "autowrite" setting. The log file above mentions this. The reason is that vaxe requires the compiler for completions. The compiler requires that the file is written. The "autowrite" setting will make sure that files are written as required.

If that doesn't solve your problem, there's other people who have run into a similar problem:
https://groups.google.com/forum/?fromgroups=#!topic/vim_use/JSXaM9YjWKo

One of the solutions they recommend on windows is to upgrade their version of vim:
http://vim.1045645.n5.nabble.com/vim-script-can-t-create-tmp-file-td5712418.html