Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FML not working under GVim for Windows #11

Open
pmcRTR opened this issue Sep 23, 2015 · 9 comments
Open

FML not working under GVim for Windows #11

pmcRTR opened this issue Sep 23, 2015 · 9 comments

Comments

@pmcRTR
Copy link

pmcRTR commented Sep 23, 2015

I use GVim on both Windows and Linux. FML works fine on Linux but not on Windows. Currently I'm using the pre-compiled 64-Bit Windows GVim available from kaoriya.net (version 7.843).

running fml on GVim for Windows gives the following errors:

Error detected while processing function FMLShow..FMLGetLeaderMappingsBySource:
line 22:
E121: Undefined variable: s:vimrc_glob
E116: Invalid arguments for function remove(with_desc, s:vimrc_glob)
E15: Invalid expression: remove(with_desc, s:vimrc_glob)
line 23:
E121: Undefined variable: s:vimrc_glob
E15: Invalid expression: [{ 'source': s:vimrc_glob, 'mappings': vimrc_val }]
line 24:
E121: Undefined variable: vimrc_first
line 25:
E121: Undefined variable: vimrc_first
E15: Invalid expression: vimrc_first
Error detected while processing function FMLShow:
line 1:
E712: Argument of map() must be a list or Dictionary
E714: List required

@ktonga
Copy link
Owner

ktonga commented Sep 24, 2015

Taking a look at the error it seems it is having problems to detect vimrc from the rest of the sources.
I don't have any Windows box to test it on.

Could you please attach the output of :verbose map and :echo $MYVIMRC ?

Thank you for reporting.

@pmcRTR
Copy link
Author

pmcRTR commented Sep 24, 2015

echo $MYVIMRC == pathToMyHomeDir_vimrc (note on Windows vimrc filename starts with a _ and not a . as filenames beginning with a . is not supported / allowed)

verbose map output is too long to post in full here - is there a way for me to attach a .txt file or if you like I can send to you via email?

@ktonga
Copy link
Owner

ktonga commented Sep 24, 2015

I think it can be related to the _ or the \ when trying to do the matching.
I don't need the whole output, just look for a line with the form: Last set from <relative_path_to_vimrc>
And please add the output of :echo glob('<relative_path_to_vimrc>')

Thanks again.

@pmcRTR
Copy link
Author

pmcRTR commented Sep 24, 2015

Running echo glob('~') returns C:\Users\pmc

In the output of verbose map, all the lines with that form look like:

Last set from ~_vimrc

@ktonga
Copy link
Owner

ktonga commented Sep 25, 2015

You didn't put the real output for :echo $MYVIMRC. is it C:\Users\pmc\_vimrc ?
And please let me know the output of :echo glob('~\_vimrc') they should be the same for it to work.

@pmcRTR
Copy link
Author

pmcRTR commented Sep 25, 2015

:echo $MYVIMRC returns C:\Users\pmc_vimrc

:echo glob('~_vimrc') also returns C:\Users\pmc_vimrc

@ktonga
Copy link
Owner

ktonga commented Sep 30, 2015

Hi @pmcRTR I wasn't able to reproduce it. The comparison is working as expected in my linux box for the windows paths you provided.
Maybe we can work on it together if you help me debugging on your side.
Ping me privately to my email when you can.

@pmcRTR
Copy link
Author

pmcRTR commented Sep 30, 2015

Sure, I can help with debugging - no problem :)

Probably a n00b question but where can I find your email address?

@ktonga
Copy link
Owner

ktonga commented Oct 1, 2015

It should be in any of my commits. You already have the repo cloned. Use
git log for listing the commits, my mail should be there.

On Thu, Oct 1, 2015, 06:42 pmcRTR [email protected] wrote:

Sure, I can help with debugging - no problem :)

Probably a n00b question but where can I find your email address?


Reply to this email directly or view it on GitHub
#11 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants