kwerle / ide-ruby

Atom package used to integrate https://github.com/kwerle/ruby_language_server with Atom. Development happens on the develop branch. Production is master.
23 stars 6 forks source link

error @ auto-languageclient.ts:459 #33

Closed StefanPofahl closed 3 years ago

StefanPofahl commented 3 years ago

Hi,

I managed to install docker, which is infect not straight forward for a non-SW-engineer. But the ide-ruby does not start. My OS is Ubuntu 20.04, my atom is v1.54.0. Here is the part of the error that is displayed after reloading the window:

usr/local/bundle/gems/activerecord-5.2.4.1/lib/active_record/relation.rb logger.ts:19 Ruby (Ruby-lang-server) stderr /usr/local/bundle/gems/activerecord-5.2.4.1/lib/active_ record/relation.rb:25: warning: The called methodinitialize' is defined here logger.ts:23 Ruby (Ruby-lang-server) [Array(1)]` error @ logger.ts:23 error @ logger.ts:82 error @ auto-languageclient.ts:459 handleNotification @ /home/spofahl/.atom/packages/ide-ruby/node_modules/vscode-jsonrpc/lib/main.js:507 processMessageQueue @ /home/spofahl/.atom/packages/ide-ruby/node_modules/vscode-jsonrpc/lib/main.js:273 (anonymous) @ /home/spofahl/.atom/packages/ide-ruby/node_modules/vscode-jsonrpc/lib/main.js:260 processImmediate @ internal/timers.js:439

I hope you have an idea what is going on.

Regards,

Stefan

Ide-Ruby.log

StefanPofahl commented 3 years ago

What is strange, is the wrong path: /usr/local/bundle/gems/[...] This path does not exist on my machine.

StefanPofahl commented 3 years ago

To do something, I tied to install the file where, it should be: sudo gem install --install-dir /usr/local/bundle activerecord -v 5.2.4.1 But the error message is still the same. Also the command: sudo gem update --install-dir /usr/local/bundle was not helpful. I found the following internet site, where a similar problem is reported: ruby-27-deprecations-warnings I hope this helps to track down the issue. Regards, Stefan

kwerle commented 3 years ago

Let's start at the top: I require docker because this tool does not use ruby on your [host] machine. It uses it in the docker container. You should stop trying to fix ruby on your system.

I'm not sure why you think the language server isn't running. It clearly does start up, and I don't see any indication it exits.

StefanPofahl commented 3 years ago

Hi Kurt, thanks for the fast response :-) It was not in my mind to fix the ruby installation. Ruby is up and running without issues (as far as I can see). The idea was: give my computer the file he was looking for in the expected folder. Today I deleted the folder /usr/local/bundle again. The problem is that I do not know how to start the "ide-ruby" package. Attached I send you two screenshots, please let me know which information you need to track down the root-cause. ide_ruby_does_not_start.pdf

Regards,

Stefan

kwerle commented 3 years ago

Again, the ide is not using ruby on your system. Modifying your system files will do absolutely nothing. You could uninstall ruby entirely.

Open a ruby file, and do Outline View: Toggle (alt-o for me). Also View -> Toggle Diagnostics (alt-shift-d)

StefanPofahl commented 3 years ago

Hi Kurt,

below what I see. Is this what you expect? Outline_and_diagnostics

What about the warnings and error if I reload the window, are these messages related to your package?

Regards,

Stefan

kwerle commented 3 years ago

Yup. Everything is working as it should. Those are rubocop warnings.

https://docs.rubocop.org/rubocop/configuration.html

It's funny to see code in German :-)

Guten tag!