This topic tells you what to do when you encounter issues with VMware Tanzu Developer Tools for Visual Studio Code (VS Code).
When connecting to Google’s GKE clusters, an error appears with the text WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.
GKE authentication was extracted into a separate plug-in and is no longer inside the Kubernetes client or libraries.
Download and configure the GKE authentication plug-in. For instructions, see the Google documentation.
UnsupportedClassVersionErrorAfter live-update has synchronized changes you made locally to the running workload, the workload pods start failing with an error message similar to the following:
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class
[com.example.springboot.HelloController] for bean with name 'helloController' defined in file
[/workspace/BOOT-INF/classes/com/example/springboot/HelloController.class]: problem with class file
or dependent class; nested exception is
java.lang.UnsupportedClassVersionError: com/example/springboot/HelloController has been compiled by
a more recent version of the Java Runtime (class file version 61.0), this version of the
Java Runtime only recognizes class file versions up to 55.0
The classes produced locally on your machine are compiled to target a later Java virtual machine (JVM). The error message mentions class file version 61.0, which corresponds to Java 17. The buildpack, however, is set up to run the application with an earlier JVM. The error message mentions class file versions up to 55.0, which corresponds to Java 11.
The root cause of this is a misconfiguration of the Java compiler that VS Code uses. The cause might be a suspected issue with the VS Code Java tooling, which sometimes fails to properly configure the compiler source and target compatibility-level from information in the Maven POM.
For example, in the tanzu-java-web-app sample application the POM contains the following:
<properties>
<java.version>11</java.version>
...
</properties>
This correctly specifies that the app must be compiled for Java 11 compatibility. However, the VS Code Java tooling sometimes fails to take this information into account.
Force the VS Code Java tooling to re-read and synchronize information from the POM:
pom.xml file.This causes the internal compiler level to be set correctly based on the information from pom.xml. For example, Java 11 in tanzu-java-web-app.
When you attempt to Live Update your workload, the following error message appears in the log:
ERROR: Build Failed: apply command timed out after 30s - see }}{{https://docs.tilt.dev/api.html#api.update_settings{{ for how to increase}}
Kubernetes times out on upserts over 30 seconds.
Add update_settings (k8s_upsert_timeout_secs = 300) to the Tiltfile. For more information, see the Tiltfile documentation.
When you attempt to run a Tanzu Debug launch configuration, you see a task-related error message similar to the following:
Could not find the task 'tanzuManagement: Kill Port Forward my-app
The task you’re trying to run is no longer supported.
Delete the launch configuration from your launch.json file in your .vscode directory.
When an application is applied from VS Code it restarts frequently.
An application or environment behavior is triggering the application to restart.
Observed trigger behaviors include:
Prevent the trigger behavior. Example solutions include: