简体   繁体   English

aptana 3 Windows-终端访问被拒绝

[英]aptana 3 windows - terminal access denied

Wen I open the Antapa studio 3 terminal from specific project it notice me an error: Wen我从特定项目打开了Antapa studio 3终端,它注意到我一个错误:

Permission denied to access C:\\www\\drupal\\sites\\all. 拒绝访问C:\\ www \\ drupal \\ sites \\ all的权限。 Using default working directory instead. 而是使用默认工作目录。

Also, I can get to the dir by cd C:\\www\\drupal\\sites\\all so it pretty wired.. 另外,我可以通过cd C:\\www\\drupal\\sites\\all进入目录,因此连接起来非常漂亮。
Is somone handle with this issue, or is smone have any idea? 是somone处理此问题,还是smone有任何想法?

~ Almog Baku 〜Almog巴库

I have exactly the same problem. 我也有完全一样的问题。 You have described it exactly. 您已经完全描述了它。 I found no solution but here's my workaround. 我没有找到解决方案,但这是我的解决方法。 First, I want an EXTERNAL terminal window because the Aptana terminal window is too inconvenient for running git and rspec from the command line, so my solution always opens to the current project directory. 首先,我需要一个EXTERNAL终端窗口,因为Aptana终端窗口对于从命令行运行git和rspec太不方便,因此我的解决方案总是打开到当前项目目录。 Also note that I'm on a Mac and my solution is Mac specific. 另请注意,我在Mac上,而我的解决方案是Mac专用的。

From the Command menu, I selected Shell Script, and used the "Edit this Bundle" option. 从“命令”菜单中,选择“ Shell脚本”,并使用“编辑此捆绑包”选项。 After some head scratching, I found that the bundle had been opened as a new project. 经过一番摸索之后,我发现该捆绑包已作为一个新项目打开。 Then I edited the open_directory_in_terminal.rb file to this: 然后,我将open_directory_in_terminal.rb文件编辑为:

require 'ruble'

command t(:open_terminal) do |cmd|
  cmd.key_binding = 'M2+M4+O'
  cmd.output = :output_to_console
  cmd.working_directory = :current_project
  cmd.invoke do |context|
    `open -a Terminal.app "#{ENV['TM_PROJECT_DIRECTORY']}"`
  end
end 

Basically, all this does is use the Mac OS "open" command to open the Mac terminal app on the current directory. 基本上,所有这些操作都是使用Mac OS的“打开”命令在当前目录上打开Mac终端应用程序。 I am sure there are more elegant (and platform independent) ways to do this, but this is what I am using. 我确信有更优雅的方法(且与平台无关)来执行此操作,但这就是我正在使用的方法。 Hope it gives you some ideas. 希望它能给您一些想法。

FYI, docs on editing the bundle items are here: https://wiki.appcelerator.org/display/tis/Rubles 仅供参考,有关编辑捆绑商品的文档位于: https//wiki.appcelerator.org/display/tis/Rubles

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM