nonsequitur / inf-ruby

218 stars 69 forks source link

How to create a "project"? #182

Closed Kevinizevbigie closed 9 months ago

Kevinizevbigie commented 9 months ago

I am trying to create a project repl with inf-ruby-console-auto.

No known project type found

I use this command in the buffer for my .rb file. In this case, what is a project and how do I create one?

Thanks.

dgutov commented 9 months ago

Hi!

With Ruby development, there are different project types, most typical of which are a Rails app, or a gem, or simply a project with a Gemfile at root. The variable inf-ruby-console-patterns-alist contains the conditions that are tried.

But maybe you don't have a project at all, and just want to launch a REPL for a simple Ruby file? In that case, just try M-x run-ruby. You can also send the contents of the current buffer (opened file) to the REPL with C-c C-l.

Kevinizevbigie commented 9 months ago

I see. At first I thought this meant emacs projects (e.g. projectile).

Load project C-c C-l works for me. Thanks.