mbeddr / mbeddr.core

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

Global Library value bug #379

Closed qutorial closed 11 years ago

qutorial commented 12 years ago

Resets Global Libraries variable.

To reproduce: Install MPS 2.5.1, set up mbeddr as in the manual. Configure the Global Library to point to the folder with code of mbeddr. Restart MPS and the value turns to be different, piece of the libraryManager.xml file in options:

So, this value appears there instead of the path: ${mbeddr.github.core.home}/code

Maybe path macros have to be set somehow accordingly?

b-sh commented 12 years ago

I have a slightly similar problem.

@bkolb By the way which build number of MPS are you using for your current master branch? In my case the MPS 2.5.1 build does not work with it, only with the Package from July19 in your download corner.

Env: Bulid #MPS-117.9271

[ 55525] ERROR - jetbrains.mps.util.Macros - Wasn't able to expand path ${mbeddr.github.core.home}/code/languages [ 55526] ERROR - jetbrains.mps.util.Macros - Please define path variable mbeddr.github.core.home in path variables section of settings [ 55526] ERROR - jetbrains.mps.util.Macros - Wasn't able to expand path ${mbeddr.assembla.ext.home}/code/languages [ 55526] ERROR - jetbrains.mps.util.Macros - Please define path variable mbeddr.assembla.ext.home in path variables section of settings [ 141046] ERROR - .persistence.def.v7.ReadHelper - Broken reference to type=.com.mbeddr.core.expressions.structure.BooleanType in model r:065315f0-cb5f-4f35-88b8-5f7a5c669f86(UnlessLanguage.typesystem) [ 197833] ERROR - jetbrains.mps.util.Macros - Wasn't able to expand path ${mbeddr.github.core.home}/code/languages/com.mbeddr.mpsutil [ 197834] ERROR - jetbrains.mps.util.Macros - Please define path variable mbeddr.github.core.home in path variables section of settings [ 197834] ERROR - jetbrains.mps.util.Macros - Wasn't able to expand path ${mbeddr.github.core.home}/code/languages/com.mbeddr.core [ 197835] ERROR - jetbrains.mps.util.Macros - Please define path variable mbeddr.github.core.home in path variables section of settings [ 495532] ERROR - s.intentions.IntentionsManager - Error while initializing intentions descriptor for language com.mbeddr.core.modules java.lang.NoClassDefFoundError: org/jetbrains/mps/openapi/model/SNode at com.mbeddr.core.modules.intentions.IntentionsDescriptor.init(IntentionsDescriptor.java:22) at jetbrains.mps.intentions.IntentionsManager.initIntentionsDescriptor(IntentionsManager.java:358) at jetbrains.mps.intentions.IntentionsManager.access$300(IntentionsManager.java:57) at jetbrains.mps.intentions.IntentionsManager$4.run(IntentionsManager.java:306) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:108) at jetbrains.mps.intentions.IntentionsManager.load(IntentionsManager.java:301) at jetbrains.mps.intentions.IntentionsManager.checkLoaded(IntentionsManager.java:297) at jetbrains.mps.intentions.IntentionsManager.getAvailableIntentions(IntentionsManager.java:90) at jetbrains.mps.nodeEditor.IntentionsSupport.getEnabledIntentions(IntentionsSupport.java:393) at jetbrains.mps.nodeEditor.IntentionsSupport.access$600(IntentionsSupport.java:55) at jetbrains.mps.nodeEditor.IntentionsSupport$6$1.compute(IntentionsSupport.java:141) at jetbrains.mps.nodeEditor.IntentionsSupport$6$1.compute(IntentionsSupport.java:137) at jetbrains.mps.ide.smodel.WorkbenchModelAccess$3.compute(WorkbenchModelAccess.java:138) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:888) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:134) at jetbrains.mps.nodeEditor.IntentionsSupport$6.run(IntentionsSupport.java:137) [ 588770] ERROR - jetbrains.mps.util.Macros - Wasn't able to expand path ${mbeddr.github.core.home}/code/languages/com.mbeddr.core/tests/test.ex.core/source_gen/test/ex/core/expressions [ 588770] ERROR - jetbrains.mps.util.Macros - Please define path variable mbeddr.github.core.home in path variables section of settings [ 588771] ERROR - jetbrains.mps.util.Macros - Wasn't able to expand path ${mbeddr.github.core.home}/code/languages/com.mbeddr.core/tests/test.ex.core/source_gen/test/ex/core/expressions [ 588771] ERROR - jetbrains.mps.util.Macros - Please define path variable mbeddr.github.core.home in path variables section of settings

bkolb commented 12 years ago

Hi,

The MPS version we currently use is this one: http://download.jetbrains.com/mps/MPS-117.9341-macos.zip http://download.jetbrains.com/mps/MPS-117.9341-plugin.zip http://download.jetbrains.com/mps/MPS-117.9341.exe http://download.jetbrains.com/mps/MPS-117.9341.tar.gz http://download.jetbrains.com/mps/MPS-117.9341.zip

b-sh commented 12 years ago

Now I am using MPS-117.9341. But I do not know whats wrong when loading the HelloWorld project for example in the HelloWorld.Array model I see some [BuildConfiguration]. If I double click on this part there is a file which has only in it and nothing else. This happens only with the current master branch with the July19 package everything seems to work as far as I can say. This seems to me a similar problem http://youtrack.jetbrains.com/issue/MPS-13364 but I have already tried this.

In the shell I get a lot of error outputs: [ 237610] ERROR - .persistence.def.v7.ReadHelper - Broken reference to type=.com.mbeddr.core.expressions.structure.DoubleType in model r:47d17f45-c876-476d-b0f9-8d4b0bae4f5f(test.ex.cc.secondExample)

Ok I made some progress. I need to build the languages :). But if I execute the ant script I get error while build the com.mbeddr.core

[mps.generate] broken reference 'classifier' in ClassifierType [null] in com.mbeddr.core.debug.debugger@3_0 [mps.generate] -- -- was input node: ClassifierType [null] in com.mbeddr.core.debug.debugger@3_0 [mps.generate] -- -- was template: [type] Type [1269198486696304855] in jetbrains.mps.baseLanguage.collections.generator.baseLanguage.template.post@generator

No I got it. I looks like your are all using MacOS right? ;) First of all spawner from tools folder is expected to be in the mps.home/plugins folder that why debugger build failed, but now everything works just fine. Furthermore I had to define some directory locations in build.properties. I migh have overlooked something and it could be easier to getting started with mbeddr. By the way It would be nice to have kind of getting started with mbeddr or I have not looked deep enough in your documentation. Anyhow mbeddr rocks ;).