Hi Gregor, I'm having problems installing the plugin in intellij community 14.1.4. Initially, the create project from sources doesn't appear to allow me to choose the project type. Then a bunch of jar references are missing ( perhaps a conseqience of the first issue), and build fails with many missing imports. Any ideas as to how to resolve this?
I'm a very noob intellij user
andrewloz
@andrewloz
By the way, I think an answer to #43 is that making primitive types structs matches their semantics - they are value, not reference types, they have methods, hence they work like structs. They have no internal structure, so they are declared as empty. Their size is given by meta data (order? or something like that, haven't looked recently). You might need to interpret the meta data.
andrewloz
@andrewloz
Why does declaring them as structs cause issues?
Grzegorz Dyk
@gregorej
@andrewloz thanks for the answer in #43. Declaring as structs does not pose an issue per se, rather current implementation works differently and I will need to change the code a bit.
About your issue, please try to just create a normal project (general project) and point the directory to your vala sources. When you open a first .vala file you should see a notification to configure a Vala SDK. The Gui for that is a bit ugly but should work (for example, you should be able to pick Vala SDK home directory)
If you encounter any issues please let me know, also screenshots could be helpful
I will try to add a tutorial on how to use the plugin when I have more time :)
andrewloz
@andrewloz
Sorry for the delay, didn't get a notification of a reply for some reason.
The problem is that I'm unable to compile the plugin in the first place , and no directory is showing as a valid home directory for the plugin - which makes sense as I can't get it to build.
Is there a command line way to build the plugin?
I'm using oracle java 1.8, which seems to be required for lambda functions (I'm not a java programmer normally, so this is all pretty new).
andrewloz
@andrewloz
I'm going to start again with building the plugin and see if I can get you some better pointers.
andrewloz
@andrewloz
OK, further along now! I'm getting error messages like:
Error:(13, 8) java: org.intellij.vala.psi.impl.ValaDelegateDeclarationImpl is not abstract and does not override abstract method setName(java.lang.String) in com.intellij.psi.PsiNamedElement
And other probably related messages
andrewloz
@andrewloz
So doing point 5 again seems to have resolved that - does that mean I now have a working plugin? Or do I have to install it somehow?
andrewloz
@andrewloz
If I create an existing or new project containing vala files, opening a vala file does nothing, no highlighting etc.
andrewloz
@andrewloz
Have installed the jar file, an unnamed plugin now exists, I can't figure out how to make it recognise vala files
Guys, I finally did release 0.0.4! Pleasae try it and let me know if you like it
Nick Melnick
@nmelnick
gregorej -- first of all, incredible work thus far. Thank you for everything you've done.
With the follow up of -- I can't get anything in my project to complete, but I feel like this was working previously. Am I setting something up wrong in my project? Vala files are recognized fine, highlight fine, but I can't get anything to complete -- no completion of other classes in the project, constructors, or even methods off of "this". Is that normal?
Grzegorz Dyk
@gregorej
@nmelnick thanks, there indeed is an issue, just raised it: gregorej/vala-intellij-plugin#51. Will try to fix ASAP :smile:
Apparently I was relying to much on my automated tests and this one slipped through :worried:
Nick Melnick
@nmelnick
I know the feeling. :)
Grzegorz Dyk
@gregorej
Ok I found the casue, hopefully tomorrow I will be able to fix it.
Grzegorz Dyk
@gregorej
The fix is there, I will release a new version today if I can.
Ruckus
@ruckus-dj
Hi. Will this plugin work with CLion? And may you give a binary package?
And it seems that it has no autocomplete. Is it normal?
Grzegorz Dyk
@gregorej
are you using version 0.0.5?
Ruckus
@ruckus-dj
Yes. Last binary from GitHub releases page. Tomorrow will try to use it with community Intellij, may be it is a CLion mistake.
Grzegorz Dyk
@gregorej
ah, so you are testing with CLIon? It is cool to see that at least some parts of the plugin are working :P
Ruckus
@ruckus-dj
Yes, testing with CLion because we have a project in C/GTK and decided to use Vala to simplify development. But now we have a lot of C code that compiles with CMake and generating .gir and .vapi files. So i tryed to develop all in one IDE. Want to help you but i don't know Java so i'll try when i'll have time to learn it.
Grzegorz Dyk
@gregorej
that's cool, thanks @ruckus-dj !
Grzegorz Dyk
@gregorej
FYI: currently working on some way to compile Vala projects via Intellij . Anyone knows how to implement and debug jps-plugin? ;)
romalytvynenko
@romalytvynenko
Hello there. I tried last compiled (0.0.5) version of plugin, and saw that there is Vala SDK integration there. But when I typing something like GLi<caret> or Gtk.<caret> I don't see any suggestions. Is this a bug, or this feature isn't implemented yet?
Nick Melnick
@nmelnick
Hi, @gregorej -- is this project still alive? :)
Grzegorz Dyk
@gregorej
Hi, no, I no longer maintain it.
I just lost interest in Vala language and as a result also in developing the plugin
Sorry, I hope someone can take what is already made and make it much better!