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

Uncaught Exception Errors #31

Open
mzagaja opened this issue Dec 21, 2022 · 2 comments
Open

Uncaught Exception Errors #31

mzagaja opened this issue Dec 21, 2022 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@mzagaja
Copy link

mzagaja commented Dec 21, 2022

I am getting the following errors in my console, their source unclear:

Extension encountered an uncaught exception:
/Users/mzagaja/Library/Application Support/Nova/Extensions/com.tommasonegri.Rails/Scripts/main.js (Line 38, Column 36)
TypeError: undefined is not an object (evaluating 'nova.workspace.activeTextEditor.onDidSave')
    @file:///Users/mzagaja/Library/Application%20Support/Nova/Extensions/com.tommasonegri.Rails/Scripts/main.js:38:36
Extension encountered an uncaught exception:
/Users/mzagaja/Library/Application Support/Nova/Extensions/com.tommasonegri.Rails/Scripts/helpers.js (Line 134, Column 28)
TypeError: null is not an object (evaluating 'noteParts[1]')
    @file:///Users/mzagaja/Library/Application%20Support/Nova/Extensions/com.tommasonegri.Rails/Scripts/helpers.js:134:28
    forEach@[native code]
    @file:///Users/mzagaja/Library/Application%20Support/Nova/Extensions/com.tommasonegri.Rails/Scripts/helpers.js:120:22
    @[native code]
    promiseReactionJob@[native code]
Solargraph Language Server connection closed unexpectedly: Error Domain=NSCocoaErrorDomain Code=4 "The file “stdio” doesn’t exist." UserInfo={NSFilePath=/stdio}

^ odd beause I'm pretty sure I'm using socket.

@tommasongr
Copy link
Collaborator

Hi there! Thanks for reporting this.

It seems the same issue reported in #27. #28 should fix it.

However, since I'm planning to remove Solargraph and Rubocop from this extension in favor of a standalone and completely rewritten new one (which integrates the fix), I think I won't merge it for now. The new extension should be ready for a first release tomorrow or the day after, so I hope you can wait a little bit 🙏.

By the way, the new extension should be way more stable, capable of using the global or bundled Solargraph gem and improve the experience with new features like workspace symbols, symbol renaming and find references.

CleanShot 2022-12-21 at 23 25 50@2x

It also avoids the previous workaround for launching Rubocop format and format on save. This means you can now configure the formatter from .solargraph.yml and expect that the extension uses it.

formatter:
  rubocop:
    cops: safe
    except: []
    only: []
    extra_args: []

@tommasongr tommasongr added bug Something isn't working duplicate This issue or pull request already exists labels Dec 21, 2022
@tommasongr
Copy link
Collaborator

Hi there! Here it is my little Christmas present: https://github.com/nova-ruby/solargraph

If you want to start using the new Solargraph extension make sure to disable it from the Ruby on Rails extension

CleanShot 2022-12-24 at 10 39 35@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants