RHOSTUDIO : Not able to create a run configuration for a existing project - rhomobile

I have installed rho-studio and have imported my existing rhodes project into it.in order to run the project i need to create run configuration for the project.whenever i try to create a run configuration for the project (Run as => Run configuration => Rhomobile application => New) it does nothing.No dialog ever appears.However the same is working fine for newly created project from rhostudio.
please help.
Thanks,

Finally i solved the problem by using one trick. below are the steps for the trick.
1)Create one rhodes application in rhostudio.("File => new => project => rhomobile aplication");
2)right click on the project and create run configuration ("Run as => Run Configurations")
3)In the "project name" field write the name of your existing project folder that you want to open and then click "run" button.
4)Now delete the rohdes application that you have created in step 1 and import your existing project into rhostudiio.
This way you can create a run configuration for your existing project in rhostudio.
Thanks,

Related

How do I create a Rails run configuration on Aptana Studio 3?

I'm using Aptana Studio 3 on Mac OS X (High Sierra). I have imported my Ruby on Rails project. My Project Natures are set up like this
I want to set up my Rails server so I can run it from the IDE (or debug with it). Oddly, the Run/Debug settings only include PHP ...
So how do I create a run configruation to run my server? When I right click my project, select "Run As" -> "Run Configurations", I see a screen like this. Not sure if this is the right screen to configure things or how to do it ...
You can run your server creating a run configuration or just creating a new Rails Server.
Creating a Run Configuration
In "Run Configurations" options, select Ruby Applications > New_configuration and then click in "Browse...". Type 'rails' to search for the rails file and select it inside "Matching resources". Click "Ok".
Then go to Tab "Arguments", set the working directory as the root folder of your project, and inside "Program Arguments" put the value "server" and click "Apply".
Now you can run or debug your application.
Creating a Rails Server
Go to Windows > Preferences > Aptana Studio > Web Servers and click in "New...".
Then select the option "Rails Server", choose the name of your server and click "Ok". If your project nature was not set to "Rails" the option "Project" would be empty here, and you would need to set the Rails nature first.
If you try to run the server like this you will receive an error telling that the program ".../script/rails" does not exist, so first you need to create a folder named "script" inside your project and paste the file "bin/rails" inside it (as explained here).
Now just click with the Right mouse button in your project and select "Run server".

Unable to launch the IIS Express Web server on specific project in vs 2015

