Aptana “The selection cannot be launched, and there are no recent launches.”

随声附和 提交于 2019-12-19 02:48:09

问题


Each time I click the "Run as" button, I get the following message.

"The selection cannot be launched, and there are no recent launches."

If I select the pull down arrow near the "Run as" button, and select the New configuration option (this is the configuration I setup to launch using localhost)... it works. But why doesn't the "Run as" button default to this?

Or better yet, how do I make sure the "Run as" button will default to this?

** UPDATE **

I solved the problem.. see my answer below.


回答1:


Go into the preferences under Run/Debug > Launching

There's a section called "Launch Operation" and I needed to select:

Launch the selected resource or active editor. If no launchable: Launch the previously launched application.




回答2:


I have a solution for that:

If you have imported project from local file system then go to the respective folder -> right click on that -> Promote to project -> Select a project type (Mine was Ruby-Primary) -> Finish.

Should work. Cheers!




回答3:


If you are new to Aptana and started a new file, say a .py file, MAKE SURE you also start a Project. You probably haven't started a project yet, so Aptana has no clue what to do with the file you are running. If you create a project and make it a Python project, NOW Aptana knows what to do with your new file and will run it correctly.



来源:https://stackoverflow.com/questions/8674453/aptana-the-selection-cannot-be-launched-and-there-are-no-recent-launches

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!