Comments (4)
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.
Mainly linked with the organize import and scoping issues
from sarl.
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.
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)
- Eclipse error on the editor state. HOT 1
- Use MutabilityDetector for implementing the SARL function purity detector.
- Stack overflow in Eclipse IDE.
- Generate a product for MacOS ARM
- Invalid build date in the Bundle property messages.
- Upgrade to Eclipse 2023-09
- Include BDI engine is SARL.
- Fix CodeQL configuration to compile SARL on the CI server.
- Typo error in sarl-maven-plugin
- Invalid function call resolution.
- Link to demos are not working from the website HOT 1
- Kernel logs are not displayed anymore HOT 2
- Create a sample project from welcome page does not work anymore HOT 1
- Invalid markdown rendering in FAQ.
- Damaged product for macOS HOT 3
- Specification and implementation of communication protocols
- ExecutorService vs Thread with task buffer.
- Use the new syntax of instanceof operator
- Use the 'var' declaration keyword in Java code
- Invalid agent parameter syntax HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sarl.