mbeddr / mbeddr.core

The mbeddr core. An extensible C
Eclipse Public License 2.0
225 stars 77 forks source link

NPE if running Run Configuration without executable selected #860

Closed VladRassokhin closed 10 years ago

VladRassokhin commented 10 years ago

Error during executing provider generate and make(com.mbeddr.core.runconfiguration.pluginSolution.plugin.GenerateAndMake_BeforeTask) java.lang.NullPointerException at com.mbeddr.core.runconfiguration.pluginSolution.plugin.GenerateModelsUtil$1.run(GenerateModelsUtil.java:36) at jetbrains.mps.ide.smodel.WorkbenchModelAccess$2.run(WorkbenchModelAccess.java:116) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:940) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:111) at com.mbeddr.core.runconfiguration.pluginSolution.plugin.GenerateModelsUtil.getModelDescriptorsFromNodeAndImports(GenerateModelsUtil.java:33) at com.mbeddr.core.runconfiguration.pluginSolution.plugin.GenerateAndMake_BeforeTask$GenerateAndMake_BeforeTask_RunTask.execute(GenerateAndMake_BeforeTask.java:43) at jetbrains.mps.execution.api.configurations.BaseMpsBeforeTaskProvider.executeTask(BaseMpsBeforeTaskProvider.java:71) at jetbrains.mps.execution.api.configurations.BaseMpsBeforeTaskProvider.executeTask(BaseMpsBeforeTaskProvider.java:22) at com.intellij.execution.impl.ExecutionManagerImpl$1.run(ExecutionManagerImpl.java:161) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

MPS 3.0.1 Mbeddr 0.5-eap2

DomenikP commented 10 years ago

I have just fixed this issue with commit 99148e17c10d0ff85d0082cb47e2ee82c25b0b23.

Are you using the source- or the plugin-based build?

VladRassokhin commented 10 years ago

I'm using just clean mps + mbeddr plugins (from github/releases/0.5-eap2).

DomenikP commented 10 years ago

Ok.

In case you wanna use our latest development state, build scripts are located in the repository, so you can build mbeddr from command line.