I have created new project and run, it was build successfully after that through an error.
I had same issue occured and i fixed this issue by just remove the "applicationhost.config" file from your Project directory -> .vs folder -> config folder -> remove the applicationhost.config and clean & build project and run your project. It will successfully run your project
I solved the same issue by creating virtual directory (Solution Explorer > Right Click on Project > Web > Create Virtual Directory and ticking 'Override application root URL'
I faced similar issue and was able to fix it by updating the port number. In Solution Explorer --> Right Click and select Properties --> Web tab update the port number. I.e. My previous port was 57860 and I changed it to 57862. It fixed my issue.
You can also fix this by closing IISExpress.exe in Task Manager --> Details tab simple.

RubyMine: Rails server launcher wasn't found in the project

After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project, but deleting the .idea directory and re-open is not helpful.
I can rails server in the Terminal successfully and the rails server runs. So I guess it's likely a RubyMine related thing.
Thanks,
Allen
The easiest way to fix it:
Close project
Remove .idea folder from project folder
Open project
Bingo!
NOTE: this workaround seems to no longer work with 2017.2. See RUBY-20144
I upgraded from RubyMine to IntelliJ Ultimate IDE 2017.1.5 and I encountered the same error "Run Configuration Error: Rails server launcher wasn't found in project". I was using Ruby v2.4.0 with Rails 5.0.2.
It took me an entire day to solve the issue, so I've written a detailed explanation with screenshots to guide others.
It occurred when I tried to Run or Debug my Rails server from within IntelliJ.
Other solutions also didn't fix the error. I tried deleting my .idea/ folder, trying different Ruby or Rails versions (i.e. Ruby v2.3.0 or latest Rails 5.1.2), and even starting a brand new project from scratch. But I could run the Rails server fine using Terminal (outside the IDE) with rails s.
SOLUTION approach:
First I opened Run > Edit Configurations but "Choose SDK from module" didn't have any Project Modules available to select from the drop-down, so I had to create one as follows:
I went to File > Project Structure
Then I clicked Modules, and clicked the icon "+", and selected "Import Module".
Then I navigated to my Rails project's root directory "'/Users/my_username/code/apps/_murmur/skag_server_rails" and clicked Open, which displayed the following.
I then selected "Create module from existing sources" and clicked "Next", and it showed the following, with a blue checkbox shown next to my Rails project root directory that it found, so I clicked "Next" again:
It then showed the following window, and I clicked "Finish".
I'd now finished importing the Rails project I was working on as a Module, and it showed the following, so I clicked "Ok", as I was now ready to try and run my Rails server again:
So I went back to Run > Edit Configurations window and click on "Rails > skag" where I could now use "Choose SDK from module" since there was now my "skag_server_rails" Module available in the drop-down that I just created, and no errors were apparent, as shown below:
I was then able to click Ok to save the Run/Edit Config
I was then able to run the server Run > Run, which displayed:
I was then able to successfully open the Rails app in the browser open http://localhost:3000
But then when I tried to Run > Debug so I could debug using breakpoints, it gave me the following errors:
I solved this by running the following in the Terminal (outside the IDE):
gem install debase --pre
gem install ruby-debug-ide
Then finally I could run Run > Debug and it allowed me to trigger breakpoints as shown below:
Important Note:
The initial approach that I took that DID NOT end up fixing the error involved choosing to use "Use other SDK" within the Run > Edit Configurations window to load my Ruby Gemset into the debug configuration (instead of using a Module).
UPDATE: I encountered the same error again more recently on 2nd September 2017 and followed these steps to overcome it:
Go to Menu > File > Project Structure > Project Settings > Modules > Click "+" and select "New Module"
Select "Ruby on Rails" from the left hand side list
Choose for "Module SDK" label your "RVM: ruby-2.4.1 []"
Click for "Rails Version" label the "Install Rails Gem..." drop-down
Select a Rails version for it to download and wait (i.e. 5.0.0)
Do not select a Rails version that causes the tooltip "This version is not fully supported" to appear below (i.e. selecting a Rails version >5.1.2 causes this to occur)
Click for "Rails Version" label the version that finished downloading from the drop-down (i.e. 5.0.0)
Enter "Working Directory" label value of "../"
Enter a "Module Name" (i.e. videotube-5.0.0)
Click "Apply" and "Save"
Go to Menu > Run > Edit Configurations
Change any directories that do not point to root folder of app
Go to Menu > Run > Debug
My variant to solve same problem.
Create new run configuration, but use "Ruby" template instead of "Redmine":
Ruby script field set to path to your redmine rails bin path and Script arguments set to "server -b 127.0.0.1 -p 3000 -e development" for ex.
This worked for me
Remove the .idea file
Invalidate the cache and restart the ide
Ok, this RubyMine has some serious issues. My day started out peaceful and then ended as a nightmare, courtesy of RubyMine. All I did was git checkout to a certain version of my repo. Well, when I did that, suddenly the folders in RubyMine disappeared. Yes, that is the first bug. I git checkout 8d4fbd1b5dfce0a3daa16896a603903a And then I open RubyMine and folders are gone! I closed and reopened. Still no folders. I restarted computer and still no folders.
I had to go to Project > File Structure and delete the Module. And then create a new Module. Now the project folders appear. But then I get this obscure error Rails server launcher wasn't found in the project. I have no idea what it means. I go online and they say delete .idea directory in your project. So I do that. And now again I have to delete and recreate the module.
This time it says "overwrite directory" since I have an existing project. I select "Yes" and then I open project and my secrets.yml is gone! Now I had to use secrets.yml I had backed up. And then finally it works.
Seriously, all this just because I wanted to checkout out a specific git commit? Come on.
UPDATE
After further investigation, I understand what is going on. There are three critical Intellij Idea files with regards to the Ruby plugin:
/.idea/
MyProject.iml
/MyProjectGemset/
These three files should not be checked into git and should be consistent across the different branches of your project. You might have another *.iml in the project. Delete that and make sure you are using the same .iml throughout the branches.
These two files pertain to your SDK:
MyProject.iml
/MyProjectGemset/
This file pertains to general configuration:
/.idea/
I've came across this same problem, and a way I found to solve it was to properly defining the root folder of the project when opening it in the first time with RubyMine.
As far as I can understand, ideally you should open the project by pointing the RubyMine to the project's root folder:
my-workplace/
|-- rails-project-name/ <-- point RubyMine here when openning
| |-- app/
| |-- bin/
| |-- config/
| |-- db/
| |-- lib/
| |-- log/
| |-- public/
| |-- test/
| ...
if you follow the solution from Artyom Blagoda on the Windows with ruby installed on the WSL (Ubuntu) you'll get into situation when wsl path (\wsl$\Ubuntu) of ruby script (rails) could not be found by remote (Ubuntu) ruby interpreter. to make it work you need to add path mapping on:
Settings -> Ruby SDK and Gems -> Your remote ruby or RVM -> then click the folder icon above, you'll find a new window where you put:
Local Path: //wsl$/Ubuntu/PATH_TO_YOUR_RAILS_BIN
Remote Path: PATH_TO_YOUR_RAILS_BIN
hope it helps ;)

