Code Monkey home page Code Monkey logo

Comments (4)

gbasso avatar gbasso commented on July 19, 2024

I have the same problem in this context (with a correct pom) :

import io.sarl.core.Initialize
import io.sarl.core.Destroy

import io.sarl.core.Lifecycle
import io.sarl.core.DefaultContextInteractions
import io.sarl.lang.core.Agent
import org.arakhne.afc.vmutil.Resources

agent XMLAgent {
    uses Lifecycle, DefaultContextInteractions

    on Initialize {
        Resources.getResource() /* this function and every static functions of Resources are not found */
    }
}

from sarl.

ngaud avatar ngaud commented on July 19, 2024

Mainly linked with the organize import and scoping issues

from sarl.

gallandarakhneorg avatar gallandarakhneorg commented on July 19, 2024

I found a problem in our grammar that is the cause why the imports are always marked as "unused".
Indeed, the way we referenced the Capacity, Event, etc. in the grammar does not permits to Xtext to detect the use of these types.
The patch for solving this problem may also solve the "organize import" problem (need to be tested).

from sarl.

gallandarakhneorg avatar gallandarakhneorg commented on July 19, 2024

The auto-completion feature seems to work better since the last updates in the grammar.

Unfortunately, a minor problem is still here: after selected one of the proposals, the fully-qualified name is put in the code, and these is no import added at the top of the file.

Replacing RawTypeReference by JvmParameterizedTypeReference in the grammar solves the problem (thanks to @srodriguez who gives me the idea to chance this part) :-)

Note that the validator does not need to be updated since it is already checking the type of the elements which used RawTypeReference.

from sarl.

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.