danielgtaylor / nesh

An enhanced, extensible interactive shell for Node.js and CoffeeScript
http://danielgtaylor.github.io/nesh/
MIT License
288 stars 27 forks source link

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

Open mzvast opened 8 years ago

mzvast commented 8 years ago

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~