Closed orangercat closed 8 years ago
I'm getting this same issue. 😞
Is this happening when you try opening today's journal? It looks like a problem with the loophole package.
It is indeed (at least for me).
in fact, sometime i cant startup iamdone
I am also having this issue. /Users/alexcstark/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14499 [Enter steps to reproduce below:]
Atom Version: 1.9.8 System: Mac OS X 10.11.6 Thrown From: imdone-atom package, v1.3.29
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
At /Users/alexcstark/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14499
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
at /Users/alexcstark/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14491:16
at apply (/Users/alexcstark/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:479:27)
at /Users/alexcstark/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14875:16
at apply (/Users/alexcstark/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:481:27)
at /Users/alexcstark/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:3829:16
at Function.template (/Users/alexcstark/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14490:20)
at /Users/alexcstark/.atom/packages/imdone-atom/lib/imdone-atom.coffee:130:16
at exports.allowUnsafeNewFunction (/Users/alexcstark/.atom/packages/imdone-atom/node_modules/loophole/lib/loophole.js:25:14)
at Object.module.exports.ImdoneAtom.openJournalFile (/Users/alexcstark/.atom/packages/imdone-atom/lib/imdone-atom.coffee:123:5)
at atom-workspace.<anonymous> (/Users/alexcstark/.atom/packages/imdone-atom/lib/imdone-atom.coffee:88:8)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)
-3:14.5.0 core:move-down (atom-text-editor.editor.is-focused)
-3:14 core:move-up (atom-text-editor.editor.is-focused)
3x -3:13.6.0 core:move-left (atom-text-editor.editor.is-focused)
-3:06.6.0 core:save (atom-text-editor.editor.is-focused)
-2:59 settings-view:open (atom-text-editor.editor.is-focused)
2x -2:53 core:backspace (atom-text-editor.editor.mini.is-focused)
-2:52.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)
5x -1:25.8.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-1:22 core:confirm (atom-text-editor.editor.mini.is-focused)
12x -1:06.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-1:03.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:50 core:close (atom-text-editor.editor.mini.is-focused)
-0:49.1.0 settings-view:open (atom-text-editor.editor.is-focused)
-0:18.3.0 imdone-atom:todays-journal (div.package-detail.panels-item)
-0:03.3.0 imdone-atom:tasks (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
-0:00.0 imdone-atom:todays-journal (div.imdone-atom.pane-item)
{
"core": {
"disabledPackages": [
"language-mongodb",
"jshint",
"fast-eslint",
"linter-jshint",
"synced-sidebar"
],
"openEmptyEditorOnStart": false,
"packagesWithKeymapsDisabled": [
"fold-functions"
],
"projectHome": "/Users/alexcstark/OneDrive/Coding Workspace",
"restorePreviousWindowsOnStart": false,
"themes": [
"one-dark-ui",
"monokai"
]
},
"imdone-atom": {
"showNotifications": true
}
}
# User
accents-ui, v1.2.0 (inactive)
atom-beautify, v0.29.10 (active)
atom-material-syntax, v0.4.6 (inactive)
atom-material-syntax-dark, v0.2.5 (inactive)
atom-material-ui, v1.3.3 (inactive)
atom-monokai, v0.10.4 (inactive)
auto-fold, v0.3.0 (active)
autocomplete-modules, v1.6.1 (active)
close-other-tabs, v0.1.0 (active)
code-peek, v1.4.8 (inactive)
color-picker, v2.2.2 (active)
emmet, v2.4.3 (active)
file-icons, v1.7.18 (active)
file-types, v0.5.4-p1 (active)
git-plus, v5.16.2 (inactive)
highlight-selected, v0.11.2 (active)
imdone-atom, v1.3.29 (active)
language-babel, v2.32.2 (active)
language-docker, v1.1.7 (active)
linter, v1.11.16 (active)
linter-csslint, v1.3.2 (active)
linter-docker, v0.1.2 (active)
linter-erb, v1.0.2 (active)
linter-eslint, v7.2.4 (active)
linter-rails-best-practices, v0.2.2 (active)
material-monokai-syntax, v0.1.1 (inactive)
merge-conflicts, v1.4.4 (active)
mocha-test-runner, v0.5.1 (active)
monokai, v0.18.0 (active)
monokai-seti, v0.7.0 (inactive)
native-ui, v0.18.3 (inactive)
nucleus-dark-ui, v0.9.1 (inactive)
open-in-browser, v0.4.7 (inactive)
pigments, v0.31.2 (active)
project-plus, v0.9.0 (active)
rails-snippets, v2.7.0 (inactive)
script, v3.9.0 (inactive)
seti-syntax, v1.0.1 (inactive)
seti-ui, v1.3.2 (inactive)
tab-numbers, v0.4.0 (active)
test-syntax, v0.0.0 (inactive)
webbox-color, v0.5.9 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (active)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (active)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.46.0 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.1 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)
# Dev
No dev packages
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". at /Users/anthony/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14491:16 at apply (/Users/anthony/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:479:27) at /Users/anthony/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14875:16 at apply (/Users/anthony/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:481:27) at /Users/anthony/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:3829:16 at Function.template (/Users/anthony/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14490:20) at /Users/anthony/.atom/packages/imdone-atom/lib/imdone-atom.coffee:130:16 at exports.allowUnsafeNewFunction (/Users/anthony/.atom/packages/imdone-atom/node_modules/loophole/lib/loophole.js:25:14) at Object.module.exports.ImdoneAtom.openJournalFile (/Users/anthony/.atom/packages/imdone-atom/lib/imdone-atom.coffee:123:5) at atom-workspace.<anonymous> (/Users/anthony/.atom/packages/imdone-atom/lib/imdone-atom.coffee:88:8) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29) at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61 at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:183:32) at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21) at space-pen-li.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19) at HTMLOListElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9) at HTMLOListElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)
I could not reproduce this on atom 1.9.9 with OS X 10.11.6. Can someone please verify that it is still occurring for them on atom 1.9.9? This is a strange one since I'm wrapping the call the _.template
with loophole.allowUnsafeNewFunction
on the line that's causing the error.
[Enter steps to reproduce below:]
Atom Version: 1.9.9 System: Mac OS X 10.11.6 Thrown From: imdone-atom package, v1.3.29
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
At /Users/chaochen/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14499
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
at /Users/chaochen/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14491:16
at apply (/Users/chaochen/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:479:27)
at /Users/chaochen/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14875:16
at apply (/Users/chaochen/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:481:27)
at /Users/chaochen/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:3829:16
at Function.template (/Users/chaochen/.atom/packages/imdone-atom/node_modules/lodash/lodash.js:14490:20)
at /Users/chaochen/.atom/packages/imdone-atom/lib/imdone-atom.coffee:130:16
at exports.allowUnsafeNewFunction (/Users/chaochen/.atom/packages/imdone-atom/node_modules/loophole/lib/loophole.js:25:14)
at Object.module.exports.ImdoneAtom.openJournalFile (/Users/chaochen/.atom/packages/imdone-atom/lib/imdone-atom.coffee:123:5)
at atom-workspace.<anonymous> (/Users/chaochen/.atom/packages/imdone-atom/lib/imdone-atom.coffee:88:8)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1104:28)
at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/application-delegate.js:329:25)
at emitTwo (events.js:100:13)
at EventEmitter.emit (events.js:185:7)
-0:00.2.0 imdone-atom:todays-journal (atom-text-editor.editor.mini.is-focused)
{
"core": {
"disabledPackages": [
"symbols-view"
],
"themes": [
"atom-dark-ui",
"solarized-dark-syntax"
]
}
}
# User
atom-beautify, v0.29.10 (inactive)
atom-ctags, v4.5.2 (active)
atom-django, v0.3.2 (active)
atom-html-preview, v0.1.22 (active)
atom-terminal, v0.8.0 (inactive)
autoclose-html, v0.23.0 (active)
ex-mode, v0.13.0 (inactive)
git-plus, v5.16.2 (inactive)
highlight-selected, v0.11.2 (active)
hyperclick, v0.0.37 (active)
imdone-atom, v1.3.29 (active)
linter, v1.11.16 (active)
linter-pep8, v1.3.0 (active)
linter-python-pep8, v0.2.0 (active)
markdown-scroll-sync, v2.1.2 (active)
python-autopep8, v0.1.3 (active)
regex-railroad-diagram, v0.16.0 (active)
vim-mode, v0.65.1 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (active)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (inactive)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (active)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.1 (active)
metrics, v0.53.1 (active)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.1 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.1 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)
# Dev
No dev packages
it happens when i use today's journey
I just released a patch to fix this issue. Can you please verify that it's working with imdone-atom 1.3.30
its ok now via imdone-atom 1.3.30
[Enter steps to reproduce below:]
Atom Version: 1.9.8 System: Mac OS X 10.11.6 Thrown From: imdone-atom package, v1.3.29
Stack Trace
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
Commands
Config
Installed Packages