nova-ruby / rails

Ruby on Rails and Ruby support for Nova editor.
19 stars 7 forks source link

TypeError: undefined is not an object #10

Open Wylan opened 2 years ago

Wylan commented 2 years ago

Hi,

I've recently noticed an error popping up in the extension log. It looks like it's maybe having some trouble when trying to pull information about the database schema version?

Ruby on Rails[14:08:49.546000] TypeError: undefined is not an object (evaluating 'response[9].split')
Ruby on Rails[14:08:49.943000] Extension encountered an uncaught exception:
/Users/wylan/Library/Application Support/Nova/Extensions/com.tommasonegri.Rails/Scripts/main.dist.js (Line 376, Column 28)
TypeError: null is not an object (evaluating 'noteParts[1]')
    @file:///Users/wylan/Library/Application%20Support/Nova/Extensions/com.tommasonegri.Rails/Scripts/main.dist.js:376:28
    forEach@[native code]
    @file:///Users/wylan/Library/Application%20Support/Nova/Extensions/com.tommasonegri.Rails/Scripts/main.dist.js:362:22
    @[native code]
    promiseReactionJob@[native code]

Let me know if there is any extra info I can provide to help track it down! 😄

tommasongr commented 2 years ago

Hi there!

Thanks for the catch. Yes, it seems there is an issue with the About view of the sidebar. Can you send me the result of rails about command in the project you were working on?

It should be something like this:

Schermata 2022-03-10 alle 09 03 38

Thanks