Home AMX User Forum Scripting Languages

Import "mojo" could not be resolved

It's the first time for me to try Muse. That's what I encountered in Visual Studio Code. The script did load and ran. But since context was not import, I was not able to see its properties and methods.

Comments

  • ychych Posts: 44

    I also encountered the same problem when testing Muse using Groovy, unable to provide intelligent prompts. It's better to wait for Muse's JDK to be released, as using Ideas is more convenient than VS Code!

  • Master_HeMaster_He Posts: 3

    The answer comes from a guru of our company:
    if you right click on the directory of your program you can grab the definitions if your logged into a controller

    after that, you might or might not need to restart vscode/reload the folder.

  • Master_He,

    My context menu for that directory does not contain "Create Mojo Local Program" or "Fetch Program Type Definitions". It only contains "Upload to Mojo Controller". I am logged into the controller, and able to upload programs to it. I am also on the latest f/w on the Muse. Any ideas why I don't have the Fetch entry? Any other way that I can see the methods/parameters of any given class or type?

Sign In or Register to comment.