Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on Windows every time I type a forward slash "\" #13

Closed
cable729 opened this issue Jun 17, 2014 · 6 comments · Fixed by #15
Closed

Crashes on Windows every time I type a forward slash "\" #13

cable729 opened this issue Jun 17, 2014 · 6 comments · Fixed by #15

Comments

@cable729
Copy link

Here's the stack trace

Uncaught Error: EBUSY, resource busy or locked 'c:\hiberfil.sys' fs.js:681
fs.statSync fs.js:681
(anonymous function) c:\Users\Caleb\.atom\packages\autocomplete-paths\lib\paths-provider.coffee:50
module.exports.PathsProvider.findSuggestionsForPrefix c:\Users\Caleb\.atom\packages\autocomplete-paths\lib\paths-provider.coffee:46
module.exports.PathsProvider.buildSuggestions c:\Users\Caleb\.atom\packages\autocomplete-paths\lib\paths-provider.coffee:17
module.exports.AutocompleteView.runAutocompletion c:\Users\Caleb\.atom\packages\autocomplete-plus\lib\autocomplete-view.coffee:140
(anonymous function) c:\Users\Caleb\.atom\packages\autocomplete-plus\lib\autocomplete-view.coffee:1
@jaddie
Copy link

jaddie commented Jul 9, 2014

Can confirm, same thing happening here -- have currently disabled the plugin as this is a blocking issue.

@datenshi33
Copy link

Similar problem with '/' on windows 8. Dropped on comment line.
Stack error:
Uncaught Error: EPERM, operation not permitted 'c:\Config.Msi'

@wayou
Copy link

wayou commented Aug 4, 2014

same problem here.
there's error in console every time I press the /

  • atom version: 0.120.0
  • platform: windows 7 ultimate x64

and the fllowing is a screen capture
baiduhi_2014-8-4_18-59-17

@edlongman
Copy link
Contributor

I also have this problem
This is due to the fact that it is trying to read files in the root directory to list them for the dropdown
Quite annoying, I'm looking into a fix atm

edlongman added a commit to edlongman/autocomplete-paths that referenced this issue Aug 14, 2014
On windows when typing / or \ the fs.statSync fails due to the file c:/hiberfil.sys, or others similar, not being readable.
This causes a fatal error.
Putting in this try catch statement allows for this to go wrong and will just move on regardless
Fix for issue atom-community#13
@screendriver
Copy link

👍 same here

@yongkangchen
Copy link
Contributor

Fixed by #16

yongkangchen added a commit that referenced this issue Dec 16, 2014
Fix #13 - Ignore path suggestions if user does not have access permissions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants