You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Navrooz, based on your configuration in vulcan.yaml, the files user.sql and user.yaml need to be placed in the sqls folder in order for it to run correctly.
Please create a sqls folder and move user.sql and user.yaml into it, then try again. Thank you.
I tried but as I shared in the screenshots, I get an error 'Not Found' and blank 'localhost:3000/doc' page. It seems like Vulcan is not parsing the endpoint.
Hi @Navrooz ,
Are you using the vulcan start command in the vulcanTest-1 directory?
We recommend that the working directory be in the same location as the vulcan.yaml.
If you want to use the vulcan start --config ./vulcanTest-1/vulcan.yaml command from the upper directory, you need to add ./vulcanTest-1/ to the path of folderPath, 'profiles', keyFilename in vulcan.yaml and profiles.yaml.
I am executing the vulcan start command from the vulcanTest-1 directory which has vulcan.yaml, profiles and creds file in it.The result is still the same (Blank home page with no endpoints and 'Not Found' error on API endpoint). Please let me know if you need any files from my end for investigation.
You are right, the problem is with listing issue .I tried to reproduce the issue and below are my findings.
1.The demo project https://vulcansql.com/docs/quickstart runs fine. However, if I modify the sql path in vulcan.yaml then I am encountering the same issue as with my project i.e. no endpoints appearing in localhost:3000/doc
2. I changed code as described in your above comment and tried executing the project but no luck.
3.Tried running the project in Linux environment on Windows using WSL. It's not able to install dependencies and fails at building project stage.
hi @Navrooz thanks for your patience. This windows path issues has been fixed at release v0.3.2.
Please upgrade your version and let us know if it resolves your issues. We'll close this issue in a few days if it's resolved or other issues come up unrelated to this windows path parsing issue.
If there are other windows development issues, please do share with us at our discussion thread: #148
Activity
wwwy3y3 commentedon Feb 4, 2023
hi @Navrooz , thanks for your issue report. We'll check out your attached files and see what's going on.
JSYOU commentedon Feb 4, 2023
Hi @Navrooz, based on your configuration in
vulcan.yaml, the filesuser.sqlanduser.yamlneed to be placed in thesqlsfolder in order for it to run correctly.Please create a
sqlsfolder and moveuser.sqlanduser.yamlinto it, then try again. Thank you.Navrooz commentedon Feb 6, 2023
@JSYOU -Hi, Thank you for your reply !

Both the user.sql and user.yaml files are already in sqls folder.
JSYOU commentedon Feb 6, 2023
Hi @Navrooz ,
Have you successfully executed your project?
Navrooz commentedon Feb 6, 2023
I tried but as I shared in the screenshots, I get an error 'Not Found' and blank 'localhost:3000/doc' page. It seems like Vulcan is not parsing the endpoint.
JSYOU commentedon Feb 7, 2023
Hi @Navrooz ,
Are you using the
vulcan startcommand in thevulcanTest-1directory?We recommend that the working directory be in the same location as the
vulcan.yaml.If you want to use the
vulcan start --config ./vulcanTest-1/vulcan.yamlcommand from the upper directory, you need to add./vulcanTest-1/to the path offolderPath, 'profiles',keyFilenameinvulcan.yamlandprofiles.yaml.for example:

Directory Structure
vulcan.yaml

profiles.yaml

Navrooz commentedon Feb 7, 2023
Hi @JSYOU ,
Thank you for your valuable suggestion.
I am executing the
vulcan startcommand from the vulcanTest-1 directory which has vulcan.yaml, profiles and creds file in it.The result is still the same (Blank home page with no endpoints and 'Not Found' error on API endpoint). Please let me know if you need any files from my end for investigation.wwwy3y3 commentedon Feb 7, 2023
hi @Navrooz
Can you also provide following information ?
Version:
Use command
vulcan versionto get your packages' versionOS: macOS, windows 11 ...
Navrooz commentedon Feb 7, 2023
Yes sure. Here's the extract:

OS: Windows 11
oscar60310 commentedon Feb 8, 2023
It looks like a file listing issue on Windows, we handled it when initializing projects but not for searching sql files.
https://github.com/Canner/vulcan-sql/blob/develop/packages/cli/src/commands/init.ts#L131
https://github.com/Canner/vulcan-sql/blob/develop/packages/build/src/lib/schema-parser/schema-reader/fileSchemaReader.ts#L59
Navrooz commentedon Feb 8, 2023
So, is there any workaround for sqls in Windows ?
Navrooz commentedon Feb 10, 2023
You are right, the problem is with listing issue .I tried to reproduce the issue and below are my findings.
1.The demo project https://vulcansql.com/docs/quickstart runs fine. However, if I modify the sql path in vulcan.yaml then I am encountering the same issue as with my project i.e. no endpoints appearing in localhost:3000/doc
2. I changed code as described in your above comment and tried executing the project but no luck.
3.Tried running the project in Linux environment on Windows using WSL. It's not able to install dependencies and fails at building project stage.
wwwy3y3 commentedon Feb 13, 2023
@Navrooz We're fixing this windows issue in #145.
Please give us some time to do a proper PR review.
We'll release a new version after this PR get merged.
wwwy3y3 commentedon Feb 18, 2023
hi @Navrooz thanks for your patience. This windows path issues has been fixed at release v0.3.2.
Please upgrade your version and let us know if it resolves your issues. We'll close this issue in a few days if it's resolved or other issues come up unrelated to this windows path parsing issue.
If there are other windows development issues, please do share with us at our discussion thread: #148
Navrooz commentedon Feb 22, 2023
@wwwy3y3 Thank you for the update!
I am able to establish the connection and receive response now.
wwwy3y3 commentedon Feb 22, 2023
@Navrooz Glad to hear that!
If there are other windows development issues come up, please do let us know at our discussion thread: #148
Closing this issue.