π
<-
Chat plein-écran
[^]

IDE Nspire-Lua : Intellij IDEA

Pour TI-Nspire OS 3.0 ou ultérieur.

IDE Nspire-Lua : Intellij IDEA

Message non lude Adriweb » 18 Oct 2012, 21:51

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 :)
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.1%
 
Messages: 14606
Images: 1216
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: IDE Nspire-Lua : Intellij IDEA

Message non lude Hamza.S » 25 Jan 2017, 10:29

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
Image
Avatar de l’utilisateur
Hamza.SAdmin
Niveau 17: GM (Grand Maître des calculatrices)
Niveau 17: GM (Grand Maître des calculatrices)
Prochain niv.: 28.5%
 
Messages: 4461
Images: 18
Inscription: 07 Nov 2014, 00:43
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: IDE Nspire-Lua : Intellij IDEA

Message non lude Adriweb » 30 Mar 2017, 22:17

@Hamza: hm, il faudra que je vois ça... en soi-même, ça devrait continuer à marcher mais on pourrait rajouter les nouvelles APIs...
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.1%
 
Messages: 14606
Images: 1216
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: IDE Nspire-Lua : Intellij IDEA

Message non lude Rankail » 28 Nov 2020, 20:28

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()'.
Avatar de l’utilisateur
Rankail
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Prochain niv.: 64%
 
Messages: 21
Inscription: 09 Nov 2019, 18:33
Localisation: Germany, North Rhine-Westfalia
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 12

Re: IDE Nspire-Lua : Intellij IDEA

Message non lude Adriweb » 28 Nov 2020, 21:30

There's a typo in what you pasted. Check in your code too?
Anyway, nowadays I'd recommend using EmmyLua or Luanalysis
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.1%
 
Messages: 14606
Images: 1216
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb


Retourner vers Nspire-Lua

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 7 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1150 utilisateurs:
>1133 invités
>12 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)