Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: vscode+tide 报错
[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version] 7.5
[Reproduction Path] What operations were performed when the issue occurred
Click “start default playground”
[Encountered Issue: Issue Phenomenon and Impact]
“/usr/local/go” is the installation path of Go, not the code path
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]
You may also refer to the guide
# TiDE Step-by-Step Guide
## 1. Install TiUP
If you haven't installed [TiUP](https://docs.pingcap.com/tidb/stable/tiup-overview), the extension will prompt you to install it:
<div>
<img src="./install-tiup.jpg" style="zoom:75%">
</div>
## 2. Clone and import repos
Then you need to clone repos (tidb/tikv/pd/tidb-dashboard) to local if you haven't.
```shell
$ mkdir tidb-repos && cd tidb-repos
$ git clone https://github.com/pingcap/tidb.git
$ git clone https://github.com/pingcap/tikv.git
$ git clone https://github.com/pingcap/pd.git
$ git clone https://github.com/pingcap/tidb-dashboard.git
This file has been truncated. show original
It seems that there is no specific configuration mentioned for this part above.
This is the place causing the file not to be found, but where should this path be specified?
Is this using TiDB for secondary development?
I want to study the source code.
The execution path doesn’t seem right? This file is available on GitHub.
The Makefile also compiles it this way.
The yellow line should be the root of the PD project.
It is speculated that previously the three components might have been under one GitHub repository, but now they are split into three repositories, causing this issue.
Hmm… How about trying to compile each project one by one first to see where the paths don’t match?
There is no problem with manual compilation, but it doesn’t work when using this tide.
The PD is normal, but the path of tidb-server is incorrect. Is it related to the tide plugin?
Does it have anything to do with the pkg path?
What do you mean? What information needs to be checked?
tide hasn’t been updated for a long time, but the TiDB server source code directory has been adjusted.
Here it is, -o ./bin/tidb-server tidb-server/main.go
But in reality, it might have changed to cmd/tidb-server
You can check the file directory to confirm.
Is it time to submit this file now?
Got it, I’ve made the changes, I’ll try again.
Is it a problem with the environment variables?
The problem has been found, it’s an issue with tide.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.