[BUG]: Line Endings should be LF for installSQLtools.sh
Snailedlt opened this issue · comments
When trying to open the repo in vscode through the Dev Container: Open Folder in Container...
command, I received an error. Turned out the way to fix the error was to change the line endings of the file (thanks ChatGPT!), which could be done in VSCode by clicking on the CRLF
symbol in the bottom right corner and selecting LF
instead of CRLF
. I'm not sure if this data can be saved in the repo or not, but if it can, it could potensially save others from hours of troubleshooting:
ChatGPT conversation showing the error and ChatGPT's answers:
https://sharegpt.com/c/Eb5jO4b
Aha, you can set up consistent line endings. Documentation here: https://code.visualstudio.com/docs/devcontainers/containers#_working-with-git
Thanks for this issue! I've run into this before with dev containers, I just forgot to include a .gitattributes
this time.