-
|
I am late to LLM-written code, but experimenting with it. I am using Claude Desktop. I have not managed to figure out how to get it to use my current chruby ruby (based on .ruby-version) when executing code. It has been very challenging, is it not possible? Maybe possible with Claude CLI, but Desktop is more limited in it's flexibility this way? (I am very new to all of this and have no idea what I'm talking about, this may not make any sense). Has anyone figured out how to get Claude Desktop Code to use chruby when it executes ruby? It seems like maybe it wants rbenv by "default". i love chruby and have no desire to switch... but new environments new requirements. Any thought to figuring out and documetning how to get chruby to work in this situation? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
|
One threshold thing is likely ensuring chruby sources in an noninteractive shell. Like in Zsh, adding For a specific Ruby target, chruby-exec ruby-4.0 -- bundle exec rakeFor .ruby-version auto-switching I'm less sure which option is best. You could point chruby-exec $(cat .ruby-version) -- bundle exec rakeOr chruby_auto && bundle exec rake |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Here is what I ended up with, it seems to be working out very well for me, but I am just getting started with Claude Code (and LLM-written code) in general (have been writing ruby/rails for literally decades). sciencehistory/scihist_digicoll#3505 Handles getting claude code to execute with chruby-exec, and also with a wrapper for No problems I am aware of with "lagging and losing track of files", not sure why one would be concerned about that or what that looks like, but I'm new to this. |
Beta Was this translation helpful? Give feedback.
OK, I put this in my
CLAUDE.md(exact wording suggested by claude, 🤷 ), which seems to work.