clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 85 forks source link

Old build data is used instead of lastest build.hxml #166

Closed nadako closed 10 years ago

nadako commented 10 years ago

With latest updates, sublime for some reason doesn't use my current build.hxml for completion and ctrl+enter build and instead uses params from some older version of the build file and I couldn't find where does it save that data, so I just reporting this issue :-P

clemos commented 10 years ago

Yeah, now .hxml data is stored internally, I need to add some hooks to refresh it when either files change... Thanks for reporting, I'll look into it this week-end ;)

nadako commented 10 years ago

Could you please point me to where can I manually clear that data, because it hurts working without proper autocompletion.

clemos commented 10 years ago

Can't you just restart ST ? Sorry for the inconvenience, I'm still working on it :\

nadako commented 10 years ago

It seems to persist between ST sessions :-/

clemos commented 10 years ago

Have you added an .hxml file to your projects (using "Add Haxe build file") ? If so you need to remove it by editing your project file. Otherwise, I don't really see how it can persist across sessions...

nadako commented 10 years ago

I don't have a project file saved, just a folder added to the sidebar by drag-drop :-) And the hxml file is the same (by name), it's its content that changed.

clemos commented 10 years ago

All right, I just committed a kind of revert to the "old" behaviour, please let me know if it fixes your issue...

nadako commented 10 years ago

nope, that didn't help :-/

lucas-jones commented 10 years ago

I'm using this plugin via git repo, having issues with the latest commit (auto-complete)

This isn't super helpful but: once I reverted a few commits back (c025fbc058e0659356a32b0ba02123a22cc8d54f) my issue was resolved. I'll try get a more specific commit when I've finished work

clemos commented 10 years ago

I've tried and really can't reproduce. Could you please send me a .zip or something with which I could reproduce the issue ?

nadako commented 10 years ago

I debugged a bit and it seems that problem is not that it uses "some old version", it just doesn't use my build.hxml and generates a temporary one with "main.js" output which is the same what I used in my old build.hxml :-)

The real problem is that it seems not to support build.hxml without -main (which I do use a lot).

nadako commented 10 years ago

Yeah, it was creating a [No main] build before and now it doesn't add it at all if it doesn't have -main

clemos commented 10 years ago

It should be fixed now, please confirm.

nadako commented 10 years ago

Yeah it works now, thanks!