platformio / platformio-atom-ide

PlatformIO IDE for Atom: The next generation integrated development environment for IoT
https://atom.io/packages/platformio-ide
Apache License 2.0
476 stars 71 forks source link

Uncaught Error: ENOENT: no such file or directory, lstat '~/Documents\projects' #2464

Open rajputanshulk opened 3 years ago

rajputanshulk commented 3 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.53.0 x64 Electron: 6.1.12 OS: Microsoft Windows 10 Pro Thrown From: platformio-ide package 2.7.2

Stack Trace

Uncaught Error: ENOENT: no such file or directory, lstat 'C:\Users\anshul\Documents\projects'

At fs.js:126

Error: ENOENT: no such file or directory, lstat 'C:\Users\anshul\Documents\projects'
    at Proxy.realpathSync (fs.js:1470:7)
    at Proxy.fs.realpathSync (electron/js2c/asar.js:300:40)
    at Proxy.fs.realpathSync (electron/js2c/asar.js:300:40)
    at /packages/platformio-ide/lib/utils.js:102:25
    at Object.getActivePioProject (/packages/platformio-ide/lib/utils.js:106:6)
    at Object.highlightActiveProject (/packages/platformio-ide/lib/maintenance.js:103:19)
    at doHighlight (/packages/platformio-ide/lib/main.js:305:43)
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:1190051)
    at Emitter.emit (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:1191492)
    at ~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:426958

Commands

     -4:48.3.0 application:reopen-project (div.tool-panel.tree-view)
     -4:14.8.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -1:47.4.0 platformio-ide:home (div.tool-panel.tree-view)
     -1:10.3.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:43.8.0 platformio-ide:target:build (div.tool-panel.tree-view)
     -0:43.8.0 platformio-ide:target:build-C:\Users\anshul\Documents\codes\plc (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:09.1.0 platformio-ide:home (div.build.tool-panel.native-key-bindings)

Non-Core Packages

autocomplete-clang 0.13.1 
build 0.70.0 
busy-signal 2.0.1 
file-icons 2.1.33 
intentions 1.1.5 
language-ini 1.21.0 
linter 2.3.0 
linter-gcc 0.7.1 
linter-gcc2 0.8.8 
linter-ui-default 1.7.1 
platformio-ide 2.7.2 
platformio-ide-debugger 1.2.6 
platformio-ide-terminal 2.10.0 
tool-bar 1.3.0