Code Monkey home page Code Monkey logo

Comments (9)

cdietrich avatar cdietrich commented on August 15, 2024

This is the Analysis of the Problem

  • asm creates classes with uris like java:/Objects/org.eclipse.xtend.core.tests.build.Outer$Inner$InnerMost#org.eclipse.xtend.core.tests.build.Outer$Inner$InnerMost
  • index entries look like org.eclipse.xtend.core.tests.build.Outer..Inner.InnerMost
  • IndexedJvmTypeAccess uses the $URI to do the index lookup and will not find anything.

@szarnekow and i assume that we have to iterate over all possibilities there. (replacing $with .in all combinations.

@svenefftinge @JanKoehnlein what do you think.

from xtext-extras.

cdietrich avatar cdietrich commented on August 15, 2024

Provided a prototype impl and some test (here and at https://github.com/eclipse/xtext-xtend/tree/cd_extras_issue30

Feedback and input is welcome. At InnerClassNameVariants i currently have 2 impls that (should) do the same. i dont know which one i (dis)like more.

from xtext-extras.

cdietrich avatar cdietrich commented on August 15, 2024

feedback in welcome. all the rebasing drives me nuts

from xtext-extras.

svenefftinge avatar svenefftinge commented on August 15, 2024

Thx christian, for all the analysis. I think there is something wrong with how the java language contributes to the index, because this issue only seems to occur in that scenario.
I hope I can find time to look at this ASAP.

from xtext-extras.

cdietrich avatar cdietrich commented on August 15, 2024

i debugged that as well, the visit methods build the names this way

from xtext-extras.

cdietrich avatar cdietrich commented on August 15, 2024

i had a discussion with @szarnekow on that. he meant

wenn asm die klassen anschaut, ist nicht bekannt, ob ein nested class referneziert ist, oder ein top-level-class

thus i went the way to address this in the access

from xtext-extras.

svenefftinge avatar svenefftinge commented on August 15, 2024

Ok, in that case being more flexible with incoming names seems to be the best solution.
I like the stream-based approach a bit more.

from xtext-extras.

svenefftinge avatar svenefftinge commented on August 15, 2024

A PR would be awesome! :)

from xtext-extras.

cdietrich avatar cdietrich commented on August 15, 2024

Fixed in Xtext 2.11

from xtext-extras.

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.