Ale: Nothing beign echo'ed when over error

Created on 14 Oct 2016  ·  45Comments  ·  Source: dense-analysis/ale

Hey, trying out ALE now, but it doesn't seem to echo errors nor highlight them when something is wrong. Using vim 8.0 1-22 with newest version of ALE (as of now). No errors or such, I am however using YCM if that could matter. I can post my config if you need, but it's only stuff from the readme.

bug

All 45 comments

It appears that it is also spamming "No matching autocommands" now.. Strange

YouCompleteMe will likely conflict with this plugin.

I know about that other bug. I'll fix that right now.

If you pull again, that autocmd problem will be gone.

Awesome! Do you know any workaround for the YCM thing?

[2016-10-14 20:19:16] > Error running :helptags /home/fredrik/.vim/bundle/ale/doc

This might also be of interest to you; pops up every time I update.

https://github.com/Valloric/YouCompleteMe#the-gycm_echo_current_diagnostic-option

You might have to turn the similar option off in YCM.

For some reason it still seems to spam bell sessions for me though. Weird :disappointed_relieved:

Someone might have to open a pull request for YouCompleteMe to add support for this plugin.

I also have no errors even despite that I am not using YCM.

BTW my terminal is still receiving a bell signal every time I unfocus it and it's on a line
where there is an error.

On Sun, Oct 16, 2016, 12:44 Łukasz Jan Niemier [email protected]
wrote:

I also have no errors even despite that I am not using YCM.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/w0rp/ale/issues/109#issuecomment-254039575, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHVdG30q-JqbrvRo1UOliKLpKvnNQK8Hks5q0f_2gaJpZM4KXS1n
.

The same for me:

Setup:

  • iTerm2
  • NeoVim

The problem existed even when all plugins were disabled. So I believe that there is issue when using Ale with NeoVim.

I'm using standard vim

On Sun, Oct 16, 2016, 13:28 Łukasz Jan Niemier [email protected]
wrote:

The same for me:

Setup:

  • iTerm2
  • NeoVim

The problem existed even when all plugins were disabled. So I believe that
there is issue when using Ale with NeoVim.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/w0rp/ale/issues/109#issuecomment-254041366, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHVdG72r0xi8hXm04lQQVV9efra0UVdkks5q0gpSgaJpZM4KXS1n
.

I fixed the documentation issue.

What do you mean by "spamming bell sessions" and "pinging?" Could you paste some output?

Hey, kind of busy right now, but I can do it later tonight. Basically; Konsole (KDE konsole) shows a little notification every time a bell signal is sent to the terminal and the terminal is not the focused window, and when I have my cursor over a line with an error it keeps on creating a new notification every appx. 1s

Maybe you need :set noerrorbells or :set novisualbell.

I have :set noerrorbells in my vimrc

I can try adding novisualbell now

Nope, still receiving the error bell :confused:

I'm not sure what the issue is. If you could produce some kind of recording or some error output, that may help. The errors are just displayed with echomsg.

Setting set belloff=all resolves problem with bell, but still no error info.

Łukasz Niemier
[email protected]

Wiadomość napisana przez w0rp [email protected] w dniu 16.10.2016, o godz. 16:46:

I'm not sure what the issue is. If you could produce some kind of recording or some error output, that may help. The errors are just displayed with echomsg.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/w0rp/ale/issues/109#issuecomment-254051092, or mute the thread https://github.com/notifications/unsubscribe-auth/AARzN7qFQ-FNNKwc2BNQpqTGdQE0AUPXks5q0jivgaJpZM4KXS1n.

Thanks a lot @hauleth, that did indeed fix it.

@w0rp How should I get the error output when the problem is the lack of output? Is there any log I can look in or such?

Do you see any signs in the sign column? Is the loclist being populated? Could you share your vimrc and version of Vim? Any information might help.

You can use :lwindow or :lopen to show location list. But problem still exist as I would rather see it inline.

Łukasz Niemier
[email protected]

Wiadomość napisana przez Fredrik A. Madsen-Malmo [email protected] w dniu 16.10.2016, o godz. 16:50:

@w0rp https://github.com/w0rp How should I get the error output when the problem is the lack of output? Is there any log I can look in or such?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/w0rp/ale/issues/109#issuecomment-254051383, or mute the thread https://github.com/notifications/unsubscribe-auth/AARzN8KAr9XAxNGlkOMsQX1ciKLFYMw2ks5q0jnJgaJpZM4KXS1n.

I'm using a plugin to show the loclist, and I can confirm that it's being populated. I also get signs in the column.

http://i.imgur.com/xGBNRll.png

!! is error, while -- is warning.

You can see issue there: https://asciinema.org/a/668m24qyvev4aieq04aa1u5dl

My NeoVim version:

NVIM 0.1.5
Build type: RelWithDebInfo
Compilation: /usr/local/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/build/config -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/src -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/deps-build/usr/include -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/deps-build/usr/include -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/deps-build/usr/include -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/deps-build/usr/include -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/deps-build/usr/include -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/deps-build/usr/include -I/usr/local/opt/gettext/include -I/usr/include -I/usr/include -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/build/src/nvim/auto -I/tmp/neovim-20160822-30240-1vpbim8/neovim-0.1.5/build/include
Skompilowany przez hauleth@niuniobook

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      
For differences from Vim, see :help vim-differences

       vimrc systemu: "$VIM/sysinit.vim"
   odwet dla $VIM-a: "/usr/local/Cellar/neovim/0.1.5/share/nvim"

I'm having the exact same issue as @hauleth showed here. Everything is working except for the echo part.

What do you see if you try this?

setlocal shortmess+=T
let x = 'hello' 
exec "norm :echomsg x\n" 

Does it print "hello"?

@w0rp no. But when I execute simply echomsg z then everything works. I do not know why have that additional level of indirection.

The example worked for me, though I had to change : to ; as I have remapped those in my config.

norm is used because it's required for truncating messages. See here. http://vim.wikia.com/wiki/Get_shortened_messages_from_using_echomsg

Aaah, can you add an option so I can change it from using : to using ;?

@FredrikAugust that could be issue, there should be call to norm! instead of norm as the following would use mappings, and first one forces to use default Vim.

That makes sense. I'll change that.

Great!

Right, give that a go.

Alright, one moment please.

Great, it works perfectly now! :)

Nice. Does it work fro you, @hauleth?

Works. But I have local copy of the Ale because I have added extra linters that I use in my work #113 so it need to wait a little :P

I'll have a look at that pull request, and we can get that merged soon enough.

Thanks for the info! You get weird errors on different setups for different people in Vim, and can be hard to figure out why something works for 80% of people, but not the other 20%.

@w0rp and this is only first day of using Ale :D

Only used it for a couple of days myself, seems great so far :)

Was this page helpful?
0 / 5 - 0 ratings