Background
Under the praise of many experts, I decided to use cursor
and test the boundaries of its capabilities.
Project: A 5-year project.
Technology stack: vue^2 + element-ui^2 + ant-design-vue^1 + vue-cli + vuex
.
Having passed through the hands of many people, the code lacks a stable specification. The product design has been continuously iterated according to market changes, and the functions are in a stacking stage without a technical plan.
Objectives
- Upgrade from Vue 2 to Vue 3.
- Upgrade the UI library to the latest stable version.
- Upgrade the relevant dependencies to the latest stable version.
Results First
Failed
After 6 hours of attempts and exhausting the 2000 free quota of cursor
, the upgrade was not completed.
- Due to the syntax differences between Vue 3 and Vue 2, the AI could not fully traverse and modify 396 files and folders.
- Because of the syntax differences between Vuex and Pinia 2, it is already impossible for humans to have an overall view of the code, and the AI is even less able to upgrade the code.
- For the upgrade of the UI library, it completely relies on the error code prompts. This process requires continuous human intervention, and the AI cannot complete the upgrade.
- Upgrading from Vue-cli to Vite requires manual intervention in the code, and the AI cannot recognize the proxy configuration code in classes yet.
- During the process of upgrading the dependent packages, there are requirements for the Node version, which is an environmental issue that can be solved by humans.
Feelings
cursor
is really great, completely beyond my imagination.- Its semantic understanding far exceeds the understanding of instructions between people. Just with an instruction like
upgrade from Vue 2 to Vue 3
, it will start analyzing the code and upgrade the code in the identifiable files. - When the same instruction is given multiple times, it can provide new instruction prompts. For example, for the code instruction of traversing files I gave, when I thought the AI still hadn’t fully traversed, the AI provided another instruction prompt for traversing files.
- Just with the error code prompts, the AI can solve the errors on its own.
- It is efficient, accurate, and fast.
Tips:Written in Chinese and translated by AI. Please understand if there are semantic differences.