Informative error message when `require` doesn't find a package.

未關閉 適合新手
#17 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
70/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
go, lua
領域
compilers

研究方向

錯誤文字 'package.searchers' must be a table 是切入點:在 Go 原始碼中搜尋該字串,找出 require 讀取 searchers 表的位置。檢查當模組不符合任何 searcher 時程式的行為。當 require 一個未定義的套件時,回報的錯誤訊息包含套件名稱,且有測試涵蓋該訊息,即視為完成。

由索引模型根據 Issue 內容生成。

描述

enhancement

When trying to require a package that is not defined, the VM will throw a runtime error:

runtime error: 'package.searchers' must be a table

It would be nice if it could instead say package <something> is not found or something alike.

主要語言
Go
星號
3.5k
分支
217
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Shopify/go-lua 的其他 Issue

查看 Shopify/go-lua 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。