Giter Site home page Giter Site logo

Comments (11)

iloveeclipse avatar iloveeclipse commented on July 18, 2024

@trancexpress : FYI

from eclipse.jdt.core.

iloveeclipse avatar iloveeclipse commented on July 18, 2024

https://github.com/eclipse-platform/eclipse.platform.text/blob/b8b0ff5afae1d8a8a2d9a85379adf80afb82030b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/MarkerAnnotationPreferences.java#L204

from eclipse.jdt.core.

trancexpress avatar trancexpress commented on July 18, 2024

Snippet to reproduce with:

public class Test {
	public static void main(String[] args) {
		StackWalker.getInstance().forEach(s -> System.out.println(s));
	}
}

Works with:

Eclipse SDK
Version: 2023-03 (4.27)
Build id: I20221206-1800

Doesn't work with:

Eclipse SDK
Version: 2023-03 (4.27)
Build id: I20230118-1800

Probably one of the recent search fixes broke this.

from eclipse.jdt.core.

trancexpress avatar trancexpress commented on July 18, 2024

Bisection leads to: 8844381

Reverting the commit on top of current master "fixes" the bug.

So this is a regression from #532.

from eclipse.jdt.core.

iloveeclipse avatar iloveeclipse commented on July 18, 2024

Thanks Simeon for bisecting.
@gayanper : could you please check this regression?

from eclipse.jdt.core.

gayanper avatar gayanper commented on July 18, 2024

I can have a look at it this weekend. Meanwhile @trancexpress could try with switching off the metaindex ? Then we can be sure that its because of missing information in metaindex rather than a logic issue in the new code.

from eclipse.jdt.core.

trancexpress avatar trancexpress commented on July 18, 2024

I can have a look at it this weekend. Meanwhile @trancexpress could try with switching off the metaindex ? Then we can be sure that its because of missing information in metaindex rather than a logic issue in the new code.

I assume you mean running Eclipse with -Dorg.eclipse.jdt.disableMetaIndex=true. In that case, yes, the bug is gone with this system property.

from eclipse.jdt.core.

gayanper avatar gayanper commented on July 18, 2024

I can have a look at it this weekend. Meanwhile @trancexpress could try with switching off the metaindex ? Then we can be sure that its because of missing information in metaindex rather than a logic issue in the new code.

I assume you mean running Eclipse with -Dorg.eclipse.jdt.disableMetaIndex=true. In that case, yes, the bug is gone with this system property.

Have you also tried reindexing the workspace ?

Because prior to the fix you found, there was a improvement for metaindex to include some missing type information for reference search. That improvement actually increment the index version so that when that change is deployed we should have a workspace reindex happening, may be that didn't worked.

from eclipse.jdt.core.

trancexpress avatar trancexpress commented on July 18, 2024

Have you also tried reindexing the workspace ?

I'm reproducing the bug with a clean workspace, a new Java project and copy-pasted snippet. There shouldn't be any index to rebuild.

from eclipse.jdt.core.

gayanper avatar gayanper commented on July 18, 2024

@testforstephen @iloveeclipse please check the PR and let me know if you find any issues.

from eclipse.jdt.core.

iloveeclipse avatar iloveeclipse commented on July 18, 2024

Fixed via #907

from eclipse.jdt.core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.