Status and building/releases of slisson/mps-richtext and mps-multiline plugins on MPS 3.1.x
Hi.
I'm trying to use mps-richtext and/or mps-multiline in MPS 3.1.4.
So far no success.
Is it supported to work with MPS 3.1.x?
Is there a binary release compatible with MPS 3.1.x?
First I tried the binary release - https://github.com/slisson/mps-multiline/releases/download/1.0.1/mps-multiline-1.0.1.zip but it does not seem to work and it has been released on April 17th, so probably before MPS 3.1.
Second, downloaded source - https://github.com/slisson/mps-richtext/archive/builds/3.1/135.15.zip .
Ant build fails:
I've Tried to put something into that mps-multiline/mps-multiline.zip path. No success.
Then I tried opening mps-richtext-builds-3.1-135.15 in MPS GUI.
A lot of errors:
=> is Java 1.7 required? But I'm on a mac, so 1.6 seems recommended as per https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under .
Please comment on that. Has anyone worked on that on a mac (and java 1.7)?
Please advise on possible ways to proceed.
I'm also thinking of becoming a contributor and/or helping to publish binary releases.
Thank you.
Best Wishes,
Karol Depka Pradzinski
I'm trying to use mps-richtext and/or mps-multiline in MPS 3.1.4.
So far no success.
Is it supported to work with MPS 3.1.x?
Is there a binary release compatible with MPS 3.1.x?
First I tried the binary release - https://github.com/slisson/mps-multiline/releases/download/1.0.1/mps-multiline-1.0.1.zip but it does not seem to work and it has been released on April 17th, so probably before MPS 3.1.
Second, downloaded source - https://github.com/slisson/mps-richtext/archive/builds/3.1/135.15.zip .
Ant build fails:
~/Downloads/mps-richtext-builds-3.1-135.15 $ ant build Buildfile: /Users/karol/Downloads/mps-richtext-builds-3.1-135.15/build.xml fetchDependencies: BUILD FAILED /Users/karol/Downloads/mps-richtext-builds-3.1-135.15/build.xml:167: src '/Users/karol/Downloads/mps-multiline/build/artifacts/mps-multiline/mps-multiline.zip' doesn't exist. Total time: 0 seconds
I've Tried to put something into that mps-multiline/mps-multiline.zip path. No success.
Then I tried opening mps-richtext-builds-3.1-135.15 in MPS GUI.
A lot of errors:
java.lang.UnsupportedClassVersionError : de/slisson/mps/editor/multiline/Language : Unsupported major.minor version 51.0
=> is Java 1.7 required? But I'm on a mac, so 1.6 seems recommended as per https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under .
Please comment on that. Has anyone worked on that on a mac (and java 1.7)?
dependency on a module not visible from current build project: b0f8641f-bd77-4421-8425-30d9088a82f7(org.apache.commons)
Please advise on possible ways to proceed.
I'm also thinking of becoming a contributor and/or helping to publish binary releases.
Thank you.
Best Wishes,
Karol Depka Pradzinski
Please sign in to leave a comment.
I've managed to fix some of the errors.
Remaining problem is: https://youtrack.jetbrains.com/issue/MPS-20627 - java.lang.NoSuchMethodError: jetbrains.mps.nodeEditor.EditorComponent.addCellDependentOnNodeProperty(Ljetbrains/mps/nodeEditor/cells/EditorCell_Property;Ljetbrains/mps/util/Pair;)V
Although such a method seems to exist in my installation:
Alexander Shatalin suggests, in the bug comments:
But I'm just doing Build -> Rebuild Project, when the problem happens; so, one could think that it is recompiled; unless he means some other code to be recompiled.
Any help appreciated.
Best Wishes,
Karol Depka Pradzinski
Got blocked on this:
Any help appreciated.
Karol
Extract this zip into your MPS plugins folder.
I will test this some more.
I'm also happy to see some more goodies there - will check them out.
Maybe this link could be put into the wiki on github?
Anyway, I hope to gradually learn more to be able to build all that from source, and hopefully also contribute.
Do you accept contributors?
Have a nice weekend,
Karol
If you have done a valuable change, you can send me pull request on github.
Thank you very much!
This info about build script helps me understand why I've run at the initial ant build problems described.
I was suspecting that there might be some crucial outer-level dir layout required (makes sense and I had such thing as well in some modular projects).
I appreciate that you deleted the older script.
Tried out your instructions. Went fine until "ant". Error:
And I'm not an ant expert [yet] ;), so how do I handle the missing "jetbrains/mps/build/ant/antlib.xml" ?
I understand, that antlib.xml is somewhere in MPS [repo], but how do I point to it?
But probably building using MPS UI (to be able to make modifications to the source) will give me much more benefit than ant, right?
So... building in MPS 3.1.4 UI also fails for me as of now:
Reported something related as well, just in case it is a bug in MPS itself: https://youtrack.jetbrains.com/issue/MPS-20654 .
Any help appreciated.
regarding contributions, I was thinking of improving the font of the selected text in mps-multiline/richtext. The font appears different from the rest of the text and is not antialiased. At least on the Mac - screenshot attached - /_persistent/Screenshot%202014-10-20%2018.27.07.png?file=29-3928&v=0&c=true . Maybe this is not a show stopper, but it is very user-facing so it could become annoying/distracting, perhaps lowering the confidence in that component.
Would you think that this is suitable to "get my feet wet" on a "lower-hanging fruit"?
Perhaps you have some list of other "lower hanging fruit" that I could consider tackling?
I have a lot of Swing experience and, [I believe,] deep experience with Java, plus big interest in MPS.
I believe in scratching one's own itch, but I could accept any task as a warm-up.
I've taken a look at https://github.com/slisson/mps-richtext/issues and https://github.com/slisson/mps-multiline/issues , but I think it would be better if you make an explicit suggestion.
Another potential thing is support for mouse-dragging-to-select-text range; although this seems somewhat more difficult.
I'm writing all this, because:
Any comments appreciated.
Thank you again.
Best Wishes,
Karol Depka Pradzinski
Where is the drawing code for EditorCell_Word (so that I can see how the selection is drawn and why the font is different) ?
So far I haven't found anything with "draw" or "Graphics" in it...
It worked with "ant -Dmps.home=/Applications/MPS\ 3.1.4.app/Contents/" :
...
[zip] Building zip: /A/Sync/A/PerDevice/MacOblong/Repos/MPS/mps-all/build/artifacts/mps-sl-all/mps-sl-all.zip
build:
BUILD SUCCESSFUL
Total time: 1 minute 15 seconds
Still please look at my question about where EditorCell_Word is being painted.
Good Night.
But I haven't noticed the issue in "vanilla" MPS...
Maybe it has something to do with this.getStyle() ?
At the moment there is nothing to do in the multiline and richtext projects that we need. If you are interested in developing MPS extensions in general and not only in these two project, you can take a look at my other projects. There is a lot of work to do. For example the tables or the diagram editor. I am very active on the second project at the moment and help on that one is most valuable.
My experimental change (marked with "NOTE MY CHANGE ABOVE" ) does not seem to have effect after rebuilding...
Is this the right place at all?
Via:
Looks better now.
I think I'm gonna make a pull request tomorrow, right?
Screenshot with antialiasing: /_persistent/Screenshot%202014-10-20%2021.57.03.png?file=29-3934&v=0&c=true
Btw, the attached images seem to no longer show up in the forum, right? Is this a bug?
Perhaps you have some hint or code snippet on how to read the value of that option (or any option by analogy)?
Thank you.
Thank you.
Will try it.
Btw, shouldn't it be called turnOn**Anti**AliasingIfPossible ?
I created the pull request.
Sorry it took so long (we are nearing a product release at my dayjob).
https://github.com/slisson/mps-multiline/pull/7 - Turning on antialiasing in MultilineSelection, via EditorComponent.turnOnAliasingIfPossible(g)
It's just a single-line change, so I hope there won't be any problem accepting this change.
Hi.
Thank you for mentioning contribution opportunities in the tables and diagram editors.
Those are very interesting topics.
For now, to be honest I don't have an itch to scratch there, as I don't use them [yet].
I will keep them in mind.
By the way, Sascha are you on LinkedIn?
Best Regards,
Karol
Best,
Karol