Skip to content
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

[Windows][WSL] no such file or directory 'tmp.Dockerfile' #2

Open
pmvieira93 opened this issue Oct 14, 2022 · 0 comments
Open

[Windows][WSL] no such file or directory 'tmp.Dockerfile' #2

pmvieira93 opened this issue Oct 14, 2022 · 0 comments

Comments

@pmvieira93
Copy link

pmvieira93 commented Oct 14, 2022

[Windows][WSL] no such file or directory 'tmp.Dockerfile'

Description:

If you are openning a project that are saved inside of your WSL system, you are encontured a problem regarding the file path separator.
In this case, for VS Code the file path separator is '' and you are using a '/' hardcoded. That's the reason for your extension throw an error
after try to create a temporary Dockerfile named 'tmp.Dockerfile'.

You can find that issue under the following file:

  • dockerfile-utils/src/buildContainer.ts (line 20)

Solutions:

[1] Search and Parse from current Path of the Dockerfile for the file path separator
[2] Using system env variables to get file path separator according your operator system
[3] Combination of the two options above to get the better solution

You can find in attachment the screenshot of the error that have been happened

Please, let me know if you need anything else!
Any way, according that you are showing, it's a very nice extension and useful.

Thank you
Pedro Vieira (Software Engineer)

DockerLive-Path-Error-Using-Windows-and-WSL.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant