Open Max-109 opened 3 weeks ago
Hi there, @Max-109! I'm here to help you with any bugs, questions, or contributions you may have. Let's work together to resolve the issue you're experiencing.
To resolve the "Invalid value --with-l10n-base" error, ensure that the specified directory for locales exists. The configuration specifies the localization base directory as:
ac_add_options --with-l10n-base="$PWD/browser/locales"
Verify that the directory C:\Users\Max\Documents\desktop\engine\browser\locales
exists in your project structure. If it does not exist, you should create it or update the path to point to the correct existing directory that contains the localization files.
Additionally, you may need to initialize and update the l10n
submodule to ensure the localization files are correctly fetched. You can do this by running:
git submodule update --init --recursive
This command will clone the l10n
submodule from the specified URL into the l10n
directory, which you can then use as your localization base. Make sure to adjust the --with-l10n-base
path accordingly if needed [1][2].
To continue talking to Dosu, mention @dosu.
Hi there, @Max-109! I'm here to help you with any bugs, questions, or contributions you may have. Let's work together to resolve the issue you're experiencing.
To resolve the "Invalid value --with-l10n-base" error, ensure that the specified directory for locales exists. The configuration specifies the localization base directory as:
ac_add_options --with-l10n-base="$PWD/browser/locales"
Verify that the directory
C:\Users\Max\Documents\desktop\engine\browser\locales
exists in your project structure. If it does not exist, you should create it or update the path to point to the correct existing directory that contains the localization files.Additionally, you may need to initialize and update the
l10n
submodule to ensure the localization files are correctly fetched. You can do this by running:git submodule update --init --recursive
This command will clone the
l10n
submodule from the specified URL into thel10n
directory, which you can then use as your localization base. Make sure to adjust the--with-l10n-base
path accordingly if needed [1][2].To continue talking to Dosu, mention @dosu.
Yes, i already have done what you suggested me
@mauro-balades Hi, sorry for tagging but your help would definitely help here :)
Just remove the line that contains that path in configs/common/mozconfig
Just remove the line that contains that path in configs/common/mozconfig
I forgot to mentio that but I've tried doing it
@mauro-balades Nevermind, i removed that line and ye now i dont that error, however, i dont get this _00:00:35 C:\Users\Max\Documents\Zen\desktop\engine\obj-x86_64-pc-windows-msvc\ipc\ipdl\PSocketProcess.ipdl:21: error: can't locate include file `PSandboxTesting.ipdl' 00:00:35 Specification could not be parsed. 00:00:35 mozmake[4]: [Makefile:31: ipdl.track] Error 1 00:00:35 mozmake[3]: [C:/Users/Max/Documents/Zen/desktop/engine/config/recurse.mk:94: ipc/ipdl/export] Error 2 00:00:35 mozmake[3]: * Waiting for unfinished jobs.... 00:00:37 necko_deps_built = C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/mozIThirdPartyUtil.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIArrayBufferInputStream.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAsyncStreamCopier.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAsyncStreamCopier2.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAsyncVerifyRedirectCallback.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAuthInformation.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAuthModule.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAuthPrompt.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAuthPrompt2.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAuthPromptAdapterFactory.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAuthPromptCallback.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIAuthPromptProvider.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIBackgroundFileSaver.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIBaseChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIBufferedStreams.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIByteRangeRequest.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsICacheInfoChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsICachingChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsICancelable.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsICaptivePortalService.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIChannelEventSink.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIChildChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIClassOfService.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIClassifiedChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIContentSniffer.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIDHCPClient.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIDashboard.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIDashboardEventNotifier.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIDownloader.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIEncodedChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIExternalProtocolHandler.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIFileStreams.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIFileURL.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIForcePendingChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIFormPOSTActionChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIHttpAuthenticatorCallback.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIHttpPushListener.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIIOService.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIIncrementalDownload.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIIncrementalStreamLoader.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIInputStreamChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIInputStreamPump.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIInterceptionInfo.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsILoadContextInfo.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsILoadGroup.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsILoadGroupChild.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsILoadInfo.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIMIMEInputStream.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIMultiPartChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINestedURI.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINetAddr.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINetUtil.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINetworkConnectivityService.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINetworkInfoService.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINetworkInterceptController.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINetworkLinkService.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINetworkPredictor.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINetworkPredictorVerifier.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsINullChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIParentChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIParentRedirectingChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIPermission.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIPermissionManager.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIPrivateBrowsingChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIProgressEventSink.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIPrompt.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIProtocolHandler.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIProtocolProxyCallback.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIProtocolProxyFilter.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIProtocolProxyService.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIProtocolProxyService2.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIProxiedChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIProxiedProtocolHandler.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIProxyInfo.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIRandomGenerator.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIRedirectChannelRegistrar.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIRedirectHistoryEntry.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIRedirectResultListener.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIRequest.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIRequestContext.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIRequestObserver.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIRequestObserverProxy.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIResumableChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISecCheckWrapChannel.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISecureBrowserUI.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISensitiveInfoHiddenURI.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISerializationHelper.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIServerSocket.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISimpleStreamListener.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISimpleURIMutator.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISocketFilter.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISocketTransport.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISocketTransportService.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISpeculativeConnect.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIStandardURL.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIStreamListener.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIStreamListenerTee.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIStreamLoader.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsIStreamTransportService.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISyncStreamListener.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsISystemProxySettings.idl C:/Users/Max/Documents/Zen/desktop/engine/netwerk/base/nsITLSServerSocket.idl C:/Users/Max/Documen 00:00:37 config/makefiles/xpidl/xptdata.stub 00:00:40 mozmake[2]: * [C:/Users/Max/Documents/Zen/desktop/engine/config/recurse.mk:34: export] Error 2 00:00:40 mozmake[1]: [C:/Users/Max/Documents/Zen/desktop/engine/config/rules.mk:359: default] Error 2 00:00:40 mozmake: [client.mk:60: build] Error 2 00:00:40 W 277 compiler warnings present. 00:00:40 C:/Users/Max/Documents/Zen/desktop/engine/obj-x8664-pc-windows-msvc/config.status is out of date with respect to C:/Users/Max/Documents/Zen/desktop/engine/browser/config/version.txt 00:00:40 Configure complete! 00:00:40 Be sure to run |mach build| to pick up any changes 00:00:40 Parallelism determined by memory: using 16 jobs for 16 cores based on 31.9 GiB RAM and estimated job size of 1.0 GiB 00:00:40 Single process terminated successfully
Any ideas? @mauro-balades
yo, i was able to fix it by replacing that line with
ac_add_options --with-l10n-base="C:\\""${PWD:2}/browser/locales"
the problem is that that line returns /c/{wherever the locales are}, but windows uses c://{something}
yo, i was able to fix it by replacing that line with
ac_add_options --with-l10n-base="C:\\""${PWD:2}/browser/locales"
the problem is that that line returns /c/{wherever the locales are}, but windows uses c://{something}
i remove that line and i havent got that error since, however, now i get another error ( check my latest message from above). I will try your method tho, maybe it will solve both errors
Try npm run bootstrap and npm run init, cause from what I can tell it seems like it's just missing a file that's supposed to be there
Try npm run bootstrap and npm run init, cause from what I can tell it seems like it's just missing a file that's supposed to be there
yeah ive tried that
Try npm run bootstrap and npm run init, cause from what I can tell it seems like it's just missing a file that's supposed to be there
yeah ive tried that Are you absolutely sure
--with-l10n-bas
e Is unnecessary? Because other than that I'd just restart if I were you
Try npm run bootstrap and npm run init, cause from what I can tell it seems like it's just missing a file that's supposed to be there
yeah ive tried that Are you absolutely sure
--with-l10n-bas
e Is unnecessary? Because other than that I'd just restart if I were you
nvm, i just tried doing npm run init and got this _" [FINISH] Apply C:\Users\Max\Documents\Zen\desktop\src\browser\base\content\browser-xhtml.patch [FINISH] Apply C:\Users\Max\Documents\Zen\desktop\src\browser\base\content\main-popupset-inc-xhtml.patch [FAIL] Apply C:\Users\Max\Documents\Zen\desktop\src\browser\base\content\navigator-toolbox-inc-xhtml.patch [FAIL] Apply 108 git patches
ERROR An error occurred while running command ["import"]:
Error: Command failed with exit code 1: git apply --ignore-space-change --ignore-whitespace --verbose C:\Users\Max\Documents\Zen\desktop\src\browser\base\content\navigator-toolbox-inc-xhtml.patch
Checking patch browser/base/content/navigator-toolbox.inc.xhtml...
error: while searching for:
# License, v. 2.0. If a copy of the MPL was not distributed with this?
# file, You can obtain one at http://mozilla.org/MPL/2.0/.?
?
<toolbox id="navigator-toolbox">?
?
<vbox id="titlebar">?
<!-- Menu -->?
error: patch failed: browser/base/content/navigator-toolbox.inc.xhtml:2
error: browser/base/content/navigator-toolbox.inc.xhtml: patch does not apply
error: while searching for:# License, v. 2.0. If a copy of the MPL was not distributed with this?# file, You can obtain one at http://mozilla.org/MPL/2.0/.??<toolbox id="navigator-toolbox">?? <vbox id="titlebar">? <!-- Menu -->?error: patch failed: browser/base/content/navigator-toolbox.inc.xhtml:2error: browser/base/content/navigator-toolbox.inc.xhtml: patch does not apply
• makeError (C:\Users\Max\Documents\Zen\desktop\node_modules\execa\lib\error.js:60:11)
• handlePromise (C:\Users\Max\Documents\Zen\desktop\node_modules\execa\index.js:118:26)
• process.processTicksAndRejections (node:internal/process/task_queues:105:5)
• async Object.apply (C:\Users\Max\Documents\Zen\desktop\node_modules\@zen-browser\surfer\dist\commands\patches\git-patch.js:25:34)
• async C:\Users\Max\Documents\Zen\desktop\node_modules\@zen-browser\surfer\dist\commands\patches\command.js:84:95
• async TaskList.run (C:\Users\Max\Documents\Zen\desktop\node_modules\@zen-browser\surfer\dist\utils\task-list.js:68:24)
• async TaskList.run (C:\Users\Max\Documents\Zen\desktop\node_modules\@zen-browser\surfer\dist\utils\task-list.js:74:11)
• async applyPatches (C:\Users\Max\Documents\Zen\desktop\node_modules\@zen-browser\surfer\dist\commands\patches\command.js:105:5)
00:00:02 Exiting due to error.
"_i have that patch file, and its 1:1 with the latest one - here it is "diff --git a/browser/base/content/navigator-toolbox.inc.xhtml b/browser/base/content/navigator-toolbox.inc.xhtml index 12fa0cf79aade28581016adf96df85386dabdcef..846add9b040abf0f7378ebaaadef007013f5a1ec 100644 --- a/browser/base/content/navigator-toolbox.inc.xhtml +++ b/browser/base/content/navigator-toolbox.inc.xhtml @@ -2,7 +2,7 @@
-
@@ -531,6 +538,7 @@ consumeanchor="PanelUI-button" data-l10n-id="appmenu-menu-button-closed2"/> +#include titlebar-items.inc.xhtml
<toolbar id="PersonalToolbar" "i dont really know why would it crash
Captchas
What happened?
Hi, i've been trying to build the browser for a few days but still can not get it to work. I did everything what the guide told to do (updated languages too) but still it is not working. The last successful step was "sh ./scripts/update-en-US-packs.sh" and on "npm run build" i get the error:
_00:00:07 ERROR: Invalid value --with-l10n-base, /c/Users/Max/Documents/desktop/engine/browser/locales doesn't exist 00:00:07 W Exception when writing resource usage file: [Errno 2] No such file or directory: 'C:/Users/Max/Documents/desktop/engine/obj-x86_64-pc-windows-msvc\.mozbuild\profile_buildresources.json' 00:00:07 Config object not found by mach. 00:00:07 *** Fix above errors and then restart with "./mach build"
So far i've tried:
Would be cool if you'd help, thanks!
Reproducible?
Version
1.0.1-a.17 (Latest)
What platform are you seeing the problem on?
Windows
Relevant log output