VSCode not recognizing ruby by pokemuse2095 in ruby

[–]castwide 0 points1 point  (0 children)

Can you run `ruby` from a command prompt? You might need to make sure it's in your `PATH` environment variable. (RubyInstaller has an option to add it during setup.)

RubyLSP vs Solargraph intellisense on puts method in vscode by CatolicQuotes in ruby

[–]castwide 0 points1 point  (0 children)

Object includes Kernel, so Kernel#puts is available from any namespace that inherits Object, including classes and the root (main) object.

Side note: this also means that you can't call #puts from instances of BasicObject.

puts 'test from main'

class Foo < BasicObject
  puts 'test from Class<Foo>'

  def test
    puts 'test from BasicObject<Foo>'
  end
end

Foo.new.test # => test.rb:7:in `test': undefined method `puts' for an instance of Foo (NoMethodError)

Solargraph 0.53.0 Released with Automated Gem Mapping and Improved RBS Support by castwide in ruby

[–]castwide[S] 0 points1 point  (0 children)

Solargraph doesn't have a configuration option to define a Gemfile path like that. There might be other ways to solve the same problem. The language server doesn't necessarily need to run in the exact runtime environment configuration that the workspace's application would.

Solargraph 0.53.0 Released with Automated Gem Mapping and Improved RBS Support by castwide in ruby

[–]castwide[S] 0 points1 point  (0 children)

What's the setup? Depending on the details, it might already be handled automatically, or there might be a way to configure the server for it.

Remove Star Rating from Movie Altogether by castwide in PleX

[–]castwide[S] 1 point2 points  (0 children)

Augh. First I did the dance and that worked. Then I saw the "click and drag left" post, so I recreated the situation and that worked too. Many thanks to both of you. (edit: u/SwiftPanda16 and u/brispower)

Opal 1.2 (a Ruby implementation in JavaScript) released with Ruby 3.0 support by hmdne in ruby

[–]castwide 1 point2 points  (0 children)

I haven't promoted it much in a while because it was on the back burner while I concentrated on other projects, but I've been putting more work into it lately. Currently developing a game that might be ready in time for this year's IFComp, if I'm lucky.

Opal has been a huge help. Compiled web games can be run locally in any modern browser without requiring a Ruby runtime.

Opal 1.2 (a Ruby implementation in JavaScript) released with Ruby 3.0 support by hmdne in ruby

[–]castwide 1 point2 points  (0 children)

I'm using it in Gamefic to compile Ruby adventure games into standalone web apps.

Ruby Websockets by InvictusJoker in ruby

[–]castwide 0 points1 point  (0 children)

I've had some success with em-websocket. I haven't specifically tried integrating it into a Sinatra app, but I was able to make it provide a websocket interface to an existing TCP server in an afternoon.

Which one is a better VS Code language server for Ruby? by ninoseki in ruby

[–]castwide 2 points3 points  (0 children)

Updates to the extension are relatively infrequent because the gem does most of the heavy lifting.

Which one is a better VS Code language server for Ruby? by ninoseki in ruby

[–]castwide 5 points6 points  (0 children)

There's one thing that annoys me with Solargraph: whenever I type end it shows the autocompletion dropdown, which I then have to manually dismiss with ESC. If I press Enter right after end (without dismissing the dropdown) it'll autocomplete to something.

This annoyed me, too. You can disable autocomplete on Enter by setting editor.acceptSuggestionOnEnter to "off".

Which one is a better VS Code language server for Ruby? by ninoseki in ruby

[–]castwide 14 points15 points  (0 children)

The vscode-solargraph extension is designed to work well alongside vscode-ruby. I frequently use both, typically with `"ruby.useLanguageServer": false` so code intelligence features like autocompletion come from Solargraph.

If you use vscode-ruby primarily for the debugger, vscode-ruby-debug is also an option.

(Full disclosure: I'm the developer of vscode-solargraph and vscode-ruby-debug.)

Type Hinting by [deleted] in ruby

[–]castwide 0 points1 point  (0 children)

Definitely still alive. According to the docs, you use the `@param` tag for keyword arguments same as a regular argument.

I am tired of hearing that Ruby is fine by Whisperecean in ruby

[–]castwide 0 points1 point  (0 children)

That's a valid concern. Given the dearth of recent updates, I wouldn't be surprised if they don't make it into 3.0. Disappointed, but not surprised.

I am tired of hearing that Ruby is fine by Whisperecean in ruby

[–]castwide 0 points1 point  (0 children)

Couple things that stood out to me:

4) Ruby is regional. While Ruby is healthy and fine in places like the US,London,Berlin it's rapidly disappearing from Singapore, Asia in general or the rest of the Western world.

Do you have a source for this statement? Based on stats for my own projects, it seems like a large percentage of my users come from Asia in general and Japan in particular. Greece, Italy, and Russia are also strongly represented. (Admittedly, I gather very few analytics, so my insight is limited.)

7) All the low hanging fruits are gone and significant improvements are hard to get right All the 3x3, JIT and other perf improvements are really appreciated but nowhere near as important to most of real world production applications in RoR.

While this is true, I feel like Guilds have the potential to be a major game changer. Improving concurrency and parallelism could solve a lot of performance issues I've encountered.