Skip to content

Can't rename lesson folder while dev is runningΒ #218

Open
@henrikvilhelmberglund

Description

@henrikvilhelmberglund

Describe the bug

I think this could be a Windows specific issue but I can't rename folders while I've got a dev server running. It works fine if the server is stopped.

It's a bit annoying right now because my ideal workflow is create lesson -> copy paste folder -> rename folder which doesn't really work smoothly right now.

This could also be an Astro issue and not specific to TutorialKit.

Link to a StackBlitz project which shows the error

https://stackblitz.github.com/henrikvilhelmberglund/unocss-tutorial

Steps to reproduce

It may be needed to reproduce locally in VSCode if this is a Windows specific issue.

  1. Start dev server.
  2. Copy paste folder.
  3. Rename folder.

Expected behavior

Expected: folder is renamed.
Actual: (in VSCode) nothing happens. After a while an

Error: EPERM: operation not permitted, rename 'c:\Github\unocss-tutorial\src\content\tutorial\1-basics\2-rules\4-multple-rules-simple copy' -> 'c:\Github\unocss-tutorial\src\content\tutorial\1-basics\2-rules\5-multiple-properties-advanced'

error appears.

Screenshots

No response

Platform

  • TutorialKit version: No idea how to see the used version
  • OS: Windows 10
  • Browser: N/A
  • Version: N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    windowsIssue releated specifically to Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions