Skip to content

dprint 0.61.0 no longer loads dprint-plugin-gofumpt #1306

Closed

Description

@jakebailey

After upgrading to dprint 0.61.0, dprint-plugin-gofumpt no longer loads:

Error initializing module:
...
wasm trap: wasm `unreachable` instruction executed

The same plugin works with dprint 0.57.4. This appears related to #1303: the plugin already runs TinyGo’s _initialize as its Wasm start function, and dprint now calls it again.

Activity

  1. jakebailey commented on Oct 7, 2026

    @jakebailey
    ContributorAuthor

    I think I can fix my own code by deleting _initialize. Wasm is goofy...

  2. jakebailey commented on Oct 7, 2026

    @jakebailey
    ContributorAuthor

    Yeah, ultimately, I think this is my fault when trying to get tinygo wasm blobs running in dprint :<

  3. dsherret commented on Oct 7, 2026

    @dsherret
    Member

    Oops... not sure the way around this one other than to fix gofumpt. Maybe I could hardcode an exception to ignore it for gofumpt versions lower than a certain version?

    Do you have any suggestions on how dprint could change to make this transition easier or what could be done? I'd like to get it running this so that I can ditch the process plugin for dprint-plugin-roslyn (which allows it to run sandboxed, is more portable, and also runs faster for some reason dprint/dprint-plugin-roslyn#36)

  4. dsherret commented on Oct 7, 2026

    @dsherret
    Member

    I should add an integration test to dprint to run all the known plugins on each commit.

  5. jakebailey commented on Oct 7, 2026

    @jakebailey
    ContributorAuthor

    The integration tests would be great, at least just starting up the plugins.

    If you're willing to hardcode something I'm going to fix it on my end right now, but I can understand not wanting to do that too. (Though that would be nice because I typically use dprint installed by cargo for my own dev 😄)

  6. jakebailey commented on Oct 7, 2026

    @jakebailey
    ContributorAuthor

    Thanks for the fix, and sorry to make you hardcode me.....

  7. dsherret commented on Oct 7, 2026

    @dsherret
    Member

    Should be fixed. Sorry about that too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions