Exception when clicking in file with tests
Gert-dev opened this issue ยท 5 comments
Hello
This issue seems to happen every time I open a file that contains tests. I'm using tester-phpunit and version 1.3.1 of the package. If this is something that tester-phpunit is doing wrong, I'll report it there instead :-).
/home/user/.atom/packages/tester/node_modules/rxjs/observable/PromiseObservable.js:76
Hide Stack Trace
Error: Actions must be plain objects. Use custom middleware for async actions.
at dispatch (/home/user/.atom/packages/tester/node_modules/redux/lib/createStore.js:166:13)
at /home/user/.atom/packages/tester/node_modules/redux-observable/lib/cjs/createEpicMiddleware.js:71:22
at SafeSubscriber.dispatch [as _next] (/home/user/.atom/packages/tester/node_modules/redux/lib/applyMiddleware.js:45:18)
at SafeSubscriber.__tryOrUnsub (/home/user/.atom/packages/tester/node_modules/rxjs/Subscriber.js:238:16)
at SafeSubscriber.next (/home/user/.atom/packages/tester/node_modules/rxjs/Subscriber.js:185:22)
at Subscriber._next (/home/user/.atom/packages/tester/node_modules/rxjs/Subscriber.js:125:26)
at Subscriber.next (/home/user/.atom/packages/tester/node_modules/rxjs/Subscriber.js:89:18)
at SwitchMapSubscriber.notifyNext (/home/user/.atom/packages/tester/node_modules/rxjs/operator/switchMap.js:124:30)
at InnerSubscriber._next (/home/user/.atom/packages/tester/node_modules/rxjs/InnerSubscriber.js:23:21)
at InnerSubscriber.Subscriber.next (/home/user/.atom/packages/tester/node_modules/rxjs/Subscriber.js:89:18)
at MergeAllSubscriber.OuterSubscriber.notifyNext (/home/user/.atom/packages/tester/node_modules/rxjs/OuterSubscriber.js:19:26)
at InnerSubscriber._next (/home/user/.atom/packages/tester/node_modules/rxjs/InnerSubscriber.js:23:21)
at InnerSubscriber.Subscriber.next (/home/user/.atom/packages/tester/node_modules/rxjs/Subscriber.js:89:18)
at CatchSubscriber.Subscriber._next (/home/user/.atom/packages/tester/node_modules/rxjs/Subscriber.js:125:26)
at CatchSubscriber.Subscriber.next (/home/user/.atom/packages/tester/node_modules/rxjs/Subscriber.js:89:18)
at SwitchMapSubscriber.notifyNext (/home/user/.atom/packages/tester/node_modules/rxjs/operator/switchMap.js:124:30)
at InnerSubscriber._next (/home/user/.atom/packages/tester/node_modules/rxjs/InnerSubscriber.js:23:21)
at InnerSubscriber.Subscriber.next (/home/user/.atom/packages/tester/node_modules/rxjs/Subscriber.js:89:18)
at /home/user/.atom/packages/tester/node_modules/rxjs/observable/PromiseObservable.js:66:36
Thanks in advance
Unfortunately I can not reproduce the problem. I used https://github.com/recca0120/tester-phpunit project.
Could you please give more information: command, test project etc?
I'm experiencing it with my project on the development branch as soon as I open or activate a file that contains tests. It only happens once, then everything ceases to work. Project testing works as long as I don't open any test file.
I tried stepping through with a debugger and it seems to happen in tester/node_modules/rxjs/src/observable/PromiseObservable.ts
right on the line subscriber.next(value);
(line 66 here). As soon as this line is executed, the .then
clause is triggered that throws the error. The value
that is passed here is also undefined
, not sure if that is of any help to you.
Very strange, I think it's now fixed by pulling 1.3.2 from Git and running apm install
manually. I'll reopen if I encounter this again.