qusic / atom-youcompleteme Goto Github PK
View Code? Open in Web Editor NEWYouCompleteMe for Atom Editor
License: MIT License
YouCompleteMe for Atom Editor
License: MIT License
[Enter steps to reproduce below:]
Atom Version: 0.186.0
System: Microsoft Windows 7 Ultimate
Thrown From: you-complete-me package, v0.1.1
Uncaught TypeError: Cannot read property 'path' of null
At C:\Users\Naqushab\.atom\packages\you-complete-me\lib\ycm-provider.coffee:11
TypeError: Cannot read property 'path' of null
at Object.module.exports.getSuggestions (C:\Users\Naqushab\.atom\packages\you-complete-me\lib\ycm-provider.coffee:11:35)
at C:\Users\Naqushab\.atom\packages\autocomplete-plus\lib\autocomplete-manager.coffee:144:45
at Array.forEach (native)
at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (C:\Users\Naqushab\.atom\packages\autocomplete-plus\lib\autocomplete-manager.coffee:127:15)
at AutocompleteManager.getSuggestionsFromProviders (C:\Users\Naqushab\.atom\packages\autocomplete-plus\lib\autocomplete-manager.coffee:1:1)
at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (C:\Users\Naqushab\.atom\packages\autocomplete-plus\lib\autocomplete-manager.coffee:121:6)
at C:\Users\Naqushab\.atom\packages\autocomplete-plus\lib\autocomplete-manager.coffee:1:1
-38:08.5 core:backspace (atom-text-editor.editor.mini)
-35:30.0 core:confirm (atom-text-editor.editor.mini)
3x -32:16.7 core:backspace (atom-text-editor.editor.mini)
-32:14.7 core:paste (atom-text-editor.editor.mini)
-32:10.7 core:confirm (atom-text-editor.editor.mini)
17x -30:26.6 core:backspace (atom-text-editor.editor.is-focused)
-30:08.5 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
}
}
# User
autocomplete-plus, v2.4.1
you-complete-me, v0.1.1
# Dev
No dev packages
请问能否给个示例配置?
vim里YCM工作正常,但是atom里不能工作。
配置如下:
~/.vim/.ycm_extra_conf.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Python
~/.vim/bundle/YouCompleteMe/third_party/ycmd
I was trying to install this package on Ubuntu 15.04 but ran into the following problems.
After some experimentation, I found that a working way to install it was:
nvm install 0.12.4
(or some other version, this is the latest at the time of writing this)npm install -g coffee-script
I think these requirements should be indicated to the user otherwise it's pretty hard to get started.
Then I try to use make to build ycmd, but:
/Users/rushcheyo/.atom/packages/you-complete-me/ycmd/cpp/ycm/ClangCompleter/CompletionData.h:23:10: fatal error:
'clang-c/Index.h' file not found
^
1 error generated.
make[3]: *** [ycm/CMakeFiles/ycm_core.dir/CandidateRepository.cpp.o] Error 1
make[2]: *** [ycm/CMakeFiles/ycm_core.dir/all] Error 2
make[1]: *** [ycm/CMakeFiles/ycm_support_libs.dir/rule] Error 2
make: *** [ycm_support_libs] Error 2
It seems that atom-ycm ignores python interpreter configured from package settings. Take a look at https://github.com/Qusic/atom-youcompleteme/blob/master/lib/update-dependencies.coffee#L20: it uses python executable to run the code. In my system /usr/bin/python is simlinked to /usr/bin/python3 so this code fails to run. There are at least two possible solutions: use configured interpeter (or maybe just python2 always?) or use syntax that is compatible with both 2 and 3 version.
Thanks for solving #3, now I'm getting a different error.
[YCM-CONSOLE] 2015-04-20 10:47:13,872 - INFO - Dropping request with bad HMAC.
/home/forivall/.atom/packages/you-complete-me/lib/ycm-handler.coffee:97
[YCM-ERROR] Error: Bad Hmac {stack: (...), message: "Bad Hmac"}
/home/forivall/.atom/packages/you-complete-me/lib/ycm-handler.coffee:225
[YCM-ERROR] TypeError: Cannot read property 'completions' of undefined {stack: (...), message: "Cannot read property 'completions' of undefined"}
/home/forivall/.atom/packages/you-complete-me/lib/ycm-provider.coffee:159
This occurs on every keystroke.
Is there some kind of config that needs to be set for ycm?
I know that ycmd gives a suicide timeout but not killing ycmd on unload is a bit problematic. Maybe its an Atom thing. I am not even sure if I Quit Atom, will be send an unload event to each plugin...
But, with a large project, ycmd, can take > 2 GiB of memory, yes, a C++ project I work in is that large. If I quit Atom, ycmd is using 2GiB of RSS (resident) memory. And will so for the next 10 minutes or so.
Is it possible to kill ycmd on Atom exit?
original YCM docs states:
"YCM looks for a .ycm_extra_conf.py file in the directory of the opened file or in any directory above it in the hierarchy (recursively)"
this is not honored in atom-youcompleteme, it always use the file provided in 'Global Extra Config' settings to launch ycmd. Thus, you can't use per-project settings but you always have to change the plugin configuration ......
please look into this asap :)
I have a project with SDL and OpenGL. Completions within the project between the files are perfect. For both OpenGL and SDL the completions show up by pressing ctrl-space, but disappear when continue typing (or rather, defaults to 'normal' completions).
To be honest I'm not sure if this is an issue or just not a feature yet, so excuse me if that's the case.
Steps to reproduce:
To illustrate - I press ctrl-space after the capital R:
It would be really nice to have the panel stay open and continue filtering the found completions.
Rust support is now merged into the upstream ycmd
so for Atom to support it, the fork needs to merge those commits in. ycmd
seems to have better support for Rust now than the existing Atom-specific plugins that call into cargo and racer directly.
The code to load custom .ycm_extra_conf.py is wrong, first bug is easy to solve in utility.coffee you are missing handler = require './handler'
but after that I get the following exception (note I added one line on top so the line number is +1 to trunk)
handler = require './handler'
on top of utility.coffeeAtom Version: 1.0.6
System: "Fedora release
Thrown From: you-complete-me package, v0.6.1
Uncaught TypeError: undefined is not a function
At /home/rafael/.atom/packages/you-complete-me/lib/utility.coffee:46
TypeError: undefined is not a function
at atom.confirm.buttons.Load (/home/rafael/.atom/packages/you-complete-me/lib/utility.coffee:46:26)
at Atom.module.exports.Atom.confirm (/usr/share/atom/resources/app.asar/src/atom.js:767:49)
at confirmExtraConfig (/home/rafael/.atom/packages/you-complete-me/lib/utility.coffee:42:10)
at Object.handleException (/home/rafael/.atom/packages/you-complete-me/lib/utility.coffee:51:36)
at IncomingMessage.<anonymous> (/home/rafael/.atom/packages/you-complete-me/lib/handler.coffee:148:21)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:163:7)
at _stream_readable.js:891:16
at process._tickCallback (node.js:357:13)
-0:03.4.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-material-ui",
"atom-material-syntax"
]
},
"you-complete-me": {}
}
# User
.bin, vundefined
atom-beautify, v0.28.11
atom-material-syntax, v0.2.3
atom-material-ui, v0.5.15
atom-typescript, v5.3.0
autocomplete-python, v0.5.3
clang-format, v1.16.0
file-icons, v1.6.3
language-capnproto, v0.3.0
language-cmake, v0.1.4
language-doxygen, v0.2.1
language-gradle, v0.0.3
linter, v1.3.4
minimap, v4.12.3
you-complete-me, v0.6.1
# Dev
No dev packages
I apologize for not being more specific, but with YouCompleteMe installed and a global conf file in my home directory, and using the settings below, I simply get no autocomplete actions when editing a C++ file.
Global Extra Config: ~/.ycm_extra_conf.py
Python Executable: /usr/bin/python
YCMD Path: /home/.vim/bundle/YouCompleteMe/third_party/ycmd
Is there a way for me to debug this so that I can provide more information?
Thanks
On the first autocomplete event, the atom plugin starts ycmd
and then immediately attempts to make an HTTP request, which fails because ycmd
has not started up yet and is not ready to receive connections. An error is printed to the console like:
[YCM-ERROR] Error: connect ECONNREFUSED 127.0.0.1:41416 {code: "ECONNREFUSED", errno: "ECONNREFUSED", syscall: "connect", address: "127.0.0.1", port: 41416…}
and the request fails. Subsequent requests succeed. Perhaps the plugin should wait a bit for ycmd
to start up before trying to send a request.
When building ycmd
with --clang-completer
, I get:
Downloading Clang 3.6
CMake Error at ycm/CMakeLists.txt:87 (file):
file DOWNLOAD HASH mismatch
for file: [/Users/jryans/.atom/packages/you-complete-me/ycmd/cpp/../clang_archives/clang+llvm-3.6.0-x86_64-apple-darwin.tar.xz]
expected hash: ["b9f32e9657f3963e6b3f5071d03805444c7054042bd878f0d05c037ae29101b8"]
actual hash: [b9f32e9657f3963e6b3f5071d03805444c7054042bd878f0d05c037ae29101b8]
status: [0;"No error"]
This has been fixed in ycm-core/ycmd#150, so I believe you just need to merge this into your fork.
Global Extra Path:/home/right/.ycm_extra_conf.py
Python Exe : /usr/bin/python
只要以前成功工作过的目录下有用,其他的都不行......
On Archlinux, the plugin does not run (always gives an error stating that it needs to be recompiled), since the plugin expects the python
command to run python2
, but arch linux links to python3
instead. This can be fixed by the following config.coffee:
module.exports =
pythonExecutable:
type: 'string'
default: 'python2'
...
but it would be nice if this was automated/mentioned in the README
seems it stopped working after yesterday update for both 0.7.2 and 0.7.3
The following error sometime displayed when saving a large file after a very short editing session (few seconds):
[YCM] RuntimeError File already being parsed.
Traceback (most recent call last):
File "/home/tamas/.atom/packages/you-complete-me/ycmd/third_party/bottle/bottle.py", line 861, in _handle
return route.call(**args)
File "/home/tamas/.atom/packages/you-complete-me/ycmd/third_party/bottle/bottle.py", line 1734, in wrapper
rv = callback(*a, **ka)
File "/home/tamas/atom/atom-youcompleteme/ycmd/ycmd/../ycmd/watchdog_plugin.py", line 100, in wrapper
return callback( *args, **kwargs )
File "/home/tamas/atom/atom-youcompleteme/ycmd/ycmd/../ycmd/hmac_plugin.py", line 62, in wrapper
body = callback( *args, **kwargs )
File "/home/tamas/atom/atom-youcompleteme/ycmd/ycmd/../ycmd/handlers.py", line 70, in EventNotification
event_handler )( request_data )
File "/home/tamas/atom/atom-youcompleteme/ycmd/ycmd/../ycmd/completers/cpp/clang_completer.py", line 292, in OnFileReadyToParse
with self._files_being_compiled.GetExclusive( filename ):
File "/home/tamas/atom/atom-youcompleteme/ycmd/ycmd/../ycmd/completers/cpp/ephemeral_values_set.py", line 56, in __enter__
raise RuntimeError( ALREADY_PARSING_MESSAGE )
RuntimeError: File already being parsed.
The issue is caused by the fact that ycmd will return this error if we send a request to parse a file while it already parsing it. In this case it starts to parse the file for code competition and if we hit save before that parse could finish, it will return the quoted error when we send it a lint request on save.
We should find a way to ensure that only 1 request is sent to ycmd for the same file at any time (difficult because the 2 request sent by 2 function called by different providers) or add a logic to the request class to retry the request in case of a "File already being parsed." error after some delay.
The plugin doesn't seem to load the .ycm_extra_conf.py in the project folder but only the global ycm_extra_conf defined in the settings.
Am I missing something?
Hi there,
I've set up ycmd and most features work, however when I try to complete C++ functions the preview popup is correct, but after hitting enter (or selecting the item using the mouse) only the method name gets completed, but the parameters aren't.
Here's an example:
I started typing "cout.wr", and the completion shows correctly:
After hitting enter, "wr" is completed to "write", but the argument list isnt' included
Any ideas what this could be? The GIF you're showing doesn't have this behaviour.
Could you please point out my mistake, atom-youcompleteme does not point out the mistakes or errors in my case.
I am uploading two images, one in case of VIM which shows that the .ycm_extra_conf.py that I am using is correct, and the other that atom-youcompleteme is not pointing out errors.
Thank you.
like YcmDiags
Hello.
Today I decided to try atom for C and Python programming. Firstly I thought that i will need several plugins to enable auto-completion for different languages, but than I discovered that youcompleteme extension is already here.
What I have done: Installed Atom 1.7.1, you-complete-me package 0.7.4, compiled ycmd server, added Ycmd path to the plugin settings and added "python" to enabled filetypes list.
What I am experiencing:
Thank you.
The atom-youcompleteme README currently points to YouCompleteMe's README regarding installation of the ymcd package. YouCompleteMe's README seems to require installation of Vim and Vundle in order to install ymcd. Is this truly required, or can ymcd be installed independently of Vim? (The goal is Atom integration, after all.) In either case, maybe a short note can be added to atom-youcompleteme's README.
YCM supports project-specific extra configuration files, that can be loaded automatically from current folder (or one of the parent folders). At the moment these file are not loaded because with default settings YCM requires load confirmation. Please, provide an option to disable extra config loading confirmation, because the only way to load extra config now is to apply this patch to YCM:
@@ -13,7 +13,7 @@
"max_num_identifier_candidates": 10,
"extra_conf_globlist": [],
"global_ycm_extra_conf": "",
- "confirm_extra_conf": 1,
+ "confirm_extra_conf": 0,
"complete_in_comments": 0,
"complete_in_strings": 1,
"max_diagnostics_to_display": 30,
Can I use this in Windows? Or in other words: Is it worth the effort to try to get YCMD build.py to run?
Hi,
I get an error whenever I install or enable this extension. I'm running linux; 0.4.0 would give me the "remove" is not a function error that it appears you fixed in 0.4.1.
Failed to update ymcd
Undefined is not a function
Let me know if there is more information I can provide. Thanks!
hi, i've done in readme. there no auto complete. how can i know what happend? thanks.
Please, tell me how fix this error "No semantic completer exists for filetypes: [u'php']" ? In my VIM all works fine.
I use YCM in my Vim installation because it solves a bunch of shortcomings with Vim's autocomplete system, and enhances what's already there.
Since Atom comes with autocomplete+, why use atom-youcompleteme
when there's already omnisharp-atom
, go-plus
, autocomplete-jedi
, autocomplete-clang
, etc?
Could be useful to put such information in the readme.
Hello,
I would like for an option to disable the linter, but keep just autocompletion.
Thank you for this great package!
not work on windows 7 64bit,can you?
Editing for a while, occasionally I will receive an Ycmd error like connection refused. Things continue though. When I look at all the Ycmd processes running, the number of them just keeps increasing...
$ ps ax | grep ycmd
67419 ?? Ss 0:01.98 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/jroback/Library/bin/ycmd/ycmd --port=53778 --options_file=/var/folders/1x/m5w5ghsj7cjgt13m2ss03rl40000gn/T/AtomYcmOptions-1463573610032 --idle_suicide_seconds=600
67622 ?? Ss 0:00.16 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/jroback/Library/bin/ycmd/ycmd --port=54538 --options_file=/var/folders/1x/m5w5ghsj7cjgt13m2ss03rl40000gn/T/AtomYcmOptions-1463574214989 --idle_suicide_seconds=600
67624 ?? Ss 0:00.18 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/jroback/Library/bin/ycmd/ycmd --port=54542 --options_file=/var/folders/1x/m5w5ghsj7cjgt13m2ss03rl40000gn/T/AtomYcmOptions-1463574215929 --idle_suicide_seconds=600
67625 ?? Ss 0:00.19 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Users/jroback/Library/bin/ycmd/ycmd --port=54551 --options_file=/var/folders/1x/m5w5ghsj7cjgt13m2ss03rl40000gn/T/AtomYcmOptions-1463574218559 --idle_suicide_seconds=600
67864 s001 S+ 0:00.00 grep --color=auto ycmd
For small projects this is trivial but for large projects, Ycmd memory usage gets high and with the suicide timeout being 10 minutes, its not really viable if one keeps using the editor continuously..
Process: Python [99859]
Path: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.10 (2.7.10)
Code Type: X86-64 (Native)
Parent Process: Atom Helper [98569]
Responsible: Atom [98563]
User ID: 1918221424
PlugIn Path: /usr/local/Frameworks/Python.framework/Versions/2.7/Python
PlugIn Identifier: org.python.python
PlugIn Version: 2.7.10, [c] 2001-2015 Python Software Foundation. (2.7.10)
Date/Time: 2015-09-03 15:21:52.183 -0500
OS Version: Mac OS X 10.10.5 (14F27)
Report Version: 11
Anonymous UUID: DD45B78C-549D-086C-108C-08D9CDCE17B9
Sleep/Wake UUID: ECE87828-012D-4AA6-881E-D4769412880B
Time Awake Since Boot: 890000 seconds
Time Since Wake: 880000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff91c03286 _pthread_kill + 10
1 libsystem_c.dylib 0x00007fff893749b3 abort + 129
2 org.python.python 0x000000010b5eea9a Py_FatalError + 49
3 org.python.python 0x000000010b5edfa8 PyThreadState_Get + 28
4 org.python.python 0x000000010b5eaeb2 Py_InitModule4_64 + 62
5 ycm_core.so 0x000000010b385d43 boost::python::detail::init_module(char const, void (_)()) + 35
6 org.python.python 0x000000010a96697b _PyImport_LoadDynamicModule + 140
7 org.python.python 0x000000010a966663 0x10a8ca000 + 640611
8 org.python.python 0x000000010a96622d 0x10a8ca000 + 639533
9 org.python.python 0x000000010a964436 PyImport_ImportModuleLevel + 1135
10 org.python.python 0x000000010a9499b3 0x10a8ca000 + 522675
11 org.python.python 0x000000010a8d450a PyObject_Call + 99
12 org.python.python 0x000000010a9543df PyEval_CallObjectWithKeywords + 93
13 org.python.python 0x000000010a950641 PyEval_EvalFrameEx + 8379
14 org.python.python 0x000000010a954c82 0x10a8ca000 + 568450
15 org.python.python 0x000000010a9519a6 PyEval_EvalFrameEx + 13344
16 org.python.python 0x000000010a954c82 0x10a8ca000 + 568450
17 org.python.python 0x000000010a9519a6 PyEval_EvalFrameEx + 13344
18 org.python.python 0x000000010a94e352 PyEval_EvalCodeEx + 1409
19 org.python.python 0x000000010a952768 PyEval_EvalFrameEx + 16866
20 org.python.python 0x000000010a94e352 PyEval_EvalCodeEx + 1409
21 org.python.python 0x000000010a954bf1 0x10a8ca000 + 568305
22 org.python.python 0x000000010a9519a6 PyEval_EvalFrameEx + 13344
23 org.python.python 0x000000010a94e352 PyEval_EvalCodeEx + 1409
24 org.python.python 0x000000010a8f25de 0x10a8ca000 + 165342
25 org.python.python 0x000000010a8d450a PyObject_Call + 99
26 org.python.python 0x000000010a97f6e1 0x10a8ca000 + 743137
27 org.python.python 0x000000010a97f566 Py_Main + 3354
28 libdyld.dylib 0x00007fff907db5c9 start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff55338a08 rdx: 0x0000000000000000
rdi: 0x0000000000000d0f rsi: 0x0000000000000006 rbp: 0x00007fff55338a30 rsp: 0x00007fff55338a08
r8: 0x00007fff55338a20 r9: 0x00007fff74ab1300 r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x00007fa72402e000 r13: 0x000000010b3db10c r14: 0x00007fff74ab1300 r15: 0x000000010aa03548
rip: 0x00007fff91c03286 rfl: 0x0000000000000206 cr2: 0x00007fff73a6cfd8
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x10a8c6000 - 0x10a8c6fff org.python.python (2.7.10 - 2.7.10) <109A7A4A-99AF-338A-86CC-6D17F5EC88A6> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
0x10a8ca000 - 0x10a9bcfff org.python.python (2.7.10 - 2.7.10) /System/Library/Frameworks/Python.framework/Versions/2.7/Python
0x10ab86000 - 0x10ab87fff _locale.so (89.40.1) <59549509-EE3A-300A-8C68-49F1FBEBE2DC> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
0x10ac8b000 - 0x10ac9afff _io.so (89.40.1) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
0x10acab000 - 0x10acaeff7 math.so (89.40.1) <3016B791-FC4B-3B04-82F2-7941EB5CC347> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
0x10acb4000 - 0x10acb6fff binascii.so (89.40.1) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
0x10acba000 - 0x10acbbfff _hashlib.so (89.40.1) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
0x10acc0000 - 0x10acf6ff7 libssl.0.9.8.dylib (52.40.1) <0121FFA1-8332-39FF-9542-3E80BBC323D7> /usr/lib/libssl.0.9.8.dylib
0x10ad0c000 - 0x10ad0ffff _struct.so (89.40.1) <2443B9A8-9F7E-3620-A009-A545E8C16719> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
0x10ad15000 - 0x10ad16ff7 _random.so (89.40.1) <6BEAED69-3F2E-377C-82C8-AC6D99A55F5E> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so
0x10ad1a000 - 0x10ad1bfff cStringIO.so (89.40.1) <397642F6-410C-3229-8602-F81EB3DDCBFE> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
0x10ad20000 - 0x10ad21fff fcntl.so (89.40.1) <572598F0-FCF9-3821-AB50-CE6215E13C08> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so
0x10ad25000 - 0x10ad26fff _functools.so (89.40.1) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
0x10ad2a000 - 0x10ad31ff7 _socket.so (89.40.1) <942FC773-142B-364E-AC99-EB24A5D5D029> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
0x10ad3b000 - 0x10ad44fff _ssl.so (89.40.1) <62B0751A-A0D4-3B99-BCB3-54F88A921B11> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
0x10ad4f000 - 0x10ad53fff _json.so (89.40.1) <15B203E1-4CBD-3615-AA88-B876DCF9081A> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_json.so
0x10add8000 - 0x10add9fff time.so (89.40.1) <9E1F6DA2-9AF6-3881-945B-60E1960EEAE7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
0x10addf000 - 0x10ade1fff select.so (89.40.1) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so
0x10ade7000 - 0x10ade9fff _collections.so (89.40.1) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
0x10adef000 - 0x10adf2fff operator.so (89.40.1) <557EF3D6-7532-3AA9-8F4F-F3637E714414> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
0x10adf8000 - 0x10adfcfff itertools.so (89.40.1) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
0x10ae05000 - 0x10ae06fff _heapq.so (89.40.1) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
0x10af8b000 - 0x10af8eff7 strop.so (89.40.1) <3E094406-6B2D-3030-9B8C-F54A7998962F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
0x10b013000 - 0x10b017fff array.so (89.40.1) <27DCF036-1728-3300-B537-8A285A61439D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/array.so
0x10b0dd000 - 0x10b0e6fff datetime.so (89.40.1) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so
0x10b1af000 - 0x10b1affff scproxy.so (89.40.1) <42F89A22-64CE-3428-B207-2823F0665B7F> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/scproxy.so
0x10b233000 - 0x10b2d7fff unicodedata.so (89.40.1) <3C49828D-B338-3377-904B-D7F65D6AC256> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/unicodedata.so
0x10b2dd000 - 0x10b2e8fff cPickle.so (89.40.1) <8F420BF2-F4D7-3E7F-A458-5569C75D5602> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cPickle.so
0x10b2ee000 - 0x10b3eefff +ycm_core.so (0) /Users/USER//ycm_core.so
0x10b54c000 - 0x10b63dfff +org.python.python (2.7.10, [c] 2001-2015 Python Software Foundation. - 2.7.10) <5D0AE21E-77B6-345E-B3A2-4DD5429C2327> /usr/local/Frameworks/Python.framework/Versions/2.7/Python
0x10b6bc000 - 0x10c1acff3 +libclang.dylib (0) <25F04EE2-06AE-3201-AF49-F84C26DF522C> /Users/USER//libclang.dylib
0x10c3df000 - 0x10c3fdfff libedit.3.dylib (40) <6049084C-478A-3A89-A9A1-E641B5F8C1A7> /usr/lib/libedit.3.dylib
0x7fff6efe7000 - 0x7fff6f01d887 dyld (353.2.3) /usr/lib/dyld
0x7fff82748000 - 0x7fff8274cfff libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib
0x7fff82c66000 - 0x7fff82c6fff7 libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib
0x7fff82fa2000 - 0x7fff82fa7ff7 libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib
0x7fff830c5000 - 0x7fff830f5ff7 libncurses.5.4.dylib (44) /usr/lib/libncurses.5.4.dylib
0x7fff83300000 - 0x7fff83301ff3 libSystem.B.dylib (1213) <1866C519-C5F3-3D09-8C17-A8F703664521> /usr/lib/libSystem.B.dylib
0x7fff83803000 - 0x7fff83849ff7 libauto.dylib (186) /usr/lib/libauto.dylib
0x7fff8395b000 - 0x7fff83983fff libsystem_info.dylib (459.40.1) <2E16C4B3-A327-3957-9C41-143911979A1E> /usr/lib/system/libsystem_info.dylib
0x7fff83ac7000 - 0x7fff83afffff libsystem_network.dylib (412.20.3) <6105C134-6722-3C0A-A4CE-5E1261E2E1CC> /usr/lib/system/libsystem_network.dylib
0x7fff84170000 - 0x7fff841e9fe7 libcorecrypto.dylib (233.30.1) <5779FFA0-4D9A-3AD4-B7F2-618227621DC8> /usr/lib/system/libcorecrypto.dylib
0x7fff8487e000 - 0x7fff84886fff libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
0x7fff849b8000 - 0x7fff849d4ff7 libsystem_malloc.dylib (53.30.1) /usr/lib/system/libsystem_malloc.dylib
0x7fff8562a000 - 0x7fff8562bffb libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
0x7fff8584b000 - 0x7fff85a30ff7 libicucore.A.dylib (531.48) <3CD34752-B1F9-31D2-865D-B5B0F0BE3111> /usr/lib/libicucore.A.dylib
0x7fff85abe000 - 0x7fff85cb846f libobjc.A.dylib (647) <759E155D-BC42-3D4E-869B-6F57D477177C> /usr/lib/libobjc.A.dylib
0x7fff85cba000 - 0x7fff85cc5fff libcommonCrypto.dylib (60061.30.1) /usr/lib/system/libcommonCrypto.dylib
0x7fff85cff000 - 0x7fff85d05ff7 libsystem_networkextension.dylib (167.40.3) /usr/lib/system/libsystem_networkextension.dylib
0x7fff85d19000 - 0x7fff85d2aff7 libz.1.dylib (55) <88C7C7DE-04B8-316F-8B74-ACD9F3DE1AA1> /usr/lib/libz.1.dylib
0x7fff85d56000 - 0x7fff85d58fff libsystem_configuration.dylib (699.40.2) <56F94DCE-DBDE-3615-8F07-DE6270D9F8BE> /usr/lib/system/libsystem_configuration.dylib
0x7fff8618f000 - 0x7fff8619fff7 libbsm.0.dylib (34) /usr/lib/libbsm.0.dylib
0x7fff861a0000 - 0x7fff861a7ff7 libcompiler_rt.dylib (35) /usr/lib/system/libcompiler_rt.dylib
0x7fff86c84000 - 0x7fff86d68fff libcrypto.0.9.8.dylib (52.40.1) /usr/lib/libcrypto.0.9.8.dylib
0x7fff87099000 - 0x7fff8709efff libsystem_stats.dylib (163.30.2) /usr/lib/system/libsystem_stats.dylib
0x7fff87928000 - 0x7fff8792afff libsystem_sandbox.dylib (358.20.5) <3F5E973F-C702-31AC-97BC-05F5C195683C> /usr/lib/system/libsystem_sandbox.dylib
0x7fff87f62000 - 0x7fff87f73ff3 libsystem_coretls.dylib (35.40.1) <155DA0A9-2046-332E-BFA3-D7974A51F731> /usr/lib/system/libsystem_coretls.dylib
0x7fff88423000 - 0x7fff88425fff libquarantine.dylib (76.20.1) <7AF90041-2768-378A-925A-D83161863642> /usr/lib/system/libquarantine.dylib
0x7fff88aef000 - 0x7fff88b17fff libxpc.dylib (559.40.1) <5C829202-962E-3744-8B50-00D38CC88E84> /usr/lib/system/libxpc.dylib
0x7fff88c40000 - 0x7fff88c41ff7 libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
0x7fff88c42000 - 0x7fff88c42ff7 liblaunch.dylib (559.40.1) <4F81CA3A-D2CE-3030-A89D-42F3DAD7BA8F> /usr/lib/system/liblaunch.dylib
0x7fff88d1e000 - 0x7fff88d20ff7 libsystem_coreservices.dylib (9) <41B7C578-5A53-31C8-A96F-C73E030B0938> /usr/lib/system/libsystem_coreservices.dylib
0x7fff89317000 - 0x7fff893a3fe7 libsystem_c.dylib (1044.40.1) /usr/lib/system/libsystem_c.dylib
0x7fff896c3000 - 0x7fff896eefff libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib
0x7fff898ce000 - 0x7fff898cffff libsystem_secinit.dylib (18) <581DAD0F-6B63-3A48-B63B-917AF799ABAA> /usr/lib/system/libsystem_secinit.dylib
0x7fff8b010000 - 0x7fff8b018fff libsystem_dnssd.dylib (576.30.4) <0CEB5910-843F-315C-A1DE-5D955A48A045> /usr/lib/system/libsystem_dnssd.dylib
0x7fff8c5e7000 - 0x7fff8c5efffb libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib
0x7fff8d6cf000 - 0x7fff8d6d0fff libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff8d747000 - 0x7fff8d75dff7 libsystem_asl.dylib (267) /usr/lib/system/libsystem_asl.dylib
0x7fff8df34000 - 0x7fff8dfacff7 com.apple.SystemConfiguration (1.14.4 - 1.14) <3DFFD7F7-BD23-3F4C-A209-C4A0D99F6573> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff8e6e8000 - 0x7fff8e712ff7 libdispatch.dylib (442.1.4) <502CF32B-669B-3709-8862-08188225E4F0> /usr/lib/system/libdispatch.dylib
0x7fff8e891000 - 0x7fff8e891ff7 libkeymgr.dylib (28) <77845842-DE70-3CC5-BD01-C3D14227CED5> /usr/lib/system/libkeymgr.dylib
0x7fff8edfe000 - 0x7fff8ee52fff libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
0x7fff901a8000 - 0x7fff901d8fff libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
0x7fff907d8000 - 0x7fff907dbff7 libdyld.dylib (353.2.3) /usr/lib/system/libdyld.dylib
0x7fff90a40000 - 0x7fff90a45ff7 libunwind.dylib (35.3) /usr/lib/system/libunwind.dylib
0x7fff90b09000 - 0x7fff90b09ff7 libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib
0x7fff9106a000 - 0x7fff91073fff libsystem_pthread.dylib (105.40.1) /usr/lib/system/libsystem_pthread.dylib
0x7fff91188000 - 0x7fff91520ff7 com.apple.CoreFoundation (6.9 - 1153.18) <5C0892B8-9691-341F-9279-CA3A74D59AA0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff9193d000 - 0x7fff91943fff libsystem_trace.dylib (72.20.1) <840F5301-B55A-3078-90B9-FEFFD6CD741A> /usr/lib/system/libsystem_trace.dylib
0x7fff91bed000 - 0x7fff91c0afff libsystem_kernel.dylib (2782.40.9) <16AD15EF-3DAE-3F63-9D26-26CCE1920762> /usr/lib/system/libsystem_kernel.dylib
0x7fff91c30000 - 0x7fff91c31fff com.apple.TrustEvaluationAgent (2.0 - 25) <2D61A2C3-C83E-3A3F-8EC1-736DBEC250AB> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 459992
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=102.8M resident=48.9M(48%) swapped_out_or_unallocated=53.9M(52%)
Writable regions: Total=80.1M written=10.3M(13%) resident=13.2M(16%) swapped_out=0K(0%) unallocated=66.9M(84%)
REGION TYPE VIRTUAL
=========== =======
Kernel Alloc Once 4K
MALLOC 70.9M
MALLOC (admin) 16K
STACK GUARD 56.0M
Stack 8192K
VM_ALLOCATE 12K
__DATA 2868K
__LINKEDIT 74.5M
__TEXT 28.3M
__UNICODE 552K
shared memory 4K
=========== =======
TOTAL 241.0M
Model: MacBookPro11,2, BootROM MBP112.0138.B15, 4 processors, Intel Core i7, 2.5 GHz, 16 GB, SMC 2.18f15
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x134), Broadcom BCM43xx 1.0 (7.15.166.24.3)
Bluetooth: Version 4.3.6f3 16238, 3 services, 27 devices, 1 incoming serial ports
Network Service: Thunderbolt Ethernet, Ethernet, en5
PCI Card: Apple 57762-A0, Ethernet Controller, Thunderbolt@195,0,0
Serial ATA Device: APPLE SSD SM0512F, 500.28 GB
USB Device: Internal Memory Card Reader
USB Device: ATEN CS-1758/54
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 17.1
Thunderbolt Device: Thunderbolt to Gigabit Ethernet Adapter, Apple Inc., 3, 5.5
but ::
works right, don't know why
I'm trying to install you-complete-me. I installed the package from inside Atom. When the package is loaded, I get two notifications in the Atom window:
Trying to follow the instructions in the readme, I found that ~/.atom/packages/you-complete-me/ycmd
does not exist.
Is there some additional step I need to take to install this? If so, it would probably be good to document that in the readme.
上次的问题查出来了,文件路径不能有中文。
是API占用的原因吗?enable YCM就不能使用其他的诸如autocomplete-snippets/paths插件了,希望能得到改善,将补齐结果统一到一起来
Steps to reproduce:
Expected outcome: myFoo is suggested in a dropdown-list
Actual outcome: No dropdown-list appears, nothing happens
A dropdown-list of suggestions do appear whenever I type . (dot) or -> (arrow), so autocompletions for methods and member variables works as intended.
I have tried to type myF follwed by 'ctrl + shift + space' and no dropdown-list appear.
Like this:
let g:ycm_extra_conf_globlist = ['~/workspace/*','~/Dropbox/workspace/*']`
I can setup safe zones within which extra_conf automatically get loaded. How can I get it down in ycm-atom?
This has been previously discussed in @19 and I still haven't figure out how to disable confirmation dialog.
--- Update
So far I found that on the ycmd side, I can customize it by changing the "default_settings.json" file, which is called by handler.coffee
:
readDefaultOptions = new Promise (fulfill, reject) ->
defaultOptionsFile = path.resolve atom.config.get('you-complete-me.ycmdPath'), 'ycmd', 'default_settings.json'
fs.readFile defaultOptionsFile, encoding: 'utf8', (error, data) ->
unless error?
fulfill JSON.parse data
else
reject error
However, since my ycmd is also the vim's ycmd, I don't really want to make changes there (otherwise those change get wiped after PluginUpdate). It would be really better to expose some of those settings in atom as well...
Thanks,
Hi, this plugin is amazing! I ran into trouble, though, when opening the same file in two tabs at once:
Expected result: The error message goes away in both tabs.
Actual result: The error message sticks around until you also edit the first tab.
The developer console shows the following
[YCM] Traceback (most recent call last):
File "/mnt/Peng/Jordan/Code/git/ycmd/third_party/bottle/bottle.py", line 861, in _handle
return route.call(**args)
File "/mnt/Peng/Jordan/Code/git/ycmd/third_party/bottle/bottle.py", line 1734, in wrapper
rv = callback(*a, **ka)
File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/watchdog_plugin.py", line 100, in wrapper
return callback( *args, **kwargs )
File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/hmac_plugin.py", line 54, in wrapper
body = callback( *args, **kwargs )
File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/handlers.py", line 92, in GetCompletions
request_data )
File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/server_state.py", line 106, in ShouldUseFiletypeCompleter
request_data ) )
File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/completers/completer.py", line 116, in ShouldUseNow
if not self.ShouldUseNowInner( request_data ):
File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/completers/completer.py", line 138, in ShouldUseNowInner
current_line = request_data[ 'line_value' ]
File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/request_wrap.py", line 42, in __getitem__
value = self._computed_key[ key ]()
File "/mnt/Peng/Jordan/Code/git/ycmd/ycmd/../ycmd/request_wrap.py", line 66, in _CurrentLine
return contents.splitlines()[ self._request[ 'line_num' ] - 1 ]
AttributeError: 'NoneType' object has no attribute 'splitlines'
I'm not sure if this is an issue with ycmd itself, but I figure i should put it here first.
"you-complete-me":
pythonExecutable: "/usr/bin/python2"
ycmdPath: "/mnt/Peng/Jordan/Code/git/ycmd"
I upgraded from 0.6.5 to 0.7.1, and now I don't see compile warnings or errors any more.
I'm running atom 1.4.0 with linter 1.11.3 and autocomplete-plus 2.25.0.
The dev console in youcompleteme v0.6.5 showed two types of YCM requests:
[YCM-REQUEST] POST atom_completions
[YCM-REQUEST] POST event_notification
But in youcompleteme v0.7.1 there are only completion requests shown in the dev console, I guess that's why I don't get any linter visualizations of compile warnings.
I switched back to 0.6.5 for now, which works pretty fine for me (thanks for all the good work!)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.