NativeScript / NativeScript/nativescript-cli
Show a number for the code line in command line
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
描述
Is your feature request related to a problem? Please describe.
When getting an error, it is not everytime clear where it comes from. For example, when using Vue.js, you am getting an error message which looks like this (note the line of code next to vue.js:)
vue.js:597 [Vue warn]: Error in created hook: "TypeError: ... is not a function"
found in
---> <StageExecs>
In Nativescript / nativescript-vue you get an error message which looks like this:
JS: [Vue warn]: Error in created hook: "TypeError: Cannot read property '...' of undefined"
JS:
JS: found in
JS:
JS: ---> <IsRenovationFinishedField> at SomeFile.vue
But if you don't know the line of code it is very hard to find the error.
Describe the solution you'd like
Next to JS there should be a code line indicator
Describe alternatives you've considered
Additional context
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
這個 issue 沒有指出檔案、測試或進入點。先追蹤 CLI 如何格式化 JavaScript 錯誤輸出,然後判定 JS 前綴與原始碼位置在哪裡產生。完成的定義是命令列錯誤在 JS 旁邊包含可用的程式碼行指示器。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100