Closed pavelm closed 9 years ago
I hate CSP... I hate CSP... @Krzysztof-Cieslak any ideas if this is something new in the F# generator? the latest update I didn't push through any new references to lodash (which is what generally causes this CSP problem with yeoman). I'll see if I can investigate tonight though.
Well, we haven't changed anything lately - last update to F# generator was 29 days ago. So I don't think it's issue there.
fair enough... I'll see if I can fix it tonight...
Did I mention I hate CSP? :-1:
On Thu, Sep 24, 2015 at 12:52 PM, Krzysztof Cieślak < notifications@github.com> wrote:
Well, we haven't changed anything lately - last update to F# generator was 29 days ago. So I don't think it's issue there.
— Reply to this email directly or view it on GitHub https://github.com/david-driscoll/atom-yeoman/issues/39#issuecomment-142986346 .
I have also no luck. Seems to be a common issue https://github.com/AtomLinter/linter-eslint/commit/b5f351a4517317cb5aea483a450143befe67cc52
Same issue today; blocking me currently. Can I do anything to help?
The last time I fixed it, it was a deep deep dependency on lodash.template, which uses eval under the covers. I'm going to look into it today and see if I can figure something out (I installed ionide the other day).
If someone can try #40 locally as a sanity check, that'd be great. Otherwise for F# projects they went from not working, to working with the changes.
with atome yeoman 0.3.15 today another error:
Unhandled promise rejection Promise with error: Error: ENOENT: no such file or directory, stat 'C:\Users\asvili\AppData\Local\atom\app-1.0.19\atom:\about'
at Error (native)
at fs.statSync (fs.js:854:18)
at Object.fs.statSync (ATOM_SHELL_ASAR.js:225:16)
at Function.Generator.getTreeViewDirectory (C:\Users\asvili\.atom\packages\atom-yeoman\lib\generator.js:166:24)
at Generator.getPath (C:\Users\asvili\.atom\packages\atom-yeoman\lib\generator.js:119:51)
at tryCatcher (C:\Users\asvili\AppData\Local\atom\app-1.0.19\resources\app.asar\node_modules\babel-core\node_modules\bluebird\js\main\util.js:26:23)
at Promise.module.exports.Promise._resolveFromResolver (C:\Users\asvili\AppData\Local\atom\app-1.0.19\resources\app.asar\node_modules\babel-core\node_modules\bluebird\js\main\promise.js:480:31)
at new Promise (C:\Users\asvili\AppData\Local\atom\app-1.0.19\resources\app.asar\node_modules\babel-core\node_modules\bluebird\js\main\promise.js:70:37)
at Function.Generator.getPath (C:\Users\asvili\.atom\packages\atom-yeoman\lib\generator.js:115:16)
at Generator.run (C:\Users\asvili\.atom\packages\atom-yeoman\lib\generator.js:220:30)
at C:\Users\asvili\.atom\packages\atom-yeoman\lib\generator-service.js:17:87
at C:\Users\asvili\AppData\Local\atom\app-1.0.19\resources\app.asar\node_modules\babel-core\node_modules\lodash\index.js:1773:43
Atom Version: 1.0.16 System: Mac OS X 10.10.5 Thrown From: atom-yeoman package, v0.3.14
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