Closed Bug 1642397 Opened 4 years ago Closed 4 years ago

Source Tree hides files with similar names

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(firefox80 fixed)

RESOLVED FIXED
Firefox 80
Tracking Status
firefox80 --- fixed

People

(Reporter: Harald, Assigned: loganfsmyth)

References

(Blocks 2 open bugs)

Details

Attachments

(4 files)

What were you doing?

  1. Open a vue project like https://h160t.csb.app/
  2. Open App.vue via Search or Source Tree

What happened?

App.vue shows up only mapped in source tree, while search shows many more results.

What should have happened?

Complete list in Source Tree and better indicators in Search on which file is source-mapped.

https://vue-vuex-realworld.netlify.app/ is another great example of this.

If you want to open the Home component, webpack:///src/views/Home.vue?493c gets shown by default in the Source Tree while webpack:///src/views/Home.vue is the vue file a developer would want to see. webpack:///src/views/Home.vue?f01b is also in search, but only contains the compiled vue template. I guess either the last or first entry that comes in wins and replaces all others.

The source map seems to have issues, but I can't tell for sure how severe they are: https://sourcemaps.io/report/1591048717188_https%3A%2F%2Fvue-vuex-realworld.netlify.app%2Fjs%2Fapp.7ca7b6fc.js

More debugging – I opened webpack:///src/components/ArticleMeta.vue on https://vue-vuex-realworld.netlify.app/ (via pausing on click). The Source Tree does not highlight the file in the tree on open and Reveal in tree also doesn't work when used on the tab.

Confirmed that this is the issue affecting most vue.js setups: https://github.com/webpack/webpack/issues/1194#issuecomment-638401263

Assignee: nobody → loganfsmyth
Status: NEW → ASSIGNED

Depends on D81266

Depends on D81267

Pushed by loganfsmyth@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/b240470c554b
Part 1: Handle unparseable URLs more consistently and handle query params. r=jlast,davidwalsh
https://hg.mozilla.org/integration/autoland/rev/fa25bc61d997
Part 2: Only pass sources-tree a query param if it should use it. r=jlast,davidwalsh
https://hg.mozilla.org/integration/autoland/rev/c00459529ec8
Part 3: Show query string in SourcesTree when files conflict. r=jlast,davidwalsh
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80
Blocks: 1652755
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: