How to let RubyMine work with cygwin64

Wout_

I'm currently using cygwin64 on my Windows 10 virtual machine. On there, I've installed rvm, and the default (and only) version of Ruby is ruby 2.4.0p0. Through my IDE (RubyMine) I've linked the ruby interpreter to the ruby interpreter installed on my cygwin64 installation. However, there are some issues i'm having which are quite annoying and I though I would ask here for anyone who might have had this issue before and fixed it some how.

The issues are:

  • Gems not found (requiring files are 'not found': including the standard library, methods not found, classes not found, ...)
  • Using cmd I cannot use commands such as bundler, gem etc (I have to use the cygwin64 terminal)
  • Some features on RubyMine don't work (including the Run button, etc)

I've thought about path variables, but I don't really know which ones I have to set (and where to).

Any help would be appriciated.

Wout_

I managed to get some things working today and I though I might aswell share it here, for anyone having similar issues in the future. I fixed the first issue through setting up a ssh server on my cygwin64 installation and allow localhost connections to it. I then set up a 'remote interpreter' through RubyMine and linked it to the ruby interpreter through the ssh connection. Gems are found, RubyMine no longer complains about unknown files, code completion works, for me a success!

I then went searching a bit and found a alternative for the cmd not allowing commands such as bundler, gem, etc. I didn't fix it, but I managed to link the RubyMine's terminal to my cygwin64 terminal. I now can execute these commands through RubyMine, so that isn't that bad.

Setting up the remote interpreter:
File -> Settings -> Languages & Frameworks -> Ruby SDK and Gems

Linking the terminal:
File -> Settings -> Tools -> Terminal -> Shell path -> C:\cygwin64\Cygwin.bat (in my case)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to install Ruby with rvm on Windows 10 with Cygwin64 Terminal?

How Does Rubymine Work With Remote Interpreters and Git?

How does this let clause work?

How does this let expression work?

const or let which use in for statement? ES6. or How to remove RubyMine warning?

Double let declaration: How does let hoisting work in for loops?

how to let format string work in correct way?

How exactly does the "let" keyword work in Swift?

How does the named let in the form of a loop work?

How to uninstall RubyMine 5.4.3.2.1?

RubyMine with Rubocop - How to Reformat?

How to rename project in RubyMine

Is there anyway to let RubyMine choose first completion choice like Intellij Idea?

How to uninstall rubymine from UBUNTU

How to find extra newlines with RubyMine?

How to edit RubyMine reformat code

Rubymine: How to make Git ignore .idea files created by Rubymine

How can I implement a work-around for the let block?

how to let serial work well background and also foreground?

How do let, require, and prototype work together to make objects in javascript?

How do fixpoint, variable, let and tag schema constructors work in Winery?

How to let gravity work in editor mode in Unity3D

How does let x where x.hasSuffix("pepper") work

How to provides an OCaml (let*) operator optionally, to work with old and new compilers?

How to let all functions work again after jQuery?

SSH client not found on cygwin64?

cygwin64 scons version issue

Exit code 127 in cygwin64

ImportError of mixins for Django 1.8 in Cygwin64