nasa / openmct-tutorial

A tutorial for OpenMCT that guides you through integrating historical and realtime telemetry.
Other
246 stars 104 forks source link

Dictionary Plugin not visible in the object tree (part-b-step-2) #45

Closed thomaspaulin closed 2 years ago

thomaspaulin commented 3 years ago

I've used git checkout -f part-b-step-2 to checkout out the tag. I then copied the code snippet to create the dictionary plugin

function DictionaryPlugin() {
    return function install(openmct) {
        openmct.objects.addRoot({
            namespace: 'example.taxonomy',
            key: 'spacecraft'
        });
    }
};

Starting the application I see only "Loading..." in the object tree. I added console log call to the plugin function before and after calling addRoot. These both ran as expected. This says to me something is going wrong in the addRoot function at this particular tag.

I checked out the next step with git checkout -f part-b-step-3 but see the same behaviour. git checkout -f part-c is okay.

I see this behaviour in Chrome (Version 89.0.4389.90) and Firefox (86.0) and ran npm install before starting the application.

kelliott121 commented 3 years ago

I'm seeing this behavior as well.

trusktr commented 3 years ago

Same here. I see that the tutorials have been updated, but the git tags have not been re-assigned yet. Perhaps it is already fixed. Taking a look...

jvigliotta commented 3 years ago

@thomaspaulin Hi! Thanks for pointing this out. Sorry for the delay. This is definitely a bug, as the tutorial states you should be seeing a default "missing" object. We'll take a look at this, but in the meantime, you can skip this step and add the provider in the next step.

jvigliotta commented 2 years ago

Hello all, @thomaspaulin @kelliott121 @trusktr This is working now in our latest version of Open MCT (1.8.1-SNAPSHOT), you wouldn't need to do anything on a fresh install, but if you're working from previous versions, you will want to remove the node_modules folder and the package-lock.json and npm install and npm start.

Going to close this now, if anything else comes up let us know!