Re-sync folders via command line

I am currently working out how best to go about syncing files in my folders which will be included in my installer.
It works fine through the interface, but doesn't seem to work out well when doing it through the command line.
My folder structure is essentially:
Root
Installer Config
My code 1
My code 2
My installer is to set up my two code folders when installed. Like I mentioned, I have this set up working for building the installer through the interface.
In my project, I have My code 1 and My code 2 folders set as sync folders in the Files and Folders section.
In the Installer Config folder, I am running a couple of scripts which essentially boil down to a batch file which does:
"AdvancedInstaller.com" /loadpathvars PathVariables.xml
"AdvancedInstaller.com" /execute myproject.aip commands.txt
and my commands.txt which does:
;aic
ResetSync APPDIR\mycode1
ResetSync APPDIR\mycode2
Save
Rebuild
When the ResetSync calls are made, I get the error: Folder not synchronized: APPDIR\mycode1. but when I just hit refresh in the Files and Folders section in interface, it works fine.
To create this error I add a new file to the 'My code 1' folder. Run the scripts, and I get the 'Folder not synchronized' error.
Solved on Advanced Installer forums.

Creating new Rails project with Aptana fails with "/<project name>/public does not exist"

I am using Windows 7 and Ruby 1.8.7. I get the following error message when I start a new Rails project:
Problem Occured
'Replace project index file' has encountered a problem. Resource '/Foobar/public' does not exist. (where 'Foobar' is the name of my new project).
Any ideas?
Just found a workaround: Create the project but UNCHECK the part about generating a rails skeleton. Then open a console, navigate to the project's parent directory, and run rails <project name>. The skeleton will generate in the folder, and then you can refresh the project directory within Aptana/Eclipse.
When new project is created using radrails, RadRails execute the command rails beta -d sqlite3 which is older syntax and the new syntax is rails new beta -d sqlite3 So unless the Aptana Teams invokes new rails functionality the workaround would be to use the methods mentioned above.
Follow the same procedure as mentioned above....
But for me Rails didn't work.
rails new "project name" worked for me.
Thanks
I had this problem because my project had spaces in the name. Removed the spaces and it worked.
I've the same problem but in web projects and using a network directory. I create the project in local and then move it to network unity.
Try running your IDE as an administrator. Right click your IDE icon -> "Run as administrator".
Now your IDE will have the appropriate privileges to write files and folders.
Changing the interpreter that the IDE uses worked for me. Go to windows->preferences->ruby->installed interpreters then select the one that comes with your installation of Aptana Studio, mine's name is org.jruby_1.2.0.9... It worked like a charm for me. I hope that helped.

Resources