-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
--file flag ignored (possible Windows issue?) #579
Comments
Here is terminal output from the run. The filename is guaranteed correct because it comes from the RunOnSave extension I've installed. I tried replacing antislashes with slashes, no difference. Quotes or no quotes, no difference. Relative or absolute path, no difference. In the output, you can see the referenced file, deleteMajorVersion.psql, is found and processed. PS C:\dev\simplyfirst-catalogues\catalogues\acme-pvc> node_modules/.bin/env-cmd npx pgtyped -c pgtyped-config.json --file 'c:\dev\simplyfirst-catalogues\catalogues\acme-pvc\installation\queries\deleteMajorVersion.psql' |
Same issue here (Mac). Not sure if you ever found a solution for this but it should also crash if the filename is not found, instead you can just throw garbage in there and it will still run everything I assume it is just because of this in the docs
However, my transform is pretty darn simple.. Also removing the transform all together will cause a crash immediately with
|
Only way I was able to get this to work was to create a temp config. Just pass in the transform for the single file you need, also don't pass the So in a bash script (mac or linux)
Kind of a hack but seems to do the trick |
Describe the bug
When I run pgtyped with a --file argument, it is ignored. All files in the workspace are regenerated (or checked), and at the end of the ouput, I see the message "File override specified, but file was not found in provided transforms". But the specified file is in fact found and processed. I'm 100% sure the filename I provide is correct.
I'm running pgtyped on Windows 10 with Node 18.18.0
Expected behavior
pgtyped should only process the specified file. The output should not contain a long list of all the queries in my application.
Test case
I have forked the project and will try and do a test case soon.
The text was updated successfully, but these errors were encountered: