Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Internal types printed to chat when exporting a library token as an add-on #5284

Open
kwvanderlinde opened this issue Feb 26, 2025 · 0 comments
Labels

Comments

@kwvanderlinde
Copy link
Collaborator

Describe the Bug

After right-clicking a Lib:token and selecting Export Library Token as Addon... and choosing a folder, a completion message is printed to chat to indicate that the export was successful. This intent appears to be for the message to include the name of the exported library, or possibly the Lib:token it was generated from, but instead includes a string along the lines of java.util.concurrent.CompletableFuture@5667d59b[Completed normally].

To Reproduce

  1. Add a token to a map.
  2. Rename the token to Lib:token
  3. Right-click the token, choose Export Library Token as Addon..., pick a folder, and click Save.
  4. Look in chat. You should see the following message:
    Exported java.util.concurrent.CompletableFuture@5667d59b[Completed normally] to … as add-on library. Its likely you will need to make modifications to the add on library to make it work.
    

Expected Behaviour

The message should include the name of the Lib:token or the name of the exported add-on. There should be no Java types included in the message.

Screenshots

No response

MapTool Info

1.15.2, 1.16.0.rc-2

Desktop

Linux Mint 22.1

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant