Coder Social home page Coder Social logo

Comments (6)

vassik avatar vassik commented on May 20, 2024

I get the same issue, here is the code snip where i get this:

//alarmpsm.thingml
configuration fragment AlarmPIMMQTTConfig {
    instance mqttalarmpsm : MQTTClientPSM   
    instance alarmpim : AlarmPim

    connector alarmpim.mqttport => mqttalarmpsm.mqttport
}

//alarmpim.thingml
configuration AlarmGatewayTest
  @output_folder "/home/tmp/"
  @add_c_libraries "paho-mqtt3a tmlmqtt cson"
{
    group alarmmqttpsm : AlarmPIMMQTTConfig 
    instance gateway : GatewayImpl

    connector gateway.alarmSirene => alarmmqttpsm.alarmpim.sirene
    connector gateway.alarmAlert => alarmmqttpsm.alarmpim.alert
    connector gateway.alarmMonitor => alarmmqttpsm.alarmpim.monitor
}

for the second and third connector in AlarmGatewayTest, the following error pops up

Description Resource Path Location Type
An expection occured while resolving the proxy for: EMFTEXT_INTERNAL_URI_FRAGMENT_14_alert. (java.lang.NullPointerException) gateway_g2_test_config.thingml /ThingMLSamples/thingmlg2demo line 22 EMFText Problem

from thingml.

brice-morin avatar brice-morin commented on May 20, 2024

@Lyadis this one you should look into in priority.

from thingml.

ffleurey avatar ffleurey commented on May 20, 2024

Seems like an EMFText issue... do we have good motivations for keeping this group concept or should we re-think it a bit? @Lyadis is going to write a few tests.

from thingml.

brice-morin avatar brice-morin commented on May 20, 2024

Well, it is useful e.g in the case of Anatoly, as it makes it easy to include a pre-configured PSM fragment into a PIM model, without polluting the model with the PSM details. Then it is more in the methodology we should advise people to use it wisely.

from thingml.

nharrand avatar nharrand commented on May 20, 2024

After some tests, it appears that the problem happens only when the fragment configuration is in a separated file.
Indeed when both configurations are in the same file, the compiler doesn't complain.

from thingml.

brice-morin avatar brice-morin commented on May 20, 2024

Ok. Can you create proper test cases for both cases, so that we can have them included in the test suite.

from thingml.

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.