-
Notifications
You must be signed in to change notification settings - Fork 758
[sources] Set directory root does not work for debugger.html #7571
Comments
/claim |
Thanks for claiming the issue! 👋 Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to 🦊 Debugger team! |
@jasonLaster Why are we setting context for webpack as launchpad? Is it a requirement? |
@jainsneha23 i think that was a typo... this is what fails for me |
@jasonLaster The problem is with the directory being system absolute path. I am raising a WIP PR. This solves the bug. But the code needs refactoring. |
Thanks. How should we refactor it? |
@jasonLaster Basically we need a proper way to find out if the path is absolute path. This solution just works for this case, and won't last longer. Looks like a hack. To summarise, I can see the issue is with us not able to set the right directory path for absolute paths. The right number of slashes after webpack. So webpack protocol is like webpack:/// and then the system absolute path starts like /Users..... Making the path webpack:////Users.... Why we are setting webpack context to launchpad folder, and not directly bundling debugger.html? If we want to bundle scripts from launchpad, and don't want to change webpack config. Then in addtotree.js, while setting the directory, we have to take care of slashes for absolute paths. Which solution path is better? Even if we change the webpack config for this case, I think we still need to solve this for absolute paths. |
Sorry for not getting back earlier. It would be nice to simplify how we bundle the debugger, but I am more concerned about how the debugger handles paths in the source tree in general. |
Yeah. My initial thought was to simplify the bundling. But then I found other examples where the same issue existed. Like the angular todomvc in debugger examples. So we have to handle absolute paths anyways. |
Is the following STRs related to this report?
ER: Honza |
I hope to work on this this week. @janodvarko i'll look into that then. |
Jason fixed this in MC. |
STR:
ER: see the files below webpack
AR: see no sources
NOTE other dirs work
The text was updated successfully, but these errors were encountered: