Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'shift' of undefined #30

Closed
arichiardi opened this issue Jul 29, 2016 · 8 comments
Closed

Cannot read property 'shift' of undefined #30

arichiardi opened this issue Jul 29, 2016 · 8 comments
Labels

Comments

@arichiardi
Copy link

Here is the issue as discussed on Slack, evaluating any form throws:

Internal Dirac Error: DevTools code has thrown an unhandled exception
TypeError: Cannot read property 'shift' of undefined
    at WebInspector.ConsoleView._alterDiracViewMessage (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/console_module.js:398:137)
    at WebInspector.ConsoleView._createViewMessage (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/console_module.js:406:133)
    at WebInspector.ConsoleView._addConsoleMessage (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/console_module.js:384:131)
    at WebInspector.ConsoleView._onConsoleMessageAdded (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/console_module.js:380:32)
    at WebInspector.MultitargetConsoleModel.dispatchEventToListeners (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:772:185)
    at WebInspector.MultitargetConsoleModel._consoleMessageAdded (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:4613:7)
    at WebInspector.ConsoleModel.dispatchEventToListeners (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:772:185)
    at WebInspector.ConsoleModel.addMessage (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:4542:97)
    at WebInspector.DiracAwareConsoleDispatcher.messageAdded (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:4596:311)
    at WebInspector.DiracAwareConsoleDispatcher.messageAdded (chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:4604:55)

This happens with 0.6.2 and Google Chrome 54.0.2810.2 dev (64-bit)

@darwin
Copy link
Member

darwin commented Jul 29, 2016

Thanks for reporting. Just to add probably related to Linux only. Seems to work on my Mac 10.11.6.

@darwin darwin added the bug label Jul 29, 2016
@darwin
Copy link
Member

darwin commented Jul 29, 2016

Was able to reproduce it under Mac as well. The root cause for this error is protocol mismatch between Chrome ~54.0.2810.2 and embedded DevTools in Dirac Extensions v0.6.2. Version 0.6.2 worked with Chrome around ~54.0.2793.0.

Unfortunately Chrome is in flux right now due to major debugging protocol changes related to V8 debugging support. This issue will resolve itself with next Dirac release.

@arichiardi
Copy link
Author

Thanks for investigating! Do you think a downgrade would solve?

@darwin
Copy link
Member

darwin commented Jul 30, 2016

I don't know where to get specific versions of Chrome Canary.

I will release a hotfix Dirac over the weekend. It will work with today's Canary (at least for few days :)

@arichiardi
Copy link
Author

arichiardi commented Jul 30, 2016

Thanks that sounds perfect!

@darwin
Copy link
Member

darwin commented Jul 30, 2016

Should be fixed now in v0.6.3.

@darwin darwin closed this as completed Jul 30, 2016
@darwin darwin changed the title Exception on eval in cljs console Cannot read property 'shift' of undefined Jul 30, 2016
@arichiardi
Copy link
Author

I confirm it works:

selection_013

@superstructor
Copy link

Confirmed working with Chrome 54.0.2813 on Mac. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants