Archived Beta Discussions > SlickEdit 2020 v25 Beta Discussion

Sub-word pattern matching for completion with Java enum

(1/2) > >>

rowbearto:
I love the new feature for sub-word pattern matching for completion! I really wanted this feature!

I have found it working in many cases, but I think I found a case where it doesn't work in Java with enums in 25.0.0.1 on Windows x64.

Sample:


--- Code: ---public class EnclosingClass
{
  enum EnumInClass
{
ITEM1,
ITEM2
}

// Constructor
EnclosingClass()
{
// After the dot type "TEM" as below and ITEM1, ITEM2 don't show up in completion list
EnumInClass.TEM
}
}

--- End code ---

Clark:
Have you tried a different "Subword matching stategy:" Languages>Java>AutoComplete

My understanding is that most of the the subword matching strategies are optimized by creating an index based on the symbol name (casing, underscores, etc.). Try "Simple subword matching". I think that one is a raw search. It will be slower. It worked for me.

rowbearto:
It was set to "Stone-skipping with subword boundaries". When I change to "Simple substring matching" it does work.

How come it doesn't work with the default strategy? Is that a bug? Shouldn't it also work with the default strategy?

Clark:
Definitely not a bug. It's an intentional limitation which provides better performance.

rowbearto:
But I don't have this problem with Java non-enums?

Why only this problem with Java enums, but not with Java member functions or member variables?

Since it only happens with enums but not member functions/variables, I suspect that it is a bug.

I don't need to change the strategy with member functions/variables, sub word completion works fine with those and the default strategy.

Navigation

[0] Message Index

[#] Next page

Go to full version