atom.io package for completion, linting and more

227 views
Skip to first unread message

Sven Bergström

unread,
Mar 17, 2015, 3:50:03 AM3/17/15
to haxe...@googlegroups.com
Haxe!

We have been working on a plugin for http://atom.io for users to enjoy.
It's not quite done yet - but it's usable to a point and could use some earlier testing.
Take note that "language-haxe" handles the haxe source file colors etc. Install that first.

If that sounds like it's up your alley, you can check out the packages here:

For haxe+hxml files on it's own:
https://atom.io/packages/haxe

For flow users (requires haxe as well):
https://atom.io/packages/flow

For framework/tool developers:
The haxe plugin serves as a singular central provider for other packages to use for full completion and builds.
All you need to feed it is some hxml and it will do the rest.  
For example, flow tells the haxe plugin that it is an active consumer,
and the haxe plugin will defer the build stages and handle the completion and so on to flow.
Right now this is not documented and might change slightly in finalization,
but take note that this is part of the design so you don't need to rewrite the work each time.
You can open an issue to ask questions on the repo.

Please read the notes in the readme,
as there is info about future plans and other IDE
parsing support stemming from this work.

As always, feedback and issues are welcome.

clemos

unread,
Mar 17, 2015, 4:44:13 AM3/17/15
to haxe...@googlegroups.com
Well done :)

--
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/d/optout.

Jason O'Neil

unread,
Mar 17, 2015, 5:52:48 AM3/17/15
to haxe...@googlegroups.com
This is fantastic - great work.  I think I'm going to try make this my default Haxe editor on Ubuntu and see how I go :)

I just use hxml builds for all of my projects, and most editors / IDEs seem to want a more complex build option.  Being able to right click a hxml and then use it for completion and builds is exactly what I need and it works well. 

Thanks!

Dan Korostelev

unread,
Mar 17, 2015, 6:08:00 AM3/17/15
to haxe...@googlegroups.com, he...@jasono.co
вторник, 17 марта 2015 г., 12:52:48 UTC+3 пользователь Jason O'Neil написал:
I just use hxml builds for all of my projects, and most editors / IDEs seem to want a more complex build option.  Being able to right click a hxml and then use it for completion and builds is exactly what I need and it works well.  
I couldn't agree more, that's one of the reasons I don't use IDE's such as FD and IntelliJ.

Nicolas Cannasse

unread,
Mar 17, 2015, 3:19:17 PM3/17/15
to haxe...@googlegroups.com
Le 17/03/2015 08:50, Sven Bergström a écrit :
> Haxe!
>
> We have been working on a plugin for http://atom.io for users to enjoy.
> It's not quite done yet - but it's usable to a point and could use some
> earlier testing.
> Take note that "language-haxe" handles the haxe source file colors etc.
> Install that first.

Hi, great to see more IDE support !

Are you using the completion server for this ?

Best,
Nicolas

Franco Ponticelli

unread,
Mar 17, 2015, 3:21:54 PM3/17/15
to haxe...@googlegroups.com
I am testing it and it is very good, thanks!

Sven Bergström

unread,
Mar 17, 2015, 3:56:20 PM3/17/15
to haxe...@googlegroups.com
Yes @ Nicolas, it's using the server for all queries.

Btw for current testers, there should be a new version later today with more fixes and additions that make it nicer to use.

Thanks for the feedback so far!

Domagoj Štrekelj

unread,
Mar 18, 2015, 7:36:35 AM3/18/15
to haxe...@googlegroups.com
Hello,

I happened to reinstall Atom yesterday and was excited to see the haxe package in the Atom package manager.
It really is a great piece of work and I'd like to thank you for taking the time to create it!

However, I'm experiencing something odd. Certain libraries (mithril, ufront) aren't being "caught" and the
linter returns "Class not found" when trying to import their classes. The libraries in question are, of course,
installed and included in the .hxml. Libraries such as openfl, lime, and mcli are being handled just fine.

Not sure if this is an issue with the haxe package or with its dependencies, which is why I'm posting here instead
of reporting an issue on GitHub. I wouldn't want to clutter your issue tracker if it's just me doing something wrong.

I look forward to seeing how this package will shape up!

Domagoj

Jason O'Neil

unread,
Mar 18, 2015, 8:45:31 AM3/18/15
to haxe...@googlegroups.com
I had a similar problem, and it was due to using environment variables in my Haxe / Haxelib path.

Are you doing anything similar?  On Linux, I found that running "atom" from the command line included the environment variables (and so compilation worked), while running it from the menu icon didn't include the environment variables, and so compilation failed. 

This might not be your problem, but I thought it might be worth checking.

Jason



--

Domagoj Štrekelj

unread,
Mar 18, 2015, 10:55:07 AM3/18/15
to haxe...@googlegroups.com
I should have mentioned that I'm using Windows 7. I tried running from desktop and command
line, in both user and administrator mode.

Also, it seems to be working okay now. I was using a git install of the mithril library when I was 
experiencing the issues from before. I removed the git version and installed the haxelib 
version instead. Now I'm getting the proper autocompletion without linter issues. It could be that
my git install was bad, I don't know.

The rest of the libraries seem fine so far. Tried out some git installs as well as some haxelib
ones and so far so good!

Again, thanks for the great work on the package!

Domagoj

You received this message because you are subscribed to a topic in the Google Groups "Haxe" group.

Sven Bergström

unread,
Mar 18, 2015, 12:50:36 PM3/18/15
to haxe...@googlegroups.com
Aha, that's an interesting case @jason, I wonder if that's worth filing an issue or finding one on atom side.

@Domagoj Glad it's working now, at least.

Sven Bergström

unread,
Mar 19, 2015, 2:52:31 PM3/19/15
to haxe...@googlegroups.com
Ok!

The latest version is up and includes a whole lot of fixes and would be the first properly usable release.


You can share this if you like:
https://twitter.com/snowkitorg/status/578628663429693440

All the details and gifs and such are here:
https://atom.io/packages/haxe

Some fun gifs:

Tarwin Stroh-Spijer

unread,
Mar 19, 2015, 3:24:21 PM3/19/15
to haxe...@googlegroups.com
Looks awesome. The one thing that I find super useful in FlashDevelop is being able to follow a definition. Is this something that is going to be possible in Atom?



Tarwin Stroh-Spijer
_______________________

phone: +1 650 842 0920

Developer at Fanplayr Inc. (Palo Alto)
Original at Touch My Pixel (touchmypixel.com)
_______________________

Sven Bergström

unread,
Mar 19, 2015, 3:30:46 PM3/19/15
to haxe...@googlegroups.com, tar...@touchmypixel.com
Yes, it will be in later revisions where possible.
Reply all
Reply to author
Forward
0 new messages