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 72 forks source link

Uncaught Error: ENOENT: no such file or directory, lstat when tab with unsaved file open (git removed) #2540

Open lacostenycoder opened 2 years ago

lacostenycoder commented 2 years ago

[Enter steps to reproduce:]

Have a file open in editor, then delete it from the file system via command line or git. Switch focus to the tab either unnamed or temporary name of the deleted file but unsaved. Error gets thrown.

Atom: 1.56.0 x64 Electron: 9.4.4 OS: Linux Mint Thrown From: platformio-ide package 2.7.2

Stack Trace

Uncaught Error: ENOENT: no such file or directory, lstat '/home/lance/dev/qc/code/web/.circleci/get_nodejs_14.sh'

At internal/fs/utils.js:220

Error: ENOENT: no such file or directory, lstat '/home/lance/dev/qc/code/web/.circleci/get_nodejs_14.sh'
    at Proxy.realpathSync (fs.js:1529:7)
    at Proxy.<anonymous> (electron/js2c/asar.js:302:42)
    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 (/usr/share/atom/resources/app/static/<embedded>:11:1182710)
    at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1184151)
    at /usr/share/atom/resources/app/static/<embedded>:11:428541

Commands

     -3:23.7.0 vim-mode-plus:reset-normal-mode (input.hidden-input)
  3x -3:22.8.0 blur (input.hidden-input)
     -3:19.6.0 vim-mode-plus:reset-normal-mode (input.hidden-input)
 11x -3:18.8.0 vim-mode-plus:move-up (input.hidden-input)
     -3:17.7.0 vim-mode-plus:move-down (input.hidden-input)
     -3:16.9.0 vim-mode-plus:delete (input.hidden-input)
     -3:16.9.0 vim-mode-plus:move-to-next-word (input.hidden-input)
     -3:16.7.0 vim-mode-plus:activate-insert-mode (input.hidden-input)
     -3:15.2.0 vim-mode-plus:activate-normal-mode (input.hidden-input)
     -3:14.7.0 ex-mode:open (input.hidden-input)
  3x -3:14.7.0 blur (input.hidden-input)
     -3:14.3.0 core:confirm (input.hidden-input)
 20x -3:14.3.0 blur (input.hidden-input)
     -2:28.7.0 core:copy (span.invisible-character.trailing-whitespace)
 44x -2:26.8.0 blur (input.hidden-input)

Non-Core Packages

advanced-open-file 0.16.8 
atom-beautify 0.33.4 
atom-meld 0.3.5 
atom-vue 0.6.0 
atom-vue-router 0.3.0 
atom-vuex 0.5.0 
autocomplete-clang 0.13.1 
autocomplete-emojis 2.5.0 
better-git-blame 0.5.0 
build 0.70.0 
busy-signal 2.0.1 
docker 0.8.0 
double-tag 1.7.0 
emmet 2.4.3 
emmet-jsx-props 1.4.0 
ex-mode 0.18.0 
ex-mode-sort 1.0.0 
file-icons 2.1.47 
git-time-machine 2.1.0 
goto-definition 1.3.4 
ide-docker 0.1.0 
intentions 2.1.1 
language-babel 2.85.0 
language-docker 1.1.8 
language-haml 0.32.1 
language-ini 1.25.0 
language-vue 0.26.0 
language-vue-component 0.5.0 
linter 3.4.0 
linter-gcc2 0.8.8 
linter-haml 2.1.0 
linter-js-yaml 1.4.6 
linter-ui-default 3.4.1 
linux-atom-packages 0.0.0 
nerd-treeview 0.5.4 
pigments 0.40.6 
platformio-ide 2.7.2 
platformio-ide-debugger 1.2.6 
platformio-ide-terminal 2.10.1 
portable-packages 0.3.3 
rails-partials 0.9.2 
rails-transporter 1.7.1 
rainbow-delimiters 2.1.2 
rainbow-tabs-evolved 2.7.14 
rubocop-auto-correct 1.5.1 
split-diff 1.6.1 
sync-settings 5.2.15 
TabNine 4.0.7 
teletype 0.13.4 
textmate-clipboard 0.3.0 
tool-bar 1.4.4 
vim-mode-plus 1.36.7 
vim-mode-plus-keymaps-for-surround 0.2.1 
vue-template 0.5.0 
vuejs2-snippets 1.1.0