microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1.11.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/common/error/errorStrings.ts

390lines · modeblame

3c172a05Artem Egorov8 years ago1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
e2644f37Yuri Skorokhodov7 years ago3import * as nls from "vscode-nls";
34472878RedMickey5 years ago4import { InternalErrorCode } from "./internalErrorCode";
09f6024fHeniker4 years ago5
34472878RedMickey5 years ago6nls.config({
7messageFormat: nls.MessageFormat.bundle,
8bundleFormat: nls.BundleFormat.standalone,
9})();
e2644f37Yuri Skorokhodov7 years ago10const localize = nls.loadMessageBundle();
3c172a05Artem Egorov8 years ago11
12export const ERROR_STRINGS = {
36a21645Heniker4 years ago13[InternalErrorCode.CommandCanceled]: localize(
14"CommandCanceled",
15"Command '{0}' was canceled by the user",
16),
34472878RedMickey5 years ago17[InternalErrorCode.CommandFailed]: localize(
18"CommandFailed",
19"Error while executing command '{0}'",
20),
21[InternalErrorCode.CommandFailedWithDetails]: localize(
22"CommandFailed",
23"Error while executing command '{0}'.\nDetails: {1}",
24),
e7a2c40dRedMickey4 years ago25[InternalErrorCode.DebuggingCommandFailed]: localize(
26"DebuggingCommandFailed",
27"Error while executing debugging command '{0}'",
28),
34472878RedMickey5 years ago29[InternalErrorCode.CommandFailedWithErrorCode]: localize(
30"CommandFailedWithErrorCode",
31"Command '{0}' failed with error code {1}",
32),
33[InternalErrorCode.ExpectedIntegerValue]: localize(
34"ExpectedIntegerValue",
35"Expected an integer. Couldn't read {0}",
36),
37[InternalErrorCode.PackagerStartFailed]: localize(
38"PackagerStartFailed",
39"Error while executing React Native Packager.",
40),
41[InternalErrorCode.IOSDeployNotFound]: localize(
42"IOSDeployNotFound",
205f3c63Lucas Johnston4 years ago43"Unable to find ios-deploy. Please make sure to install it globally('brew install ios-deploy')",
34472878RedMickey5 years ago44),
45[InternalErrorCode.DeviceNotPluggedIn]: localize(
46"DeviceNotPluggedIn",
47"Unable to mount developer disk image.",
48),
49[InternalErrorCode.DeveloperDiskImgNotMountable]: localize(
50"DeveloperDiskImgNotMountable",
51"Unable to mount developer disk image.",
52),
53[InternalErrorCode.ApplicationLaunchFailed]: localize(
54"ApplicationLaunchFailed",
55"An error occurred while launching the application. {0}",
56),
57[InternalErrorCode.CouldNotAttachToDebugger]: localize(
58"CouldNotAttachToDebugger",
59"An error occurred while attaching debugger to the application. {0}",
60),
61[InternalErrorCode.ApplicationLaunchTimedOut]: localize(
62"ApplicationLaunchTimedOut",
63"Timeout launching application. Is the device locked?",
64),
65[InternalErrorCode.IOSSimulatorNotLaunchable]: localize(
66"IOSSimulatorNotLaunchable",
67"Unable to launch iOS simulator. Try specifying a different target.",
68),
69[InternalErrorCode.OpnPackagerLocationNotFound]: localize(
70"OpnPackagerLocationNotFound",
71"Opn package location not found",
72),
73[InternalErrorCode.OpnPackagerNotFound]: localize(
74"OpnPackagerNotFound",
75"The package 'opn' was not found. {0}",
76),
77[InternalErrorCode.PackageNotFound]: localize(
78"PackageNotFound",
79"Attempting to find package {0} failed with error: {1}",
80),
81[InternalErrorCode.PlatformNotSupported]: localize(
82"PlatformNotSupported",
83"Platform '{0}' is not supported on host platform: {1}",
84),
85[InternalErrorCode.ProjectVersionNotParsable]: localize(
86"ProjectVersionNotParsable",
87"Couldn't parse the version component of the package at {0}: version = {1}",
88),
89[InternalErrorCode.ProjectVersionUnsupported]: localize(
90"ProjectVersionUnsupported",
91"Project version = {0}",
92),
93[InternalErrorCode.CouldNotFindProjectVersion]: localize(
94"CouldNotFindProjectVersion",
95"Couldn't find React Native version in the current workspace or folder",
96),
97[InternalErrorCode.ProjectVersionNotReadable]: localize(
98"ProjectVersionNotReadable",
99"Unable to read version = {0}",
100),
101[InternalErrorCode.TelemetryInitializationFailed]: localize(
102"TelemetryInitializationFailed",
103"{0}. Couldn't initialize telemetry",
104),
105[InternalErrorCode.ExtensionActivationFailed]: localize(
106"ExtensionActivationFailed",
107"Failed to activate the React Native Tools extension",
108),
109[InternalErrorCode.DebuggerStubLauncherFailed]: localize(
110"DebuggerStubLauncherFailed",
111"Failed to setup the stub launcher for the debugger",
112),
113[InternalErrorCode.IntellisenseSetupFailed]: localize(
114"IntellisenseSetupFailed",
115"Failed to setup IntelliSense",
116),
117[InternalErrorCode.NodeDebuggerConfigurationFailed]: localize(
118"NodeDebuggerConfigurationFailed",
119"Failed to configure the node debugger location for the debugger",
120),
121[InternalErrorCode.FailedToStopPackagerOnExit]: localize(
122"FailedToStopPackagerOnExit",
123"Failed to stop the packager while closing React Native Tools",
124),
125[InternalErrorCode.FailedToRunOnAndroid]: localize(
126"FailedToRunOnAndroid",
127"Failed to run the application in Android",
128),
129[InternalErrorCode.FailedToRunOnIos]: localize(
130"FailedToRunOnIos",
131"Failed to run the application in iOS",
132),
133[InternalErrorCode.FailedToRunExponent]: localize(
134"FailedToRunExponent",
135"Failed to run the application in Expo",
136),
137[InternalErrorCode.FailedToPublishToExpHost]: localize(
138"FailedToRunExponent",
139"Failed to publish the application to Exponent",
140),
ee2a3185Ezio Li3 years ago141[InternalErrorCode.FailedToConfigEASBuild]: localize(
142"FailedToConfigEASBuild",
143"Failed to config Expo app with EAS build",
144),
34472878RedMickey5 years ago145[InternalErrorCode.FailedToStartPackager]: localize(
146"FailedToStartPackager",
147"Failed to start the React Native packager",
148),
149[InternalErrorCode.FailedToStopPackager]: localize(
150"FailedToStopPackager",
151"Failed to stop the React Native packager",
152),
153[InternalErrorCode.FailedToRestartPackager]: localize(
154"FailedToRestartPackager",
155"Failed to restart the React Native packager",
156),
fc602bb6Yuri Skorokhodov7 years ago157[InternalErrorCode.DebuggingFailed]: localize("DebuggingFailed", "Cannot debug application"),
34472878RedMickey5 years ago158[InternalErrorCode.DebuggingFailedInNodeWrapper]: localize(
159"DebuggingFailedInNodeWrapper",
160"Cannot debug application due to an error in the internal Node Debugger",
161),
162[InternalErrorCode.RNTempFolderDeletionFailed]: localize(
163"RNTempFolderDeletionFailed",
164"Couldn't delete the temporary folder {0}",
165),
166[InternalErrorCode.CouldNotFindLocationOfNodeDebugger]: localize(
167"CouldNotFindLocationOfNodeDebugger",
168"Couldn't find the location of the node-debugger extension",
169),
170[InternalErrorCode.CouldNotFindWorkspace]: localize(
171"CouldNotFindWorkspace",
172"Couldn't find any workspace or React Native project folder",
173),
174[InternalErrorCode.ReactNativePackageIsNotInstalled]: localize(
175"ReactNativePackageIsNotInstalled",
176'Couldn\'t find react-native package in node_modules. Please, run "npm install" inside your project to install it.',
177),
178[InternalErrorCode.ReactNativeWindowsIsNotInstalled]: localize(
179"ReactNativeWindowsIsNotInstalled",
180"It appears you don't have 'react-native-windows' package installed. Please proceed to https://github.com/microsoft/react-native-windows#getting-started for more info.",
181),
182[InternalErrorCode.PackagerRunningInDifferentPort]: localize(
183"PackagerRunningInDifferentPort",
184"A packager cannot be started on port {0} because a packager process is already running on port {1}",
185),
186[InternalErrorCode.ErrorWhileProcessingMessageInIPMSServer]: localize(
187"ErrorWhileProcessingMessageInIPMSServer",
188"An error ocurred while handling message: {0}",
189),
190[InternalErrorCode.ErrorNoPipeFound]: localize(
191"ErrorNoPipeFound",
192"Unable to set up communication with VSCode react-native extension. Is this a react-native project, and have you made sure that the react-native npm package is installed at the root?",
193),
194[InternalErrorCode.NotAllSuccessPatternsMatched]: localize(
195"NotAllSuccessPatternsMatched",
196'Unknown error: not all success patterns were matched. \n It means that "react-native run-{0}" command failed. \n Please, check the View -> Toggle Output -> React Native, \n View -> Toggle Output -> React Native: Run {1} output windows.',
197),
198[InternalErrorCode.CouldNotParsePackageVersion]: localize(
199"CouldNotParsePackageVersion",
200"Couldn't parse the version component of the package at {0}: version = {1}",
201),
202[InternalErrorCode.UnsupportedCommandStatus]: localize(
203"UnsupportedCommandStatus",
204"Unsupported command status",
205),
206[InternalErrorCode.ExpectedExponentTunnelPath]: localize(
207"ExpectedExponentTunnelPath",
208"No link provided by Expo. Is your project correctly setup?",
209),
210[InternalErrorCode.WorkspaceNotFound]: localize(
211"WorkspaceNotFound",
212"Error while working with workspace: {0}",
213),
214[InternalErrorCode.RNVersionNotSupportedByExponent]: localize(
215"RNVersionNotSupportedByExponent",
216"React Native version not supported by Expo. Major versions supported: {0}",
217),
218[InternalErrorCode.UserCancelledExpoLogin]: localize(
219"UserCancelledExpoLogin",
220"User canceled login.",
221),
efb436fcRedMickey5 years ago222[InternalErrorCode.NgrokIsNotInstalledGlobally]: localize(
223"NgrokIsNotInstalledGlobally",
0690ab22RedMickey4 years ago224'It seems that "@expo/ngrok{0}" package isn\'t installed globally. This package is required to use Expo tunnels. Please run "npm i -g @expo/ngrok{0}" to install it globally.',
efb436fcRedMickey5 years ago225),
34472878RedMickey5 years ago226[InternalErrorCode.CannotAttachToPackagerCheckPackagerRunningOnPort]: localize(
227"CannotAttachToPackagerCheckPackagerRunningOnPort",
228"Cannot attach to packager. Are you sure there is a packager and it is running in the port {0}? If your packager is configured to run in another port make sure to add that to the settings.json.",
229),
230[InternalErrorCode.AnotherDebuggerConnectedToPackager]: localize(
231"AnotherDebuggerConnectedToPackager",
232"Another debugger is already connected to packager. Please close it before trying to debug with VSCode.",
233),
234[InternalErrorCode.NotInReactNativeFolderError]: localize(
235"NotInReactNativeFolderError",
236"Seems to be that you are trying to debug from within directory that is not a React Native project root. \n If so, please, follow these instructions: https://github.com/microsoft/vscode-react-native#customization",
237),
238[InternalErrorCode.SourcesStoragePathIsNullOrEmpty]: localize(
239"SourcesStoragePathIsNullOrEmpty",
240"The sourcesStoragePath argument was null or empty",
241),
242[InternalErrorCode.AndroidCouldNotInstallTheAppOnAnyAvailibleDevice]: localize(
243"AndroidCouldNotInstallTheAppOnAnyAvailibleDevice",
244"Could not install the app on any available device. Make sure you have a correctly \n configured device or emulator running. See https://facebook.github.io/react-native/docs/android-setup.html.",
245),
246[InternalErrorCode.AndroidShellCommandTimedOut]: localize(
247"AndroidShellCommandTimedOut",
248"An Android shell command timed-out. Please retry the operation.",
249),
250[InternalErrorCode.AndroidProjectNotFound]: localize(
251"AndroidProjectNotFound",
252"Android project not found.",
253),
254[InternalErrorCode.AndroidMoreThanOneDeviceOrEmulator]: localize(
255"AndroidMoreThanOneDeviceOrEmulator",
256"More than one device/emulator",
257),
258[InternalErrorCode.AndroidFailedToLaunchTheSpecifiedActivity]: localize(
259"AndroidFailedToLaunchTheSpecifiedActivity",
260"Failed to launch the specified activity. Try running application manually and start debugging using 'Attach to packager' launch configuration.",
261),
262[InternalErrorCode.IOSFoundMoreThanOneExecutablesCleanupBuildFolder]: localize(
263"IOSFoundMoreThanOneExecutablesCleanupBuildFolder",
264"Found more than one executables in {0}. Please cleanup build folder or setup 'productName' launch option.",
265),
266[InternalErrorCode.IOSCouldNotFoundExecutableInFolder]: localize(
267"IOSCouldNotFoundExecutableInFolder",
268"Could not found executable in {0}",
269),
270[InternalErrorCode.WinRNMPPluginIsNotInstalled]: localize(
271"WinRNMPPluginIsNotInstalled",
272"'rnpm-plugin-windows' is not installed.",
273),
60ad4ec0JiglioNero5 years ago274[InternalErrorCode.WinRunCommandFailed]: localize(
275"WinRunCommandFailed",
96c49b0fAlexander Sklar4 years ago276"{0}\nPlease check the 'React Native: Run Windows' output channel for details",
60ad4ec0JiglioNero5 years ago277),
34472878RedMickey5 years ago278[InternalErrorCode.ReactDevtoolsIsNotInstalled]: localize(
279"ReactDevtoolsIsNotInstalled",
280"React Devtools is not installed. Run `npm install -g react-devtools` command in your terminal to install it.",
281),
282[InternalErrorCode.CancellationTokenTriggered]: localize(
283"CancellationTokenTriggered",
284"Operation canceled",
285),
ea42d400RedMickey5 years ago286[InternalErrorCode.WorkspaceIsNotTrusted]: localize(
287"WorkspaceIsNotTrusted",
288'The workspace by the project path "{0}" should be trusted to use "{1}"',
289),
34472878RedMickey5 years ago290[InternalErrorCode.DebuggingWontWorkReloadJSAndReconnect]: localize(
291"DebuggingWontWorkReloadJSAndReconnect",
292"{0}. Debugging won't work: Try reloading the JS from inside the app, or Reconnect the VS Code debugger",
293),
294[InternalErrorCode.ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative]: localize(
295"ReconnectionToPackagerFailedCheckForErrorsOrRestartReactNative",
296"Reconnection to the proxy (Packager) failed. Please check the output window for Packager errors, if any. If failure persists, please restart the React Native debugger.",
297),
298[InternalErrorCode.FailedToProcessMessageFromReactNativeApp]: localize(
299"FailedToProcessMessageFromReactNativeApp",
300"Failed to process message from the React Native app. Message:\n{0}",
301),
302[InternalErrorCode.FailedToPrepareJSRuntimeEnvironment]: localize(
303"FailedToPrepareJSRuntimeEnvironment",
304"Failed to prepare the JavaScript runtime environment. Message:\n{0}",
305),
306[InternalErrorCode.FailedToSendMessageToTheReactNativeApp]: localize(
307"FailedToSendMessageToTheReactNativeApp",
308"Failed to send message to the React Native app. Message:\n{0}",
309),
310[InternalErrorCode.ReactNativeWorkerProcessThrownAnError]: localize(
311"ReactNativeWorkerProcessThrownAnError",
312"React Native worker process thrown an error",
313),
314[InternalErrorCode.CouldntImportScriptAt]: localize(
315"CouldntImportScriptAt",
316"Couldn't import script at <{0}>",
317),
318[InternalErrorCode.RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty]: localize(
319"RNMessageWithMethodExecuteApplicationScriptDoesntHaveURLProperty",
320"RNMessage with method 'executeApplicationScript' doesn't have 'url' property",
321),
322[InternalErrorCode.CouldNotConnectToDebugTarget]: localize(
323"CouldNotConnectToDebugTarget",
324"Could not connect to the debug target at {0}: {1}",
325),
326[InternalErrorCode.IOSCouldNotFoundDeviceForDirectDebugging]: localize(
327"CannotAttachtoiOSDeviceDirectly",
328'Unable to find iOS target device/simulator. Please check that "Settings > Safari > Advanced > Web Inspector = ON" or try specifying a different "port" parameter in launch.json. Also, please make sure that \'target\' property in your debug scenario is defined correctly.',
329),
330[InternalErrorCode.FailedToStartAndroidEmulator]: localize(
331"FailedToStartAndroidEmulator",
8f322bcdJiglioNero4 years ago332"An error occurred while starting the Android emulator",
34472878RedMickey5 years ago333),
4cd25962JiglioNero4 years ago334[InternalErrorCode.FailedToStartIOSSimulator]: localize(
335"FailedToStartIOSSimulator",
8f322bcdJiglioNero4 years ago336"An error occurred while starting the iOS simulator",
4cd25962JiglioNero4 years ago337),
338[InternalErrorCode.AndroidThereIsNoAnyOnlineDebuggableTarget]: localize(
339"AndroidThereIsNoAnyOnlineDebuggableTarget",
340"There is no any Android debuggable online target",
341),
342[InternalErrorCode.IOSThereIsNoAnyDebuggableTarget]: localize(
343"IOSThereIsNoAnyDebuggableTarget",
344"There is no any iOS debuggable target",
345),
346[InternalErrorCode.TargetSelectionError]: localize(
347"TargetSelectionError",
348"The target launch finished with an exception: {0}",
34472878RedMickey5 years ago349),
8f322bcdJiglioNero4 years ago350[InternalErrorCode.CouldNotRecognizeTargetType]: localize(
351"CouldNotRecognizeTargetType",
352"Could not recognize type of the target {0}",
353),
34472878RedMickey5 years ago354[InternalErrorCode.ReactNativemacOSIsNotInstalled]: localize(
355"ReactNativemacOSIsNotInstalled",
356"It appears you don't have 'react-native-macos' package installed. Please proceed to https://microsoft.github.io/react-native-windows/docs/rnm-getting-started for more info.",
357),
358[InternalErrorCode.AndroidCouldNotStartLogCatMonitor]: localize(
359"ErrorWhileStartMonitoringLogCat",
360"Error while starting monitoring LogCat",
361),
362[InternalErrorCode.AndroidCouldNotStopLogCatMonitor]: localize(
363"ErrorWhileStopMonitoringLogCat",
364"Error while stopping monitoring LogCat",
365),
366[InternalErrorCode.AndroidCouldNotFindActiveLogCatMonitor]: localize(
367"ErrorWhileSelectMonitoringLogCat",
368"No active Android LogCat monitors found",
369),
5c9b8eb8RedMickey5 years ago370[InternalErrorCode.CouldNotDirectDebugWithoutHermesEngine]: localize(
371"CouldNotDirectDebugWithoutHermesEngine",
372"Could not start direct debugging of the {0} application without Hermes engine enabled. Please check if Hermes engine is enabled in your project and your debugging configuration contains 'useHermesEngine' prop set to 'true'",
6f9a0779JiglioNero5 years ago373),
4bb0956eRedMickey5 years ago374[InternalErrorCode.CouldNotStartNetworkInspector]: localize(
375"ErrorWhileStartNetworkInspector",
376"Error while starting Network inspector",
377),
378[InternalErrorCode.CouldNotStopNetworkInspector]: localize(
379"ErrorWhileStopNetworkInspector",
380"Error while stopping Network inspector",
381),
c7856462Heniker4 years ago382[InternalErrorCode.FailedToTestDevEnvironment]: localize(
383"ErrorWhileCheckingDevEnvironment",
384"Error while checking development environment configuration",
385),
36a21645Heniker4 years ago386[InternalErrorCode.UserInputCanceled]: localize(
387"UserInputCanceled",
388"User canceled data entry",
389),
ba165ebbArtem Egorov8 years ago390};