vriteio / vrite

Open-source developer content platform
https://vrite.io
Other
1.63k stars 65 forks source link

Bug: Setting source control transformer to mdx sets it back to markdown #67

Closed JorgeAtPaladin closed 6 months ago

JorgeAtPaladin commented 6 months ago

When I try to connect my git repository with mdx content, this content can't be loaded:

Capture d’écran 2024-04-30 à 12 15 33

Capture d’écran 2024-04-30 à 12 16 30

Once I press save:

Capture d’écran 2024-04-30 à 12 16 47

(Notice a separate bug where the editor view infinitely loads now, not sure why that is)

Pressing sync now:

Capture d’écran 2024-04-30 à 12 17 28

Says latest changes synced in the bottom right (already gone) in green and shows this. View of settings by pressing the github logo:

Capture d’écran 2024-04-30 à 12 17 52

Notice the markdown transformer... I have the mdx extension, which is apparent as I could select it.

JorgeAtPaladin commented 6 months ago

Pressing pull also says, "couldn't pull changes"

[{"error":{"message":"Request failed with status code 500","code":-32603,"data":{"code":"INTERNAL_SERVER_ERROR","httpStatus":500,"path":"git.pull"}}}]

EDIT: Had a bug in a secondary content I added through git (no closing "), fixed this couldn't pull changes bit.

areknawo commented 6 months ago

The proper transformer was configured. The only issue was a wrong label being displayed. This should be fixed now.

For the pull issue/comment - I don't have enough details to debug/fix whatever it was. If you encounter it again, please report it in a separate issue.