slisson / mps-tables

Table Editor Component for JetBrains MPS
Apache License 2.0
7 stars 3 forks source link

Problem with Right Transformations in tables #61

Closed markusvoelter closed 10 years ago

markusvoelter commented 10 years ago

There is an assertion exception that shows up when I try to execute a righ transformation in a table. I have submitted an MPS bug, since I thought this was an MPS problem: http://youtrack.jetbrains.com/issue/MPS-19008

However, since this (only?) happens in tables, it may be a tables issue as well.

slisson commented 10 years ago

I'm sure it's my fault. How can I reproduce that error?

markusvoelter commented 10 years ago

Go to this node:

node: Motor [ConstantGroup] root: Groups [ImplementationModule] model: test.ex.utils.constantgroups module: test.ex.utils url: http://mbeddr.com/r:3a723734-50a2-46e2-bd30-172860df1b8a##__##3457387547011497667####

There's a table, and it has in the header. Press enter there, this gives you a VariantSelector represented as {expr}. Now enter an expression (such as "a") and try to perform a right transformation (e.g., entering && for logical and). This will reliably provoke the error.

On Mon, Oct 28, 2013 at 10:37 AM, slisson notifications@github.com wrote:

I'm sure it's my fault. How can I reproduce that error?

— Reply to this email directly or view it on GitHubhttps://github.com/slisson/mps-tables/issues/61#issuecomment-27198510 .

Markus Völter

voelter - ingenieurbüro für softwaretechnologie/itemis Ötztaler Strasse 38, 70327 Stuttgart-Untertürkheim, Germany

Phone: +49 (0) 171 / 86 01 869 Email: voelter@acm.org

http://www.voelter.de http://twitter.com/markusvoelter https://plus.google.com/116287041150844298254

http://dslbook.org http://mbeddr.com http://omegataupodcast.net

markusvoelter commented 10 years ago

This is what Alex says about this problem: This problem looks like connected with custom cell implementation (used for tables, i suppose). In the code MPS is just looking for a "big" cell for particular node. By default all such "big cells" are stored in special map inside an editor right after creation.