lucid icon indicating copy to clipboard operation
lucid copied to clipboard

Unable to Seed Selected File

Open venki0004 opened this issue 5 years ago • 10 comments

Package version

Adonis V5

Node.js and npm version

Node 14.15 npm 6.14.8

Sample Code (to reproduce the issue)

Unable to run seed on selected file even path is correct its throws following error image

command

node ace db:seed --files "./database/seeders/Template.ts"

BONUS (a sample repo to reproduce the issue)

codebase structure image

venki0004 avatar Jun 18 '21 07:06 venki0004

Unable to reproduce. Please share a repo with the code that can help me reproduce the issue.

Screen Shot 2021-06-21 at 10 35 09 AM

thetutlage avatar Jun 21 '21 05:06 thetutlage

@thetutlage

this is my repo url https://github.com/venki0004/adonis-typescript

venki0004 avatar Jun 21 '21 05:06 venki0004

Make sure you are using the latest versions of all packages. Here https://github.com/venki0004/adonis-typescript/blob/main/package.json#L28 lucid version is not latest

thetutlage avatar Jun 21 '21 06:06 thetutlage

I updated all my packages to latest version

but still I`m facing same issue

venki0004 avatar Jun 22 '21 05:06 venki0004

Can you confirm, are you using Windows?

thetutlage avatar Jun 30 '21 14:06 thetutlage

@thetutlage Yes i`m using Windows 64bit

venki0004 avatar Jul 01 '21 14:07 venki0004

Can you upgrade to the latest version of lucid (released today) and then check?

thetutlage avatar Jul 01 '21 14:07 thetutlage

@thetutlage

I updated lucid to latest version but still same issue. after look into lucid module this cause of normalize_path

image

that normalize is applied for selected files but const files = await runner.getList(); have a un normalise patths so file name comparison is not working

venki0004 avatar Jul 02 '21 11:07 venki0004

Published another release. Should be good after that :)

thetutlage avatar Jul 05 '21 04:07 thetutlage

@thetutlage After Update lucid to 15.0.3 its working fine.

venki0004 avatar Jul 05 '21 05:07 venki0004