elm-lens icon indicating copy to clipboard operation
elm-lens copied to clipboard

Elm Lens trying to access address book on Mac

Open cmvandrevala opened this issue 5 years ago • 0 comments

[Enter steps to reproduce:]

  1. Installed the elm-lens package on atom
  2. Open up atom. I received pop-ups asking if Atom had permission to view Documents, Desktop, etc. Most of these were fine to mark yes.
  3. One popup asked if I wanted to give Atom permission to access my address book (which I selected no). After atom finished opening, I received an error message saying that elm-lens could not access my address book.

Is this expected behavior? Does elm-lens really need access to your address book to function properly?

Atom: 1.41.0 x64 Electron: 4.2.7 OS: Mac OS X 10.15.1 Thrown From: elm-lens package 0.3.0

Stack Trace

Uncaught Error: EPERM: operation not permitted, scandir '/Users/cyrus/Library/Application Support/AddressBook'

At fs.js:115

Error: EPERM: operation not permitted, scandir '/Users/cyrus/Library/Application Support/AddressBook'
    at Object.readdirSync (fs.js:764:3)
    at Object.fs.readdirSync (ELECTRON_ASAR.js:641:39)
    at Workspace.elmFileList (/packages/elm-lens/lib/workspace.js:57:19)
    at Workspace.findElmFilesInSubdirectories (/packages/elm-lens/lib/workspace.js:43:29)
    at /packages/elm-lens/lib/workspace.js:47:45
    at Array.forEach (<anonymous>)
    at Workspace.findElmFilesInSubdirectories (/packages/elm-lens/lib/workspace.js:46:24)
    at /packages/elm-lens/lib/workspace.js:47:45
    at Array.forEach (<anonymous>)
    at Workspace.findElmFilesInSubdirectories (/packages/elm-lens/lib/workspace.js:46:24)
    at /packages/elm-lens/lib/workspace.js:47:45
    at Array.forEach (<anonymous>)
    at Workspace.findElmFilesInSubdirectories (/packages/elm-lens/lib/workspace.js:46:24)
    at /packages/elm-lens/lib/workspace.js:23:45
    at Array.forEach (<anonymous>)
    at Workspace.getAllElmFiles (/packages/elm-lens/lib/workspace.js:22:32)
    at Project.processAllElmFiles (/packages/elm-lens/lib/project.js:21:41)
    at /packages/elm-lens/lib/project.js:31:35

Commands

     -0:38.2.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)

Non-Core Packages

atom-beautify 0.33.4 
atom-elixir 0.2.3 
atom-elixir-formatter 1.0.6 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
atom-ternjs 0.19.1 
atom-typescript 13.2.1 
auto-detect-indentation 1.3.0 
autocomplete-modules 2.3.0 
busy-signal 2.0.1 
elm-format 3.2.0 
elm-lens 0.3.0 
elmjutsu 9.11.0 
file-icons 2.1.31 
firacode 0.3.0 
gloom 0.6.5 
html-to-elm 0.2.0 
hyperclick 0.1.5 
intentions 1.1.5 
language-babel 2.85.0 
language-docker 1.1.8 
language-ejs 0.4.0 
language-elixir 0.22.1 
language-elm 1.5.0 
linter 2.3.0 
linter-ui-default 1.7.1 
markdown-pdf 2.2.0 
pdf-view 0.71.0 
pigments 0.40.2 
single-click-open 0.2.2 
sort-lines 0.19.0 
sync-settings 0.8.6 
todo-show 2.3.2 

cmvandrevala avatar Nov 19 '19 15:11 cmvandrevala