Emacs 자동완성 기능에서 이상한 현상
글쓴이: jongi / 작성시간: 화, 2010/12/14 - 12:50오후
우분투 10.10 사용자입니다. 이맥스는 기본 설치된 것 그대로 사용중이구요. (snopshot버전 아님)
버전은 GNU Emacs 23.1.1 입니다.
자동완성 기능을 제대로 써보려고 KLDP에 자동완성 기능을 설명해주신 primewizard님의 설정 파일을 그대로 설치했습니다.
잘 되는 듯 했는데, 실제로 사용해 보려고 하니 문제점이 생겼습니다.
첨부한 캡처파일을 보시면 아시겠지만,
ui->
위와 같이 입력한 상태에서는 자동완성 기능이 잘 동작하는데,
if (ui->
처럼 괄호가 하나 들어가면 자동완성 기능이 동작하지 않습니다.
cedet 버전 문제일까 싶어 원래 설치되어 있던 cedet-cvs 를 최신으로 받고 (설치할 때도 최신이었지만 며칠 차이가 있어서) 시도했지만 마찬가지라 cedet-1.0 버전을 설치해도 마찬가지입니다.
semantic-analyze-debug-asist를 실행해 보면, 정상작동하는 첫번째 경우에는
Cannot find symbol "" in datatype: struct _xml_userinfo {} Semantic has found the datatype struct _xml_userinfo {} which is derived from metatype typedef XML_USERINFO {}. The Metatype stack is: typedef XML_USERINFO {} struct _xml_userinfo {} Possible completions are: const char current_el const char current_id int depth int is_value char obuf class size_t obuf_pos class size_t obuf_sz int profit_detail_num class size_t profit_detail_offset class size_t profit_header_offset int profit_sum_num class size_t profit_sum_offset Known members of _xml_userinfo: int depth int is_value const char current_el const char current_id int profit_sum_num int profit_detail_num class size_t obuf_sz class size_t obuf_pos char obuf class size_t profit_header_offset class size_t profit_sum_offset class size_t profit_detail_offset
라고 나오지만, 제대로 동작하지 않는 두번째 경우에는
Unable to find symbol ui. The prefix lookup code threw the following error: (error "Cannot find definition for \"ui\"") To debug this error you can do this: M-x toggle-debug-on-error RET [ Do It ] and then re-run the debug analyzer. Local Scope Information: * Tag Class Constraint against SCOPE: nil * No known parents in current scope. * No known symbols currently in scope. >> Known symbols that are declared locally: void data char value No known possible completions. When Semantic cannot find a symbol, it could be because the include path was setup incorrectly. Include Path Summary: The system include path is: /usr/include /usr/local/include/ /usr/lib/gcc/i686-linux-gnu/4.4.5/include/ /usr/lib/gcc/i686-linux-gnu/4.4.5/include-fixed/ /usr/include/ Include Summary: /home/jongi/Workplace/tmp/expat_xml/wow.c wow.c contains 6 includes. Unknown Includes: 0 Unparsed Includes: 0 Parsed Includes: 6 No unknown includes.
라고 나옵니다.
무엇이 문제일까요?
File attachments:
Forums:
댓글 달기