express-debug icon indicating copy to clipboard operation
express-debug copied to clipboard

add windows paths support

Open bonesoul opened this issue 10 years ago • 4 comments

doesnt work on windows!

path.js:8                                                                                                      
    throw new TypeError('Path must be a string. Received ' +                                                   
    ^                                                                                                          

  TypeError: Path must be a string. Received [ 'E:\\Coding\\hypetrain\\src\\views'                             
   ]                                                                                                           

  - path.js:8 assertPath                                                                                       
    path.js:8:11                                                                                               

  - path.js:221 Object.win32.join                                                                              
    path.js:221:5                                                                                              

  - index.js:12 getPath                                                                                        
    [hypetrain]/[express-debug]/lib/panels/template/index.js:12:21                                             

  - index.js:29 Object.module.exports.process                                                                  
    [hypetrain]/[express-debug]/lib/panels/template/index.js:29:34                                             

  - index.js:85 Object.panels.render                                                                           
    [hypetrain]/[express-debug]/lib/panels/index.js:85:32                                                      

  - response.js:70 render_toolbar                                                                              
    [hypetrain]/[express-debug]/lib/response.js:70:37                                                          


bonesoul avatar Nov 06 '15 15:11 bonesoul

It looks like it was expecting a string and got an array. Thanks for the report, will fix!

devoidfury avatar Nov 06 '15 15:11 devoidfury

hopefully when? :)

bonesoul avatar Jun 17 '16 09:06 bonesoul

any updates on this?

bonesoul avatar Aug 26 '16 09:08 bonesoul

I haven't had time to do active maintenance lately. If you'd like to submit a PR I'd be happy to pull it in and push a new version!

devoidfury avatar Aug 26 '16 18:08 devoidfury