简体   繁体   English

Eclipse中的Seamless(RSE)远程项目

[英]Seamless (RSE) Remote Projects in Eclipse

I've been trying - without much success - to make Eclipse (for C/C++, but that should be irrelevant) play nicely with remote projects. 我一直在尝试-并未取得很大的成功-使Eclipse(对于C / C ++,但这应该无关紧要)在远程项目中很好地发挥作用。 It would make my life at work much easier if I can set things in the following way: 如果可以通过以下方式进行设置,这将使我的工作更加轻松:

  • Run Eclipse from my local Windows machine 从本地Windows计算机运行Eclipse
  • Connect (through Eclipse) to the remote Linux development box (通过Eclipse)连接到远程Linux开发箱
  • Create an Eclipse project from files and directories already created on the remote box 根据已在远程框中创建的文件和目录创建Eclipse项目
  • Configure project dependencies and symbols using files and directories from the remote box 使用远程框中的文件和目录配置项目依赖项和符号
  • Building and running the project in Eclipse is not needed - since this is done with a million makefiles, it's easier for me to just SSH into the box and build from command line. 不需要在Eclipse中构建和运行项目-因为这是通过一百万个makefile完成的,所以对我来说,只需将SSH插入框中并从命令行进行构建就更容易了。 I just need Eclipse to recognize included resources 我只需要Eclipse就能识别包含的资源

I tried setting this up with Remote System Explorer (RSE), but couldn't quite get it to work. 我尝试使用远程系统资源管理器(RSE)进行设置,但无法完全正常工作。 I can create a connection to the remote box, browse its files, and even convert certain directories to Remote Projects. 我可以创建与远程框的连接,浏览其文件,甚至可以将某些目录转换为远程项目。 Once the remote project is created, however, it's useless to me - Eclipse underlines everything that's not a C/C++ keyword, saying it doesn't recognize it (even #include statements of system libraries); 但是,一旦创建了远程项目,对我来说就没有用了-Eclipse强调了不是C / C ++关键字的所有内容,并说它无法识别(甚至是系统库的#include语句); equally important, it doesn't allow me to add remote resources to the Paths & Symbols of the project. 同样重要的是,它不允许我向项目的路径和符号添加远程资源。

Am I missing something here, or RSE just not capable of doing what I need it to? 我在这里错过了什么吗,还是RSE不能完成我需要的工作?

No, I don't think you're missing something here. 不,我不认为您在这里缺少任何内容。 I already faced a similar problem when creating/editing remote projects. 创建/编辑远程项目时,我已经遇到了类似的问题。 As far as I can judge, this must be due to the C/C++ indexer not working correctly for remote projects. 据我判断,这一定是由于C / C ++索引器对于远程项目无法正常工作。 One action to make Eclipse recognize the #include s is to close and reopen the project through the Project Explorer View. 使Eclipse识别#include的一种措施是通过Project Explorer视图关闭并重新打开项目。 If this doesn't help, try highlighting the #include statement and press F3. 如果这样做没有帮助,请尝试突出显示#include语句,然后按F3。 Opening the included file seems to trigger the indexer to update the index (although this should also be possible by right-clicking the project and selecting the Rebuild Index function; but this didn't work me). 打开包含文件似乎触发索引更新索引(虽然这也通过右键单击该项目,并选择重建索引功能是可能的,但是这并没有工作我)。 But even after performing these steps, indexing isn't fully functional, eg, the Call Hierarchy is not working at all (it tells me "File XY is currently not part of the index"). 但是即使执行了这些步骤,索引也无法完全发挥作用,例如,呼叫层次结构根本不起作用(它告诉我“文件XY当前不属于索引的一部分”)。

Btw, which protocol do you use for your connection (ssh, ftp, or dstore)? 顺便说一句,您使用哪种协议进行连接(ssh,ftp或dstore)? I read some posts that RSE only works seamlessly if the dstore protocol is used. 我读了一些帖子,其中说到RSE仅在使用dstore协议的情况下才能无缝运行。 Unfortunately, this wasn't the case for me... 不幸的是,对我而言并非如此...

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

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