You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'The extension cannot initialize as we were unable to verify the DVC CLI version.'
23
30
)
31
+
}
24
32
25
-
exportconstwarnVersionIncompatible=(
26
-
version: string,
27
-
update: 'CLI'|'extension'
28
-
): void=>{
29
-
voidToast.warnWithOptions(
30
-
`The extension cannot initialize because you are using version ${version} of the DVC CLI. The expected version is ${MIN_CLI_VERSION} <= DVC < ${MAX_CLI_VERSION}. Please upgrade to the most recent version of the ${update} and reload this window.`
'The extension cannot initialize because the DVC CLI version is incompatible.'
31
37
)
32
38
}
33
39
34
-
exportconstwarnAheadOfLatestTested=(): void=>{
40
+
constwarnAheadOfLatestTested=(): void=>{
35
41
voidToast.warnWithOptions(
36
42
`The located DVC CLI is at least a minor version ahead of the latest version the extension was tested with (${LATEST_TESTED_CLI_VERSION}). This could lead to unexpected behaviour. Please upgrade to the most recent version of the extension and reload this window.`
it('should send a specific message to the user if the Python extension is being used, the CLI is not available in the virtual environment and the global CLI is not compatible',async()=>{
`The extension is unable to initialize. The CLI was not located using the interpreter provided by the Python extension. ${belowMinVersion} is installed globally. For auto Python environment activation, ensure the correct interpreter is set. Active Python interpreter: ${mockedPythonPath}.`,
476
-
Response.SHOW_SETUP,
477
-
Response.NEVER
489
+
'The extension cannot initialize because the DVC CLI version is incompatible.',
`The extension cannot initialize because you are using version ${MajorAhead} of the DVC CLI. The expected version is ${MIN_CLI_VERSION} <= DVC < ${MAX_CLI_VERSION}. Please upgrade to the most recent version of the extension and reload this window.`
555
+
'The extension cannot initialize because the DVC CLI version is incompatible.',
`The extension is unable to initialize. The CLI was not located using the interpreter provided by the Python extension. The CLI is also not installed globally. For auto Python environment activation, ensure the correct interpreter is set. Active Python interpreter: ${mockedPythonPath}.`,
581
+
'An error was thrown when trying to access the CLI.',
0 commit comments