Troubleshoot Tanzu Developer Tools for Visual Studio

This topic describes what to do when encountering issues with Tanzu Developer Tools for Visual Studio.

Erroneous WorkloadNotRunningState error message

Symptom

In v0.1.0 and earlier, the Tanzu: Delete Workload command might give the following error message even when a workload is running:

Invalid transition DeleteWorkload from state WorkloadNotRunningState

Solution

Re-apply your workload by running Tanzu: Workload Apply or Tanzu: Start Live Update. This realigns the extension’s internal state with the proper workload state. The delete operation is enabled again after the extension detects that the workload is running.

Live Update fails to update remote app

Symptom

In v0.1.0 and earlier, the Tanzu: Start Live Update command does not update the remote app.

Cause

The Tiltfile might be specifying an incorrect local path.

Solution

In your Tiltfile, change the lines

  live_update=[
    sync('./bin', '/workspace')
  ]

to

  live_update=[
    sync('./bin/Debug/net6.0', '/workspace')
  ]

This copies the correct portion of the local workspace to the remote app. The actual path bin/Debug/net6.0 might be different depending on your Visual Studio configuration and target.

Delete workload command fails to delete workload

Symptom

In v0.1.0 and earlier, the Tanzu: Delete Workload command appears to run but does not delete the workload.

Cause

The workload is running in a namespace other than default.

Solution

Only deploy workloads to the default namespace. Alternatively, set the default Kubernetes namespace to the one where your workload is running. To do so, run:

kubectl config set-context --current --namespace=NAMESPACE
check-circle-line exclamation-circle-line close-line
Scroll to top icon