iago-lito / intim

Interactively interface Vim with interpreters
GNU General Public License v3.0
6 stars 2 forks source link

Intim option calls fail: `call Intim_*()` #6

Closed iago-lito closed 6 years ago

iago-lito commented 6 years ago

Problem forked from #3. Any .vimrc call to an Intim_<option> seems to fail.

@alaindanet I cannot reproduce your problem yet. Let's try digging this out :)

Thank you for your patience.

alaindanet commented 6 years ago

Thank you so much for your help!

Here is the output of vim --version:vim_version_output.txt

  1. Intim up-to-date ?
    cd ~/.vim/bundle/intim && git rev-parse HEAD                                                      
    e91db2ea12e08e86bb08005151c1cdde4b0167cd
  2. Does Intim function call always drop errors ? Yes
    :call Intim_invokeCommand('python', 'sage')
    Erreur détectée en traitant function Intim_invokeCommand :
    ligne    1 :
    E117: Fonction inconnue : <SNR>29_set_invokeCommand
  3. Is it the case with other functions ?
    • :call IntimSetLanguage('python') does not throw an error
    • :call Intim_hotkeys('python', 'ii', '* += 1') neither
iago-lito commented 6 years ago

Well..

  1. We are using the same vim version, so no problem on this side

  2. Surprisingly e91db2ea12e08e86bb08005151c1cdde4b0167cd is.. not! a commit from this repo :D I think you've forked Intim to add automatic sage filetype detection. There is no problem with that. However, don't forget to post a pull request if you wish your changes to be merged into Intim's repo, and not to miss further updates ;)

  3. Well, that's interesting. Maybe something has been broken with function definition macro when adding the hook in 106a9c6a4e0253ece3852a2e77249dae9c664120. I've tried making it cleaner with 72286d27e550a0ccb38153206ee85e76ebdd0ce7.

  4. This confirms my hypothesis about the macro for option setting definition being broken by the hook, because global options and dictionnary options seem not affected.

But I still cannot reproduce. Would you please:

Thank you for your patience.

alaindanet commented 6 years ago

The previous commands do not report any errors anymore!

iago-lito commented 6 years ago

Do you mean that 72286d27e550a0ccb38153206ee85e76ebdd0ce7 fixed it? If yes, I'll close the issue.

alaindanet commented 6 years ago

Yes!