writer
writer copied to clipboard
First function I tried right after download did not work.
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;
}
Could be related to https://github.com/mintlify/writer/issues/103.
You can try to run it again and go to Extensions > Mintlify > Runtime Status to check if there is any error.
Are you using it under WSL ?