aptana

Run External Python Programs with Eclipse PyDev

心不动则不痛 提交于 2019-11-29 07:03:24
I want to use the refactoring enabled by PyDev but think it is a little ridiculous to create a project folder in my Eclipse workspace for every single little python script I create. I'm able to get refactoring by editing the file in Eclipse using File > Open File... . However, I still have to go to the Terminal to run the file. It would be nice to just run it in Eclipse. I've tried setting up a Run > External Tools > External Tools Configurations... using the Location /Library/Frameworks/Python.framework/Versions/Current/bin/python and the Arguments ${resource_loc} Presumably, this would call

Eclipse Kepler - PHP Code completion not working

前提是你 提交于 2019-11-29 05:39:37
Today i've downloaded Eclipse Kepler and i've noticed that PHP code completion is not working anymore. when i type the first letters of a standard php function then press CTRL+Space, it gives me an empty list ("No Default Proposal"). This used to work with the older version (i was using Juno) and i've made no modification. I've already tried removing the PHP nature and adding it again (through Right Click => Configure => Add PHP Support), but it didn't help. In both versions the only plugin i have installed is Aptana Studio 3.5.0 (nightly build) but i'm using Eclipse's editor for PHP, not

Aptana Studio 3 - Warnings when using data-role Tags of HTML 5

假如想象 提交于 2019-11-29 05:34:00
I want to use Aptana Studio 3 for developing jquery-mobile projects. Since jquery-mobile uses HTML5 I have to use tag attributes like "data-role="header" which is OK for HTML5. For example: <div data-role="header"></div> But Aptana gives me warnings like: unknown attribute "data-role" How can I fix this, or is it an Aptana Studio 3 bug? It more of a missing feature than a bug. In Preferences > Aptana Studio > Validation you can define regular expression that match to errors/warnings you want to be ignored. .*data-role.* should do it. I performed below and it resolved the problem. In

Rails 4.0 project not starting through aptana studio 3

十年热恋 提交于 2019-11-29 02:35:28
Currently using the Aptana Studio 3 plugin for eclipse (3.4.2) and I'm unable to start my rails 4.0 project. Error: Ruby program /xx/xx/xx/xx/HelloRails/script/rails does not exist. It looks like Aptana is still looking for the rails executable in script, while it moved to bin in rails 4.0. Is there any workaround/fix available for this? Create a folder script in the root of the app and place rails file from the bin folder to the script folder then it will work. You might need to change the web-server options in the aptana setting also. I was having the same problem but this fix fixed it 来源:

How to access default Rails sqlite db?

久未见 提交于 2019-11-28 17:23:47
I would like to view the data in my DB while developing with Rails (actually in all 3 of them development, test and production). I have not touched the configs, so it should be easy, but I was not able to find any usable info. I have no idea what the connection string could be or where to enter it, since Aptana (v.3) seems to lack the good old data source explorer view I know from Eclipse. Could someone point me into the right direction? EDIT: I am working on linux - Mint 12 You have neglected to mention the OS you are using. One way is to use the sqlite3 command in your terminal. sqlite3 db

How to get my class to appear in Aptana's autocomplete?

旧街凉风 提交于 2019-11-28 13:46:07
I'm searching for a possibility to add my own classes to the Aptana autocompletion for my project. At the moment I have one project file with a directory "class" with class files in it, which will be inserted with "require_once" in my php project. Can you help me? File->New->PHP Project-> Project Explorer ( new project ) right click on [YOUR PROJECT] in "Project Explorer" -> Properties You will see "Properties for [YOUR PROJECT]" window Project Natures -> PHP (checkbox) and click "Make Primary" button. OK, OK Project will be reindexed and your classes will be available Any class existing in

Keyboard shortcut to “untab” (move a block of code to the left) in eclipse / aptana?

删除回忆录丶 提交于 2019-11-28 13:38:34
问题 Well, hopefully the question is self-explanatory. It's so easy to select a block of code and tab out, but how about the reverse? Currently, I just search & replace for whitespace at the beginning of the line. Anything faster? 回答1: In Visual Studio and most other half decent IDEs you can simply do SHIFT + TAB . It does the opposite of just TAB . I would think and hope that the IDEs you mention support this as well. 回答2: Shift-tab outdents again :) Here's where the standard shortcut keys are

看JavaScript 一书中记的一些关键点

流过昼夜 提交于 2019-11-28 11:49:01
JS在执行时才确定值(变量在初始化) JS引擎在解析时会预编译对所有变量和函数预先处理,所以执行时变量与函数都可见 先声明,再引用,在JS最上面先声明好变量OR函数,下面再使用 所有的JS块都属于同一个全局作用域 开发工具:Aptana Firebug HttpWatch try....catch...finally thow new Error("error msg") function customError(message){ this.name = 'CustomError'; this.message = message } customError.prototype = new Error() throw new customError("xxxx") JS 严格区分大小写 骆驼命名法 JS可以不申名变量值,直接给值,但是会当为全局变量(var name = '' / name = '') 全局整个页面可以访问,局部仅在声明的函数中使用 避免变量污染,减少全局变量的使用,可以申明一个容器如: var my = {} my.name={ "fisrtName" : "A" "lastName" : "B" } my.work = { "number" : 12, "time" : "2015-9-14" } JS的基本数据类型 type of 可以检测基本数据类型 0.1

最好用的php web开发环境【zend studio 9整合aptana 3】

十年热恋 提交于 2019-11-28 11:20:55
今天发现zendstudio 9可以和aptana整合,在此分享给大家,以前eclipse3.6与aptana3整合经常出错,有很多bug,现在大家不用担心了,大家再也不用去 dreamweaver 里面写前台代码了,更强大的前台设计工具 aptana 3已经全面支持 zend studio 9,大家可以很轻松的将zend studio 9与aptana 3整合在一起! 下面是我整合后的样子,大家可以试一下,具体教程如图! 一、打开zendstudio,点击菜单栏上面的help->install new software则跳出如下所示界面。 二、安装aptana 3 插件。 在上图中点击add,跳出对话框,里面填入如下内容。 name:aptana 3.0 location:http://download.aptana.com/studio3/plugin/install 三、一直点next,直到后面进行安装,因为服务器在国外,所以读取速率比较慢,大家耐心等待. 如果提示time requested out 错误,则从新安装,安装成功提示重启,restart! 不懂的朋友可以问我! zend下载地址: Zend Studio 9.0.0 正式版官方下载地址(未包含IBM i edition下载) windows版: http://downloads.zend.com/studio

Aptana Error-pydev: Port not bound (found port -1)?

十年热恋 提交于 2019-11-28 05:45:40
I just updated my Aptana Studio3. When I open my python file it says that it can not find map , range and filter and some other methods. but when I run my code, it'll run without any problem. my code completion doesn't work any more. The error for code completion when I use CTRL+SPACE is Port not bound (found port -1). Is there an enabled firewall? I don't know where the problem is ?!! I searched but I couldn't find a proper solution. I'm using windows 7. It seems that this is solved on PyDev and the problem is you can't upgrade PyDev on Aptana 3.6.0. Version 3.6.1 takes out the integration