今日、私はMacBookにintelliJ ceylon IDEをインストールしました。私のプロジェクトをコンパイルすると、次のメッセージが表示されます。ceylon run:モジュールのデフォルト/バージョン化されていません。
/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java "-Dceylon.system.repo=/Users/Laust/Library/ApplicationSupport/IdeaIC2016.3/CeylonIDEA/classes/embeddedDist/repo" -Didea.launcher.port=7533 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA CE.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Users/Laust/Library/Application Support/IdeaIC2016.3/CeylonIDEA/classes/embeddedDist/lib/ceylon-bootstrap.jar:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain com.redhat.ceylon.launcher.Bootstrap run --run main default/unversioned
ceylon run: Module default/unversioned not found in the following repositories:
/Users/Laust/Library/Application Support/IdeaIC2016.
3/CeylonIDEA/classes/embeddedDist/repo
/Users/Laust/.ceylon/cache
https://modules.ceylon-lang.org/repo/1
[Maven] Aether
[NPM] npm
Process finished with exit code 1
コードは他のコンピュータ(ウィンドウ7)でも正常に実行されます。
フォルダ 'モジュール' は、次のものが含まれます
default
default.car
default.car.sha1
default.src
default.src.sha1
と私のビルド構成looks as follows。
この
はIntelliJのプラグインが正しく、「デフォルト」モジュールを処理していないとバグかもしれません(ファイルソース/ main.ceylonで)私のコードshared void main() {
print("Generating pretty sweet g-code:");
{Gcommand+} myGcommands = {
G00(Vector3(0.0, 0.0, 0.0)),
G00(Vector3(9.0, 0.0, 0.0)),
G00(Vector3(9.0, 9.0, 0.0)),
G00(Vector3(0.0, 9.0, 0.0)),
G00(Vector3(0.0, 0.0, 0.0))
};
GcodeProgram myGcodeProgram = GcodeProgram(*myGcommands);
print(myGcodeProgram.toString());
}
"A carthesian coordinate class"
alias X => Float;
alias Y => Float;
alias Z => Float;
class Vector3(shared X x, shared Y y, shared Z z) {
}
"An abstract spec class for all G-code command classes"
abstract class Gcommand() {
shared formal String toString();
}
"G-code command for moving in a straight line at rapid speed"
class G00(Vector3 endPoint) extends Gcommand() {
toString() => "G0 " + "X" + endPoint.x.string
+ "Y" + endPoint.y.string
+ "Z" + endPoint.z.string + "\n";
}
class GcodeProgram(Gcommand+ gcommands) {
variable String stringifiedGcodeProgram = "";
shared String toString() {
for (gcommand in gcommands) {
stringifiedGcodeProgram = stringifiedGcodeProgram + gcommand.toString();
}
return stringifiedGcodeProgram;
}
}
新しい、正しい実行コンフィギュレーションを自動的に作成することを選択した場合は、あとで(または前に、混乱させないように)古い、障害のある実行コンフィギュレーションを削除してください。 'Run' - > 'Edit configurations'のようにします。 – loldrup