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: 50
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: 6985
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: 281
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: 281
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 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 ;)
Previous Topic:Timing Diagram: No message possible
Next Topic:How to edit myHelloWorld class code from example in C/C++ editor?
Goto Forum:
  


Current Time: Tue Jan 19 19:32:39 GMT 2021

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

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

Back to the top