This topic describes what to do when encountering issues with Tanzu Developer Tools for Visual Studio.
WorkloadNotRunningState
error messageIn 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
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.
In v0.1.0 and earlier, the Tanzu: Start Live Update
command does not update the remote app.
The Tiltfile might be specifying an incorrect local path.
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.
In v0.1.0 and earlier, the Tanzu: Delete Workload
command appears to run but does not delete the workload.
The workload is running in a namespace other than default
.
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