basgren / railways

A plugin for RubyMine and IntelliJ IDEA Ultimate that adds a panel with routes of Ruby on Rails application.
MIT License
46 stars 18 forks source link

Failed to load routes with docker. #43

Open tomocrafter opened 4 years ago

tomocrafter commented 4 years ago

Does this plugin support docker-compose? It says "Failed to load routes" and error details is "/usr/local/bin/ruby: No such file or directory -- C:UsersrootDocumentsgithubprojectnamebinrake (LoadError)". seems like there is no separate between directory like / (anyways I'm currently using windows so maybe it lost \ somewhere).

If someone has solution to make it work on docker-compose environment, please let me know!

basgren commented 4 years ago

Hi! Unfortunately I didn't check the plugin with docker and actually I don't generate path to rake task at all, I just use IDE's API to call it and get the output. Possibly this is an issue with IDE.

tomocrafter commented 4 years ago

I'd like to report it to jetbrains but I'm not familiar with the Jetbrains IDE's API, so I don't know what to report.

basgren commented 4 years ago

I'm sorry, but for me it's also unclear what's wrong. I'll do my best to take a look at this issue this week.

saberprashant commented 4 years ago

Hey, thanks for this plugin. Did you get a workaround for the same? To use it with docker-compose.

ddnexus commented 3 years ago

@basgren I am not sure the IDE API will give you the connection with a docker-compose SDK. The server and console run configurations have 3 options to interact with a docker-compose SDK, but they are set in the configuration itself. Your plugin is probably supposed to do the same, but I don't know how it is supposed to actually use that internally.

I was using docker through SSH remote SDK (installing a sshd server inside the rails container) because RM docker-compose setup was painful at best. Now the latest 2020.3 EAP gives more optiona for the connection (see above) and it is smooth enough to use, so I ditched all the ssh workaround and use docker-composer SDK directly. The only big setback is that your plugin doesn't work anymore in all my projects :(

basgren commented 3 years ago

Thanks for letting me know. Finally I have some time to dive into it. Will let you know when I fix this. Seems the plugin is incompatible with new RubyMine version.

penguinwokrs commented 3 years ago

hi, guys!

I found a way to use docker to run Railways. I made some changes in mac security and privacy and it worked.

I used rubymine ver 2021.1

Activate the Terminal. image

Sorry for Japanese screenshot.

penguinwokrs commented 3 years ago

oh.... It was windows. But since Macs were not available due to security reasons, I'm sure Windows was too.

hernanvicente commented 1 year ago

Thanks @penguinwokrs. Your solution saved my day!

Below and screenshot in English.

settings_security_and_privacy