오늘 저는 제 맥북에 intelliJ 실론 IDE를 설치했습니다. 프로젝트를 컴파일 할 때 다음 메시지가 나타납니다.실론 실행 : 모듈 기본값/버전 없음을 찾지 못했습니다.
/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
다른 컴퓨터 (Windows 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