Eclipse — Testng references non-existing project XXX, launch configuration

前端 未结 11 1090
陌清茗
陌清茗 2020-12-09 17:22

When trying to run a test as a TestNG suite, I would get a very cryptic error message saying that TestNG can\'t launch because it references a non-existant project. I think

11条回答
  •  再見小時候
    2020-12-09 18:00

    In my case, the error occurred in a Scala project. It had installed the eclipse plugin, but it had not been used yet.

    Diagnostics: If all goes well, the project has a blue S for scala project. If not, it has a yellow PC mouse (for whatever that means).

    To fix, you need to

    sbt eclipse
    

    on the command-line. Eclipse recognizes it as Scala project at the latest on restart.

提交回复
热议问题