windows7使用Source insight上遠程修改ubuntu共享內核源碼

因爲本人閱讀喜歡使用source insight。前段時間接觸了linux核代碼,而這份代碼只能放在ubuntu服務器上編譯,剛開始的時候是在windows上修改,完了以後再copy到服務器上去編譯,這樣很麻煩,效率也很低,通過網上搜索和向別人請教以後,終於能夠正常使用了。html

一、使用SSH工具在ubuntu上Git clone代碼以後,必須修改文件的權限:sudo chmod 777 xxx -R ;777爲擁有全部權限,詳細本身去網上查,xxx爲項目文件夾,-R是遞歸到全部子文件(夾),我第一次沒有加 -R 而後一直沒有遠程修改權限,鬱悶了好久,才修改。linux

二、建立遠程鏈接,windows7比較方便,打開個人電腦,工具->映射網絡驅動器,輸入遠程的網絡地址就OK了;這樣建立以後,你就將遠程端的代碼映射到本地,當作一個硬盤來訪問和使用了。ubuntu

        

三、接下來就是source insight加載同步代碼的事了,這裏主要講的是source insight遇到的事。windows

在Source insight上修改ubuntu上共享內核源碼,常常出現如下提示,很煩人:服務器

 

[html]  view plain  copy
 
 在CODE上查看代碼片派生到個人代碼片
  1. xxx has been changed outside of Source Insight since it was loaded.  
  2. Do you want to continue and overwrite it ?  
  3. Confirm by typing 'yes' below:   
[html]  view plain  copy
 
 在CODE上查看代碼片派生到個人代碼片
  1. xxx has been changed outside of the editor.  
  2. Do you want to reload the file ?  

 

 

[html]  view plain  copy
 
 在CODE上查看代碼片派生到個人代碼片
  1. xxx has been changed both inside AND outside of the editor.  
  2. Do you want to reload the file and lose changes made here?  
  3. Confirm by typing 'yes' below:  

開始覺得是ubuntu服務器同步的問題,沒有去管;最近修改代碼比較多,保存的時候每次都提醒,有時候修改好的代碼,幾秒鐘不保存,就被後臺更新覆蓋了。終於扛不住了,在網上搜了下,找到答案了,原來是source insight版本太老的問題。網絡

 引用source insight 3.50.0051 update log app

    Fix: Sometimes files were said to be modified outside of SI, but they were not. This most likely happened on network drives. Under some conditions, the Windows directory information can lag for remote drives. SI now uses a better method of getting file information.ide

因而乎,將source insight更新到最新版本3.50.0072 (之前使用的是0038),問題解決。工具

    下次遇到問題,多問問,或網上搜搜,就解決了;只要想解決,沒什麼問題是問題,哈哈!spa

轉載請註明出處:http://blog.csdn.net/n289950578/article/details/24360185

 
0
相關文章
相關標籤/搜索