Skip to content

Stack overflow resolving a promise returned by the VS Code API #165

@PEZ

Description

@PEZ

Hi! Thanks for providing Promesa! I totally love it. ♥️

When investigating an issue on Joyride, I noticed that with Promesa versions later than 10.0.594 this function throws an error about exceeding the stack size:

(defn say-clipboard-content! []
  (p/let [; text (.then (vscode/env.clipboard.readText) identity) ; works fine
          text (vscode/env.clipboard.readText) ; crashes
          ]
    (vscode/window.showInformationMessage (str "clipboard contains: " text))))

As I don't know any other promise that encounters the error, I created a tiny VS Code extension to reproduce: https://github.com/PEZ/promesa-stack-overflow

Let me know if I can help with debugging in any way.

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