danielgtaylor / danielgtaylor/nesh

Error in plugin history: // > Error: ENOENT: no such file or directory,

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
284
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Hey,
I'm using a 3rd-party plugin of sublime text 3 ,named "worksheet".
It can do inline evaluation code such as nodejs,etc.
By given the following params,it works(running on a js file located at **D:\ drive** on **Windows10X64**):
`{
"worksheet_languages": {

```
"JavaScript (Babel)": {
"cmd": "nesh -b ",
"prompt": ["babel> ", "\\.\\.+ "],
"ignore": ["^\\n"]
}
}
```

}`

However, everytime I run this evaluation,it will give me a warning that
`Error in plugin history:
// > Error: ENOENT: no such file or directory, open 'D:\Users\mzvast\.babel_history'
`
If I copy the js file to **C:\ drive** ,then everything is fine.
So,It seem the nesh not getting the process.env.HOME right.
Then,I set a symlink from C:\Users\mzvast.babel_history to D:\Users\mzvast.babel_history,everything is fine again.

But this is hacking,Not a solution.So anyone encountered this issue?Help me figure it out,thx~

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the worksheet evaluation with nesh on a JavaScript file under D:\ on Windows 10, then compare it with the same file under C:\. Trace how nesh determines the history-file location and verify that the completed behavior avoids the ENOENT warning without requiring a symlink.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.