Run package specs in Atom Editor always causes error - macos

Atom Editor can be found here: https://atom.io/
Discourse thread about this issue here: http://discuss.atom.io/t/application-run-all-specs-fail-to-run/7541
I am running: MBP (OS X 10.9.2) with Atom 0.84.0 and Node 0.10.26.
When I do View > Developer > Run atom specs
- Nothing happens, no window opens, inspector doesn't open
When I do
apm develop vim-mode
cd ~/github/vim-mode
atom .
View > Developer > Run package specs
- Nothing happens, no window opens, inspector doesn't open
I then tried
~/github/vim-mode $ apm test
[764:0409/142738:INFO:renderer_main.cc(227)] Renderer process started
No window opened, however another Atom program launched with a menu containing "Atom > [Reload, Close, Toggle, Quit]"
After pressing Quit, the terminal said "Tests passed". None of the other buttons worked
~/github/vim-mode $ apm test
[645:0409/141838:INFO:renderer_main.cc(227)] Renderer process started
Tests passed
I don't think they actually passed, "Tests passed" only showed up after quitting the window
I then tried atom -d
And an identical program started with no window
I then tried running tests via another way
~/github/vim-mode $ atom -t
[833:0409/143232:INFO:renderer_main.cc(227)] Renderer process started
[831:0409/143236:INFO:CONSOLE(27)] "Error: Cannot find module '../lib/ui-watcher.coffee'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:279:25)
at Module.require (module.js:363:17)
at require (module.js:379:17)
at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/dev-live-reload/spec/ui-watcher-spec.js:8:15)
at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/dev-live-reload/spec/ui-watcher-spec.js:185:4)
at Module._compile (module.js:455:26)
at Object.Module._extensions..js (module.js:473:10)
at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:363:17)
at require (module.js:379:17)
at requireSpecs (/Applications/Atom.app/Contents/Resources/app/spec/spec-suite.coffee:9:5)
at runAllSpecs (/Applications/Atom.app/Contents/Resources/app/spec/spec-suite.coffee:47:3)
at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/spec/spec-suite.coffee:58:3)
at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/spec/spec-suite.coffee:1:1)
at Module._compile (module.js:455:26)
at Object.requireCoffeeScript [as .coffee] (/Applications/Atom.app/Contents/Resources/app/src/coffee-cache.js:64:19)
at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:363:17)
at require (module.js:379:17)
at module.exports.runSpecSuite (/Applications/Atom.app/Contents/Resources/app/spec/jasmine-helper.coffee:30:3)
at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/spec/spec-bootstrap.coffee:24:3)
at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/spec/spec-bootstrap.coffee:2:1)
at Module._compile (module.js:455:26)
at Object.requireCoffeeScript [as .coffee] (/Applications/Atom.app/Contents/Resources/app/src/coffee-cache.js:64:19)
at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:363:17)
at require (module.js:379:17)
at window.onload (file:///Applications/Atom.app/Contents/Resources/app/static/index.js:20:5)
", source: /Applications/Atom.app/Contents/Resources/app/spec/spec-bootstrap.coffee (27)

This issue is not relevant any longer, problem solved after reinstallation.

Related

SyntaxError Unexpected token in Cypress

I am trying to setup Cypress in my laptop, but I get this error when I try to execute the example tests. I tried to clear the cypress cache and reinstall cypress, but got the same error. here is screen shot of what syntax error I receive when I hit "npm run test".
This is what I get in the terminal after I hit "npm run test"
C:\Users\u46827\AppData\Local\Cypress\Cache\10.7.0\Cypress\resources\app\node_modules\#packages\server\lib\plugins\child\run_plugins.js:40
invoke = (eventId, args = []) => {
SyntaxError: Unexpected token =
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:656:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\u46827\AppData\Local\Cypress\Cache\10.7.0\Cypress\resources\app\node_modules\#packages\server\lib\plugins\child\run_require_async_child.js:6:24)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
[3544:0904/215759.289:ERROR:dns_config_service.cc(278)] DNS config watch failed.
Please open screenshot here
I found the issue. My node version was old. I updated it to 16

Lerna command in AWS Codebuild

Error: Cannot find module '.'
Require stack:
- /codebuild/output/src309915592/src/node_modules/.bin/lerna
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:903:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/codebuild/output/src309915592/src/node_modules/.bin/lerna:11:3)
at Module._compile (internal/modules/cjs/loader.js:1015:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
at Module.load (internal/modules/cjs/loader.js:879:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/codebuild/output/src309915592/src/node_modules/.bin/lerna' ]
}
I get this error on running the test command:
lerna run --stream test --parallel
Also, tried with
lerna run --stream test --parallel --scope tenant-registration-service
In the services, test script looks like,
"test": "serverless-bundle test --verbose --coverage",
I installed Lerna globally in the pipeline. How do I debug this? What module is it not able to find? It looks like it already has lerna installed which it should.
npm run test command runs just fine on the local system.

RxJs-5-to-6-migrate crashes

I'm trying to update my project from Angular 4 to Angular 6.
I followed the update steps found on the Angular website and all goes quite smoothly.
However, when trying to use the rxjs-5-to-6-migrate script, it crashes.
I've tried various variations of paths, but noothing seems to work.
I've no idea what's going on...
PS D:\workspace\project> rxjs-5-to-6-migrate -p src/tsconfig.app.json
Running the automatic migrations. Please, be patient and wait until the execution completes.
child_process.js:615
throw err;
^
Error: Command failed: "d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\node_modules\.bin\tslint" -c "d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.json" -p "src/tsconfig.app.json" --fix
at checkExecSyncError (child_process.js:575:11)
at Object.execSync (child_process.js:612:13)
at migrate (d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.js:18:34)
at Object.<anonymous> (d:\Applications\node-v9.11.1-win-x64\node_modules\rxjs-tslint\rxjs-5-to-6-migrate.js:25:14)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Module.require (internal/modules/cjs/loader.js:598:17)
Apparently it was a outdated dependency (probably tslint) what caused this. After updating all dependencies in the package.json, it worked.

Unable to install heroku core plugins

Windows 8.1, 64b
Last week all worked.
Whenever I run a heroku command it tries to install the heroku core plugins, example:
C:\Users\Usr\Documents\Aptana3_Workspace\mobile-site>heroku run
Installing core plugins heroku-apps, heroku-fork, heroku-git, heroku-local, heroku-run, heroku-status...
? module.js:338
? throw err;
? ^
?
? Error: Cannot find module './bin/npm-cli.js'
? at Function.Module._resolveFilename (module.js:336:15)
? at Function.Module._load (module.js:286:25)
? at Module.require (module.js:365:17)
? at require (module.js:384:17)
? at Object.<anonymous> (C:\Users\Usr\AppData\Local\heroku\node-v4.1.1-windows-x86\lib\node_modules\npm\cli.js:2:1)
? at Module._compile (module.js:434:26)
? at Object.Module._extensions..js (module.js:452:10)
? at Module.load (module.js:355:32)
? at Function.Module._load (module.js:310:12)
? at Function.Module.runMain (module.js:475:10)
! `run` is not a heroku command.
! Perhaps you meant `-h`, `2fa`, `auth`, `join`, `open`, `orgs`, `pg`, `ps` or `rake`.
! See `heroku help` for a list of available commands.
C:\Users\Usr\Documents\Aptana3_Workspace\mobile-site>
While the some commands work, even when showing the error msg:
C:\Users\Usr\Documents\Aptana3_Workspace\mobile-site>heroku restart
Installing core plugins heroku-apps, heroku-fork, heroku-git, heroku-local, heroku-run, heroku-status...
? module.js:338
? throw err;
? ^
?
? Error: Cannot find module './bin/npm-cli.js'
? at Function.Module._resolveFilename (module.js:336:15)
? at Function.Module._load (module.js:286:25)
? at Module.require (module.js:365:17)
? at require (module.js:384:17)
? at Object.<anonymous> (C:\Users\Usr\AppData\Local\heroku\node-v4.1.1-windows-x86\lib\node_modules\npm\cli.js:2:1)
? at Module._compile (module.js:434:26)
? at Object.Module._extensions..js (module.js:452:10)
? at Module.load (module.js:355:32)
? at Function.Module._load (module.js:310:12)
? at Function.Module.runMain (module.js:475:10)
Restarting dynos... failed
! You do not have access to the app mobile-site.
C:\Users\Usr\Documents\Aptana3_Workspace\mobile-site>
I reinstalled heroku, searched the web but no success..
Any ideas?
Thx.
The solution for me was:
Delete %LOCALAPPDATA%\heroku folder and try again (run heroku command)
I didn't think of this, I didn't even know this folder existed- That's what Heroku support said- so credit for him :)
p.s. to know where %LOCALAPPDATA% is just write in the console (windows)
echo %LOCALAPPDATA%
Happened to me as well on Windows. I turned off and back on command prompt window, reinstalled Heroku toolbelt and redeployed my app to Heroku, problem got solved.

Cannot Deploy Marklogic 8 - SampleStack

I am new to Marklogic 8 , and I was hoping some experts here can help me out. Essentially, I have installed ML8 and had successfully run through some of the exercises that were suggested. I would like to test SampleStack, so I proceeded with the instructions here.
I'm not able to install the browser application, with the information presented here, specifically the section to "Set up the Angular.js/Gulp development environment" ().
here is my current challenge:
gulp run returns this error:
[00:19:40] Starting 'clean'...
[00:19:40] Finished 'clean' after 8.34 ms
[00:19:40] Starting 'bower-files'...
[00:19:40] Finished 'bower-files' after 39 ms
[00:19:40] Starting 'build'...
[00:19:41] 'build' errored after 453 ms
[00:19:41] Error: The specified procedure could not be found.
G:\app\marklogic\marklogic-samplestack-master\browser\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-x64\binding.node
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (G:\app\marklogic\marklogic-samplestack-master\browser\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:211:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
[00:19:41] processing files
[00:19:42] saw 217 files
A quick check of gulp tells me both have been set to 3.8.11
G:\app\marklogic\marklogic-samplestack-master\browser>gulp -v
[00:23:52] CLI version 3.8.11
[00:23:52] Local version 3.8.11
any assistance would be appreciated.
It looks like you've run into an issue with node-sass on node v0.12, which is expected to be fixed in node-sass v2.0.0.
As discussed in that thread, you can manually compile and link node-sass to fix the issue. Or, as discussed in this answer, you can downgrade node to v0.10.

Resources