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

Solve shows files empty if they are not in _files #167

Closed
AriPerkkio opened this issue Jul 24, 2024 · 0 comments · Fixed by #168
Closed

Solve shows files empty if they are not in _files #167

AriPerkkio opened this issue Jul 24, 2024 · 0 comments · Fixed by #168
Labels
bug Something isn't working

Comments

@AriPerkkio
Copy link
Member

AriPerkkio commented Jul 24, 2024

Describe the bug

If _solution doesn't contain every single file from the _files, they are shown as empty when Solve button is clicked. In setup below first.js is shown as empty file when Solve is clicked.

├── _files
│   ├── first.js
│   └── second.js
│
└── _solution
    └── second.js

Steps to reproduce

Locally with TutorialKit repo:

  1. Add packages/template/src/content/tutorial/1-basics/1-introduction/2-foo/_solution/src/index.html
  2. Open tutorial and press solve
  3. All other files are shown as empty

Expected behavior

Solution should inherit files from lesson files (_files).

Platform

  • TutorialKit version: 0.0.3
@AriPerkkio AriPerkkio added the bug Something isn't working label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant