Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 04 20:21
    @puremourning banned @dylanusdt:matrix.org
Ben Jackson
@puremourning
yeah noice
Enrico Maria De Angelis
@Aster89
@bstaletic , yeah, so I believe the change will be soon-ish available in YCM? Or it's not even up to YCM to update clangd?
Boris Staletic
@bstaletic
We will update clangd when the next stable version comes out.
Enrico Maria De Angelis
@Aster89
Ok, thanks :)
Ben Jackson
@puremourning
meanwhile you can build a custom clangd and use g:ycm_clangd_binary_path
Enrico Maria De Angelis
@Aster89
Oh, not worth it for now, thanks ;) Now that I've discovered that the ugly header is introduced when I tab complete std::size_t, it's much easier to get rid of it
Ben Jackson
@puremourning
or disable headre insertion
no-1imit
@no-1imit
Hi guys, Java completer does not work correctly, it was working a few days ago.
here is YcmDebugIngo
Printing YouCompleteMe debug information... -- Resolve completions: Up front -- Client logfile: /tmp/ycm_er2lazyi.log -- Server Python interpreter: /usr/bin/python3 -- Server Python version: 3.7.3 -- Server has Clang support compiled in: False -- Clang version: None -- No extra configuration file found -- Java completer debug information: -- jdt.ls running -- jdt.ls process ID: 16414 -- jdt.ls executable: ['/usr/bin/java', '-Dfile.encoding=UTF-8', '-Declipse.application=org.eclipse.jdt.ls.core.id1', '-Dosgi.bundles.defaultSta rtLevel=4', '-Declipse.product=org.eclipse.jdt.ls.core.product', '-Dlog.level=ALL', '-jar', '/home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/ third_party/eclipse.jdt.ls/target/repository/plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar', '-configuration', '/home/Alex/.vim/b undle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/config_linux', '-data', '/home/Alex/.vim/bundle/YouCompleteMe/third_party /ycmd/third_party/eclipse.jdt.ls/workspace/temp/tmps5ez_g_y'] -- jdt.ls logfiles: -- /tmp/jdt_ls_stderrqx6tmddx.log -- /home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/temp/tmps5ez_g_y/.metadata/.log -- jdt.ls Server State: Initialized -- jdt.ls Project Directory: /home/Alex/Programs/Java -- jdt.ls Settings: { -- "bundles": [] -- } -- jdt.ls Startup Status: Ready -- jdt.ls Java Path: /usr/bin/java -- jdt.ls Launcher Config.: /home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/config_linux -- jdt.ls Workspace Path: /home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/temp/tmps5ez_g_y -- jdt.ls Extension Path: ['/home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/extensions'] -- Server running at: http://127.0.0.1:56087 -- Server process ID: 16372 -- Server logfiles: -- /tmp/ycmd_56087_stdout_o6amm0wo.log -- /tmp/ycmd_56087_stderr_v172dg77.log
what's wrong?
Ben Jackson
@puremourning
‘Does not work’
It’s like going to your doctor and saying ‘I’m sick, how to fix me?’
no-1imit
@no-1imit
what should I say? I wrote the YcmDebugInfo, what do you need?
according to YcmDebugInfo it seems everything is okay but it's not. am I wrong?
Ben Jackson
@puremourning
Tel us what you are doing and what is or isn’t happening
Doesn’t work means nothing.
no-1imit
@no-1imit
oh got it, sorry you're right, I mean Java autocomplete does not work
I create a .java file but its intellisense does not work
Ben Jackson
@puremourning
Is the project set up correctly?
no-1imit
@no-1imit
oh my bad, I thought it is like clang completer and works on a single .java file and don't require a project.
thank you very much.
Ben Jackson
@puremourning
Hmmm. Well jdtls does have something for single files but I’ve never used it.
no-1imit
@no-1imit
thank you
Brian Orwe
@Borwe
I believe jdtls might take time to boot. atleast on my shitty PC it does.
Boris Staletic
@bstaletic
@Borwe JDT's start up time is painfully slow on every PC.
Johnathan Middleton
@johnmiddleton12
Output of :scriptnames
1: ~/_vimrc
2: /usr/share/vim/vim82/ftoff.vim
3: ~/vimfiles/bundle/Vundle.vim/autoload/vundle.vim
4: ~/vimfiles/bundle/Vundle.vim/autoload/vundle/config.vim
5: /usr/share/vim/vim82/filetype.vim
6: /usr/share/vim/vim82/ftplugin.vim
7: /usr/share/vim/vim82/indent.vim
8: /usr/share/vim/vim82/defaults.vim
9: /usr/share/vim/vim82/syntax/syntax.vim
10: /usr/share/vim/vim82/syntax/synload.vim
11: /usr/share/vim/vim82/syntax/syncolor.vim
12: ~/vimfiles/bundle/YouCompleteMe/plugin/youcompleteme.vim
13: /usr/share/vim/vim82/plugin/getscriptPlugin.vim
14: /usr/share/vim/vim82/plugin/gzip.vim
15: /usr/share/vim/vim82/plugin/logiPat.vim
16: /usr/share/vim/vim82/plugin/manpager.vim
17: /usr/share/vim/vim82/plugin/matchparen.vim
18: /usr/share/vim/vim82/plugin/netrwPlugin.vim
19: /usr/share/vim/vim82/plugin/rrhelper.vim
20: /usr/share/vim/vim82/plugin/spellfile.vim
21: /usr/share/vim/vim82/plugin/tarPlugin.vim
22: /usr/share/vim/vim82/plugin/tohtml.vim
23: /usr/share/vim/vim82/plugin/vimballPlugin.vim
24: /usr/share/vim/vim82/plugin/zipPlugin.vim
25: ~/vimfiles/bundle/YouCompleteMe/autoload/youcompleteme.vim
ycm has been failing with error YouCompleteMe unavailable: No module named 'ycm'
Boris Staletic
@bstaletic

Number 12 and 25 do match, so...

Check :YcmToggleLogs and see if you can find the complete stack trace of that error.

Johnathan Middleton
@johnmiddleton12
I can't run any ycm commands because it doesn't load at vim startup
Boris Staletic
@bstaletic
What about :messages?
Johnathan Middleton
@johnmiddleton12
Traceback (most recent call last):
File "<string>", line 27, in <module>
ModuleNotFoundError: No module named 'ycm'
Type :qa and press <Enter> to exit Vim
E492: Not an editor command: YcmToggleLogs
Press ENTER or type command to continue
Add, before that line, print(sys.path) and see if it contains ~/vimfiles/bundle/YouCompleteMe/python/

Wait... in this comment: https://github.com/ycm-core/YouCompleteMe/issues/3843#issuecomment-769890543

You've shown Windows paths.

But in :messages you're showing Unix paths.
Johnathan Middleton
@johnmiddleton12
I added the line in youcompleteme.vim and this is now the output of :messages
['\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\python', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests-futures', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\ycmd', '\c\Users\jpmaw\vimfiles\bun
dle\YouCompleteMe\third_party\requests_deps\idna', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests_deps\chardet', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests_deps\urllib3\src', '\c\Users\
\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests_deps\certifi', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests_deps\requests', '\\?\C:\Users\jpmaw\AppData\Local\Programs\Python\Python36\python36.zip'
, 'C:\Users\jpmaw\AppData\Local\Programs\Python\Python36\DLLs', 'C:\Users\jpmaw\AppData\Local\Programs\Python\Python36\lib', 'C:\Program Files\Git\usr\bin', 'C:\Users\jpmaw\AppData\Local\Programs\Python\Python36', 'C:\Users\j
pmaw\AppData\Local\Programs\Python\Python36\lib\site-packages', '_vimpath']
Traceback (most recent call last):
File "<string>", line 28, in <module>
ModuleNotFoundError: No module named 'ycm'
Boris Staletic
@bstaletic
But where is the \c\Users\ thing coming from, if vim is loading stuff from /usr/share? Which OS are you on?
Johnathan Middleton
@johnmiddleton12
I'm on windows 10, running vim in git bash
Boris Staletic
@bstaletic
That might be causing trouble. Python seems to be confused between Windows and Unix paths.
I don't remember any user trying that before...
Johnathan Middleton
@johnmiddleton12
Ok.. is there any way I can specify which paths to use?
Boris Staletic
@bstaletic
You can influence sys.path with $PYTHONPATH. You can even set it in your vimrc with let $PYTHONPATH=...
Johnathan Middleton
@johnmiddleton12
I just tried that, and it didn't seem to do anything.
I'm wondering if there's any way I can install python locally in the git bash installation?
Boris Staletic
@bstaletic

I just tried that, and it didn't seem to do anything.

Did sys.path change?

I'm wondering if there's any way I can install python locally in the git bash installation?

It has been a long time since I used git bash or Windows. Does "git bash" come with apt?

Johnathan Middleton
@johnmiddleton12
['\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\python', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests-futures', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\ycmd', '\c\Users\jpmaw\vimfiles\bun
dle\YouCompleteMe\third_party\requests_deps\idna', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests_deps\chardet', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests_deps\urllib3\src', '\c\Users\
\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests_deps\certifi', '\c\Users\jpmaw\vimfiles\bundle\YouCompleteMe\third_party\requests_deps\requests', '\\?\C:\Users\jpmaw\AppData\Local\Programs\Python\Python36\python36.zip'
, 'C:\Users\jpmaw\AppData\Local\Programs\Python\Python36\DLLs', 'C:\Users\jpmaw\AppData\Local\Programs\Python\Python36\lib', 'C:\Program Files\Git\usr\bin', 'C:\Users\jpmaw\AppData\Local\Programs\Python\Python36', 'C:\Users\j
pmaw\AppData\Local\Programs\Python\Python36\lib\site-packages', '_vimpath']
This is new output of sys.path
So same I think
I don't think it does
Because it's just a git unix terminal basically