Page 1 sur 1

IDE Nspire-Lua : Intellij IDEA

Message non luPosté: 18 Oct 2012, 21:51
de Adriweb
I have talked about "Intellij IDEA" on the tinspire group as a Lua IDE (thanks to its wonderful Lua plugin), and I believe it can be quite good for you guys, especially for big projects where the current SDK isn't efficient (no support of multiple files etc.).

Here's some details on how to setup what you can see at the bottom of this post ;)

Basically, you can do either :
This (longer but it will make seperate SDKs for normal computer Lua and Nspire Lua)
  1. Download Lua for windows 5.1
  2. Add a new Lua SDK in Intellij (you can find that in the module settings, for example)
  3. Select the Lua folder in program files as the lua sdk folder.
  4. Download my addon and decompress it somewhere
  5. Add from my addon the folder "nspirelua-api" as an external classpath folder in your new SDK
  6. Save, apply, etc.

or (easier/faster but it will make computer lua think it has nspire lua API available) :
  1. In Intellij's ( / module's ) settings, edit the KahLua SDK
  2. Download my addon and decompress it somewhere
  3. Add from my addon the folder "nspirelua-api" as an external classpath folder in your new SDK
  4. Save, apply, etc.

After all that, create a new Lua project, and in the libraries on the left side, you should see not only the stdlib (of which you can unlink the io and debug API which aren't present on the Nspire), and you should be able to enjoy Intellij's Lua plugin things but for the Nspire Lua API too.
This it what it looks like when it's set up, on my computer :

Autocompletion example (of the events and other functions ) :

Image

Image


Auto-completion + arguments help :

Image


Interactive documentation based onInspired-Lua's wiki : (Ctrl-Q on a word)

Image


Nspire-Lua API plugin : download here (archives_voir.php?id=8182)


Good luck and have fun :)

Re: IDE Nspire-Lua : Intellij IDEA

Message non luPosté: 25 Jan 2017, 10:29
de Hamza.S
Bonjour, (et désolé pour le déterrage)

Je voudrais savoir si "Nspire-Lua API plugin" sera mis à jour? ça date de 2013 donc obsolète

Re: IDE Nspire-Lua : Intellij IDEA

Message non luPosté: 30 Mar 2017, 22:17
de Adriweb
@Hamza: hm, il faudra que je vois ça... en soi-même, ça devrait continuer à marcher mais on pourrait rajouter les nouvelles APIs...

Re: IDE Nspire-Lua : Intellij IDEA

Message non luPosté: 28 Nov 2020, 20:28
de Rankail
I cant seem to get the auto completion to work. It shows me the completion for 'platform' but not for something like 'platfrom.window:width()'.

Re: IDE Nspire-Lua : Intellij IDEA

Message non luPosté: 28 Nov 2020, 21:30
de Adriweb
There's a typo in what you pasted. Check in your code too?
Anyway, nowadays I'd recommend using EmmyLua or Luanalysis