-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Sourcemap absolute path issue #21900
Comments
To be clear, this issue also occurs if emscripten and the project are on the same drive right? You mentioned on the mailing list that the source map contained a path that looked like: It seems like that both is simply broken, regardless of which drive emsdk is on. Or is it the cast that these bad paths are not generated when emsdk is on the same drive as the project? |
If emscripten and the project are on the same drive, the source will contain relative paths to the emscripten files:
So it looks as if the bad paths are only generated when emsdk and project reside on different drives. |
What does that |
|
That looks correct to me. Do you know where the bad path ( |
|
I'm not sure what you mean by "localhost" here. Are you referring to the http server you are using to serve your source files? If its asked to serve |
sorry for the confusion. So either it is a prerequisite to keep emsdk and all projects on the same drive, or another way must be found so that the browser can find the emsdk files. For local testing as in my use case the local file path may suffice if the browser is able to use it. |
Why do you say it cannot work? Its seems like a limitation of the server "Internet Information Server"? Perhaps it is configurable or perhaps you could try a different server that does support absolute paths somehow? It seems like either you need to find or configure as server that allows absolute paths, or you need to put emsdk in a place where it can be found using a relative path. I'm not sure this is something that can be fixed on the emscripten side. |
Thanks for the suggestion, I will have a look at that. |
Oh I see.. that does seem wrong. So in that case no request is actually being sent to the server? That seems pretty strange. |
I just ran the project in Firefox. It seems to sort out the absolute path correctly, however, when accessing the source file I see an error: |
I have moved the emsdk folder into the path where its files can be addressed using a relative path in the source map. Thanks for your attention to this! |
Please include the following in your bug report:
Version of emscripten/emsdk:
Please include the output
emcc -v
hereemcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.32 (eab98ad)
clang version 17.0.0 (https://github.com/llvm/llvm-project df82394e7a2d06506718cafa347bf7827c79fc4f)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: C:\Users\diete\emsdk\upstream\bin
emscripten is installed on drive C:
the project is installed on drive D:
sourcemap entries point correctly to relative paths on D:
sourcemap entries use an unusable absolute path for emscripten related files
Test project including a simple sourcemap:
https://github.com/dwz8/emtest
The text was updated successfully, but these errors were encountered: