Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » StringMatcher error
StringMatcher error [message #1833200] Tue, 06 October 2020 12:44 Go to next message
Pierre-Philippe Barzin is currently offline Pierre-Philippe BarzinFriend
Messages: 2
Registered: October 2020
Junior Member
Hello everybody,

I would like to use Papyrus to describe several systems.
I've installed Eclipse modeling tools 2020 09 and then Papyrus from help/install new software menu.

When I use the papyrus perspective, i've got this error :

An error has occurred. See error log for more details.
org/eclipse/ui/internal/misc/StringMatcher

Is there somebody that can help me about this error ?

Thanks a lot :)
Re: StringMatcher error [message #1833209 is a reply to message #1833200] Tue, 06 October 2020 14:42 Go to previous messageGo to next message
Cedric Dumoulin is currently offline Cedric DumoulinFriend
Messages: 51
Registered: July 2009
Member
Hi,

It looks like there is an incompatibility between the Papyrus Model Explorer and Eclipse 2020 09.
The Model Explorer seem to crash on startup :-( So, you can't see it.

The only turn around that I have found is to use Eclipse 2020 06 with Papyrus.

Cedric

Re: StringMatcher error [message #1833210 is a reply to message #1833209] Tue, 06 October 2020 15:31 Go to previous messageGo to next message
Pierre-Philippe Barzin is currently offline Pierre-Philippe BarzinFriend
Messages: 2
Registered: October 2020
Junior Member
Damned,

In fact, I want to use archimate on Eclipse. But I need papyrus for it

Bad luck :'(

so, thanks for your analysis ;)
Re: StringMatcher error [message #1833214 is a reply to message #1833210] Tue, 06 October 2020 18:20 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Probably caused by:

[cross-project-issues-dev] Wildcard string matching: removal of org.eclipse.ui.internal.misc.StringMatcher

posted on 14/07/2020

Regards

Ed Willink

Quote:
Hi,

I plan to remove class org.eclipse.ui.internal.misc.StringMatcher in 4.17 M2.

This is an *internal* non-API class in bundle org.eclipse.ui.workbench.

As far as I see there are three direct uses of this class outside of Eclipse platform:

* Mylyn Context: https://bugs.eclipse.org/bugs/show_bug.cgi?id=564946
* Babel Plugins: https://bugs.eclipse.org/bugs/show_bug.cgi?id=564952
* Viatra: https://bugs.eclipse.org/bugs/show_bug.cgi?id=564950

(I found those via a Google search; there might be more.)

These projects should migrate away from importing org.eclipse.ui.internal.misc.StringMatcher.

There is an official API class org.eclipse.ui.dialogs.SearchPattern that can be used
to get the functionality of org.eclipse.ui.internal.misc.StringMatcher.

Since org.eclipse.core.runtime 3.18.0 there is also an API class
org.eclipse.core.text.StringMatcher that implements basic wildcard matching.

The current org.eclipse.ui.internal.misc.StringMatcher does more; it splits the pattern
on whitespace and tries to match sub-patterns against words in the text. There is a
new replacement for this called org.eclipse.ui.internal.misc.TextMatcher since
org.eclipse.ui.workbench 3.120.0, but that is also an internal non-API class.

If your code needs this word-splitting behavior, use org.eclipse.ui.dialogs.SearchPattern,
which has existed for a long time already. Otherwise use org.eclipse.core.text.StringMatcher.

Cheers,

Thomas
Re: StringMatcher error [message #1833268 is a reply to message #1833214] Thu, 08 October 2020 07:59 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
As far as I know, the StringMatcher problems have been fixed in the nightly build. I.e. use the update site http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/master

See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=567323

Ansgar
Re: StringMatcher error [message #1833695 is a reply to message #1833200] Wed, 21 October 2020 19:46 Go to previous messageGo to next message
Paul Grimes is currently offline Paul GrimesFriend
Messages: 2
Registered: July 2020
Junior Member
Will this be backported so that Papyrus can actually be installed and work with the current release?
Re: StringMatcher error [message #1833715 is a reply to message #1833695] Thu, 22 October 2020 11:59 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
No, as Patrick has said in https://www.eclipse.org/forums/index.php/t/1104191/ we focus our work on version 2020-12., and we do not deliver a version for 2020-09.

However, as said before, you can install Papyrus in Eclipse 2020-09 by adding the nightly update site mentioned in my post above.
Re: StringMatcher error [message #1835029 is a reply to message #1833268] Mon, 23 November 2020 16:31 Go to previous messageGo to next message
Jonathan .G is currently offline Jonathan .GFriend
Messages: 1
Registered: November 2020
Junior Member
Quote:
As far as I know, the StringMatcher problems have been fixed in the nightly build. I.e. use the update site http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/master

See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=567323

Ansgar


Thank you ;)
Re: StringMatcher error [message #1838560 is a reply to message #1833715] Mon, 01 March 2021 12:53 Go to previous messageGo to next message
Carlo van Driesten is currently offline Carlo van DriestenFriend
Messages: 1
Registered: March 2021
Junior Member
I have installes 2020 12 and I still experience the same issue. I tried to add the nightly link you have posted for 2020 09 but it did not have any effect (also a little bit expected)
Re: StringMatcher error [message #1838749 is a reply to message #1838560] Thu, 04 March 2021 13:01 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Did you do a fresh installation of Eclipse 2020-12? You do not need a specific update site, as Papyrus is part of the release train.
Re: StringMatcher error [message #1838769 is a reply to message #1838749] Thu, 04 March 2021 19:03 Go to previous messageGo to next message
Tuana GUZEL is currently offline Tuana GUZELFriend
Messages: 3
Registered: February 2021
Junior Member
I also tried everything with the fresh releases but once I upload SysML1.6 or 1.4, it gives me the same error.
Re: StringMatcher error [message #1838932 is a reply to message #1838769] Tue, 09 March 2021 18:33 Go to previous message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
SysML 1.4 and SysML 1.6 have not been released recently. Thus, they depend on an older version of Papyrus which is not compatible with 2020-12. Install SysML via an update-site containing a nightly build of SysML, e.g. https://ci.eclipse.org/papyrus/view/Sysml/job/papyrus-sysml16-master/
Previous Topic:Error reading a model from a gile
Next Topic:Java reversing on Papyrus 5.0.0
Goto Forum:
  


Current Time: Thu Apr 25 13:49:32 GMT 2024

Powered by FUDForum. Page generated in 0.04083 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top