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

First function I tried right after download did not work. #92

Open
ANTGOMEZ opened this issue Oct 24, 2022 · 2 comments
Open

First function I tried right after download did not work. #92

ANTGOMEZ opened this issue Oct 24, 2022 · 2 comments

Comments

@ANTGOMEZ
Copy link

ANTGOMEZ commented Oct 24, 2022

VSCODE Version: 1.72.2 (user setup)
Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
Date: 2022-10-12T22:15:18.074Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19044

Downloaded extension, installed, opened javascript code and highlighted the function below. Click on Generate docs button and all I get is a progress bar saying Generating documentation, which stays up for about a minute then goes away and nothing happens. No doc.

function parse_event(event) {
    let message;
    try {
        let record = event.Records[0]
        message = JSON.parse(JSON.parse(record.body).Message);
        message.EventData = JSON.parse(message.EventData);
    }
    catch (error) {
        throw new Error("There's been an error while parsing this data:\n" + JSON.stringify(event) + "\n\n" + error);
    }
    console.log('Event: ' + message.EventId + '  parsed successfully.')
    return message;
}
@zhuanyan-wang
Copy link

Could be related to #103.

You can try to run it again and go to Extensions > Mintlify > Runtime Status to check if there is any error.

@THernandez03
Copy link

Are you using it under WSL ?

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

No branches or pull requests

3 participants