knuckleswtf / knuckleswtf/scribe
Error when generating Laravel Blade files
- Dominant language
- PHP
- Stars
- 2.3k
- Forks
- 357
- PR merge metrics
- No merged PRs in 30d
Description
### Scribe version
4.22
### PHP version
8.1.17
### Framework
Laravel
### Framework version
10.15.0
### Scribe config
```ruby
title => "MobReviews API"
laravel.docs_url => "/api/docs"
try_it_out.enabled => false
try_it_out.use_csrf => true
auth.enabled => true
auth.default => true
logo => "../img/logo.webp"
```
### What happened?
After running generate it processes all of the routes extracts intro and auth Markdown files but when it gets to Writing Blade docs I get this error.
```local.ERROR: rename(): The first argument to copy() function cannot be a directory {"exception":"[object] (ErrorException(code: 0): rename(): The first argument to copy() function cannot be a directory at /app/vendor/knuckleswtf/scribe/src/Writing/Writer.php:176)```
### Docs
- [X] I've checked [the docs](https://scribe.knuckles.wtf/laravel), the [troubleshooting guide](https://scribe.knuckles.wtf/laravel/troubleshooting), and [existing issues](https://github.com/knuckleswtf/scribe/issues?q=is%3Aissue+), but I didn't find a solution
Contributor guide
Research direction
Start by reproducing API documentation generation with the reported Scribe 4.22, PHP 8.1.17, and Laravel 10.15.0 configuration. Inspect src/Writing/Writer.php around line 176 and the Blade-writing stage; done means generation completes without the directory-related rename error and produces the Blade documentation files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- backend, documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100