0
Je rencontre des problèmes avec le Netbeans Scala plugin. Je reçois l'erreur suivante lors de l'exécution de mon projet:
Je> ant -f /Volumes/Z/Users/vincent/Dropbox/Programming/Scala/U4Handler run Could not load definitions from resource scala/tools/ant/antlib.xml. It could not be found. init: deps-jar:
> /Volumes/Z/Users/vincent/Dropbox/Programming/Scala/U4Handler/nbproject/build-impl.xml:405:
> The following error occurred while executing this line:
> /Volumes/Z/Users/vincent/Dropbox/Programming/Scala/U4Handler/nbproject/build-impl.xml:238:
> Problem: failed to create task or type scalac Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place.
> BUILD FAILED (total time: 0 seconds)
Tout d'abord, aucune idée pourquoi il fonctionne avec l'argument ant -f
, je ne pas utiliser Ant dans ce projet. D'autre part, ce que je l'ai fait pour corriger cette erreur:
- Ajouté à
-J-Dscala.home=/usr/local/Cellar/scala/2.10.1/libexec/bin
netbeans_default_options à netbeans.conf, je crois que c'est le chemin réel du binaire scalac (j'ai installé scala en utilisant brew) - Création
~/.MacOSX/environment.plist
contenant (redémarrés après):
<plist version="1.0"> <dict> <key>SCALA_HOME</key> <string>/usr/local/Cellar/scala/2.10.1/libexec/bin</string> <key>PATH</key> <string>/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/Cellar/scala/2.10.1/libexec/bin</string> </dict> </plist>'
Toute aide est grandement appréciée !!