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

Stale package tools/dart2js/sourceMapViewer #60263

Open
lrhn opened this issue Mar 6, 2025 · 4 comments
Open

Stale package tools/dart2js/sourceMapViewer #60263

lrhn opened this issue Mar 6, 2025 · 4 comments
Assignees
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. web-dart2js

Comments

@lrhn
Copy link
Member

lrhn commented Mar 6, 2025

The directory toos/dart2js/sourceMapViewer contains a pubspec.yaml which isn't read by the SDK tools/generate_package_config.dart script and isn't valid for any modern Pub (no min-SDK constraint).
It's a dead config.

The bin/ directory script has dependencies on the http_server and router packages which are not in the SDK and not in the SDK DEPS, so they're not available by default.

That means that the script can't run, and Pub can't run to fetch its dependencies.
It's effectively dead code which cannot run.

The directory should either be brought up to date, or it should be deleted. (I'm guessing the latter.)

@lrhn lrhn added the area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. label Mar 6, 2025
@biggs0125 biggs0125 self-assigned this Mar 6, 2025
@sigmundch
Copy link
Member

The source-map viewer is a tool used by the team to help diagnose issues in generated source-maps. We first introduced it when overhauling the source-maps in dart2js more than 5 years ago, but it has proven to be useful multiple times, and I recall @nshahan used it recently too.

My preference is not to delete it. That said, the dependencies here are not an SDK dependency by itself. This code could easily live outside the SDK repo without issue, but we placed it here for our convenience.

@biggs0125
Copy link

biggs0125 commented Mar 6, 2025

Thanks for the context, Siggi. Do you know if the neighboring tools/dart2js/angular2_testing_deps or tools/dart2js/class_generator are used? Both of those seem out of date.

@sigmundch
Copy link
Member

Yeah, both seem like we can delete. The angular2 references from the benchmarks repo was removed in 2020, so it's clearly unused.

@nshahan
Copy link
Contributor

nshahan commented Mar 6, 2025

I recall @nshahan used it recently too. My preference is not to delete it.

+1 This is a useful tool for debugging problematic sourcemaps from dart2js and DDC compiled code.

copybara-service bot pushed a commit that referenced this issue Mar 6, 2025
These files haven't been touched in years and, based on my queries, no one is using them.

Bug: #60263
Change-Id: Ie23597bfc9aa624ff63645660aded6c483cfbfc2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/414160
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. web-dart2js
Projects
None yet
Development

No branches or pull requests

4 participants