mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-09 20:50:20 -05:00
dont fetch online sourcemaps on runtime #714
Open
opened 2025-09-10 23:46:58 -05:00 by giteasync
·
20 comments
No Branch/Tag Specified
master
insider
1.112.01907
1.110.11631
1.110.11607
1.110.11602
1.110.01571
1.109.51242
1.109.41146
1.109.31074
1.109.21026
1.109.01000
1.108.20787
1.108.10359
1.107.18627
1.107.18605
1.106.37943
1.106.37938
1.106.27818
1.105.17075
1.105.17017
1.105.16999
1.105.16954
1.105.06922
1.105.06808
1.104.36664
1.104.26450
1.104.16282
1.104.06131
1.104.06114
1.103.25610
1.103.15539
1.103.15418
1.103.05312
1.102.35058
1.102.24914
1.102.14746
1.102.04606
1.101.24242
1.101.14098
1.101.03933
1.100.33714
1.100.23258
1.100.13210
1.100.03093
1.99.32846
1.99.32704
1.99.32562
1.99.22418
1.99.12392
1.99.02289
1.99.02283
1.99.02277
1.98.2.25078
1.98.2.25077
1.98.2.25072
1.98.1.25070
1.98.0.25067
1.97.2.25045
1.97.1.25044
1.97.0.25037
1.96.4.25026
1.96.4.25017
1.96.3.25013
1.96.2.24355
1.96.1.24353
1.96.0.24352
1.96.0.24347
1.95.3.24321
1.95.3.24320
1.95.2.24313
1.95.1.24307
1.94.2.24286
1.94.2.24284
1.94.1.24283
1.94.0.24282
1.94.0.24281
1.93.1.24256
1.93.0.24253
1.92.2.24228
1.92.1.24225
1.91.1.24193
1.91.0.24190
1.90.2.24171
1.90.1.24165
1.90.0.24158
1.89.1.24130
1.89.0.24127
1.89.0.24126
1.88.1.24104
1.88.1.24102
1.88.0.24096
1.87.2.24072
1.87.1.24068
1.87.0.24060
1.86.2.24057
1.86.2.24054
1.86.2.24053
1.85.2.24019
1.85.1.23348
1.85.0.23343
1.84.2.23319
1.84.2.23317
1.84.2.23314
1.84.0.23306
1.84.1.23311
1.83.0.23283
1.83.1.23285
1.83.0.23277
1.82.3.23277
1.82.2.23257
1.82.0.23250
1.82.1.23255
1.81.1.23222
1.81.0.23216
1.80.1.23208
1.80.2.23209
1.81.0.23215
1.80.0.23188
1.80.1.23194
1.79.2.23166
1.79.1.23164
1.79.0.23159
1.78.1.23131
1.78.2.23132
1.78.1.23130
1.77.3.23102
1.77.1.23095
1.77.2.23101
1.77.0.23095
1.77.0.23093
1.77.0.23090
1.76.0.23062
1.76.1.23069
1.76.2.23074
1.75.1.23040
1.75.0.23033
1.74.3.23010
1.74.2.23007
1.74.0.22342
1.74.1.22349
1.74.2.22355
1.73.1.22314
1.73.0.22306
1.72.2.22289
1.72.2.22286
1.72.1.22284
1.72.0.22279
1.71.2.22258
1.71.1.22256
1.71.0.22245
1.70.2.22230
1.70.1.22229
1.70.1.22228
1.70.1
1.70.0
1.69.2
1.69.1
1.69.0
1.68.1
1.68.0
1.67.2
1.67.1
1.67.0
1.66.2
1.66.1
1.66.0
1.65.1
1.65.2
1.65.0
1.64.1
1.64.2
1.64.0
1.63.1
1.63.2
1.63.0
1.62.3
1.62.2
1.62.1
1.62.0
1.61.2
1.61.0
1.61.1
1.60.2
1.60.1
1.60.0
1.59.1
1.59.0
1.58.2
1.58.0
1.58.1
1.57.1
1.57.0
1.56.0
1.56.1
1.56.2
1.55.0
1.55.1
1.55.2
1.54.2
1.54.3
1.53.1
1.53.2
1.53.0
1.52.1
1.52.0
1.51.0
1.51.1
1.50.1
1.50.0
1.49.2
1.49.3
1.49.1
1.49.0
1.48.1
1.48.2
1.48.0
1.47.0
1.47.1
1.47.2
1.47.3
1.46.0
1.46.1
1.45.0
1.45.1
1.43.2
1.44.0
1.44.1
1.44.2
1.43.1
1.43.0
1.42.0
1.42.1
1.41.1
1.41.0
1.40.2
1.40.0
1.40.1
1.39.0
1.39.1
1.39.2
1.38.1
1.38.0
1.37.1
1.37.0
1.36.1
1.36.0
1.35.1
1.35.0
1.34.0
1.33.1
1.33.0
1.32.2
1.32.3
1.32.1
1.32.0
1.31.1
1.31.0
1.30.2
1.30.0
1.30.1
1.29.1
1.29.0
1.28.2
1.28.1
1.28.0
1.27.2
1.27.1
1.26.1
1.26.0
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VSCodium/vscodium#714
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @milahu on GitHub.
Originally assigned to: @daiyam on GitHub.
Describe the bug
many javascript files in
lib/vscode/resources/have online sourcemapsexample:
this is unwanted because
Please confirm that this problem is VSCodium-specific
Please confirm that the issue/resolution isn't already documented
Additional context
Add any other context about the problem here.
on nixos linux ...
vscodium-online-sourcemaps.txt
@daiyam commented on GitHub:
To be useful, the sourcemaps need to hosted somewhere since MS don't include them since they would increase the install size of the app.
Since the url needs to be hardcoded, to use a local url would be difficult (for all systems). And the weight of those files can be an issue to include them adhoc.
It only an issue to debug vscode or one of its components.
@milahu commented on GitHub:
sourceMappingURLcan be a filename, then its relative to dirnamemaybe we can compress them as .js.map.gz?
but there is another problem ...
all URLs produce HTTP 404, because sourcemaps are only generated in macos builds, and there is no macos build for my vscode versions
https://github.com/microsoft/vscode/issues/39824
https://github.com/Microsoft/vscode/issues/43487
@milahu commented on GitHub:
... to
${workdir}/sourcemaps, but this fails in my casedebug console:
... caused by debugging an vscode extension (vscode-nix-ide)
@daiyam commented on GitHub:
@milahu yes, they are loaded only if you open the Developer Tools in the Help menu.
Should we keep them? I don't know.
@milahu commented on GitHub:
also some stack traces will (try to) fetch these sourcemaps
sourcemaps are useful for debugging,
so ideally, prefetch the sourcemaps on build, and patch the urls
@daiyam commented on GitHub:
Yeah, I forgot... it must be linked the BUILD_SOURCEVERSION which is now different between VSCode and VSCodium (due to the release number)
So a solution is needed, either remove them or find a solution to have them locally...
@Crystal-RainSlide commented on GitHub:
One may just turn off "Enable JavaScript source maps" in the Chromium Dev Tools settings:
This is
electron.devtools.preferences.jsSourceMapsEnabled: "true" | "false"(yes, string),in the
<user data directory, see this>/Preferencesfile, a JSON file without a proper.jsonsuffix.Since we have good reasons, maybe we can just preload this preference and tell user about this change somewhere.
But...
This is related to a larger topic: Should the Web Dev Tools fetch source maps automatically? Should source map errors be printed on the main console?
Personally, I want Dev Tools do nothing when I launch them, but fetch the source map when I inspect a source. The source map fetch errors should be printed to somewhere else, like Firefox's browser console. Maybe just leave one
infolevel message on the main console, to indicate there is source map error(s) on this Dev Tools instance.Source map is just for convenience, not essential. It shoule be fetched on demand, not unconditionally.
@daiyam commented on GitHub:
Maybe a script that do all of that??? Locate the app, get the version, download the maps and update the urls.... ???
Hum, Snap, AppImage and macOS might be an issue.
@GitMensch commented on GitHub:
Generating them with the CI build and ideally have them uploaded along with changing the URL.
Additional: a script that change the URLs to the home directory and the option to download them packed.
... wishful thinking ...
@daiyam commented on GitHub:
I know... but the app is installed at different locations. Unless if we can specify a standard location like the user profile or in the same directory as the extensions, it will be difficult.
Then, you will need to download a
tar.gzorzipfile and uncompress the maps to that location.@daiyam commented on GitHub:
+1
@github-actions[bot] commented on GitHub:
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!
@r3m0t commented on GitHub:
I think this needs to be an option- I can't debug my vscodium without these source maps, so they should be included. For the VSCodium that's downloadable on GitHub, we can assume nobody will use the source map so the sourceMappingURL line can be removed, or the domain name replaced with a
.invaliddomain.@github-actions[bot] commented on GitHub:
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!
@milahu commented on GitHub:
or you know... build vscodium from source #887 #420
one downside is the long build time
this could be reduced by replacing
tscwithswc, see also https://github.com/microsoft/vscode/pull/163660@milahu commented on GitHub:
still
@milahu commented on GitHub:
still an issue
@daiyam commented on GitHub:
+1
@github-actions[bot] commented on GitHub:
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!
@github-actions[bot] commented on GitHub:
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!