rescript-lang / rescript-lang/vim-rescript
node_modules are not located correctly
未关闭
还没有人认领这个 Issue。
- 主要语言
- Vim Script
- 星标
- 164
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
For some reason finddir returns the full path on my system so getCwd() . finddir() causes the path to be /Users/user/path/to/project//Users/user/path/to/project/node_modules/.... I had to remove getCwd() calls from rescript#UpdateProjectEnv() and it all works. It's probably something about my setup but I cannot figure it out.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 rescript#UpdateProjectEnv 的实现入手,检查 finddir() 和 getCwd() 是如何组合的。复现 issue 中描述的重复绝对路径,并验证生成的 node_modules 路径是正确的,同时不要求用户删除 getCwd() 调用。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- vim
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100