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

Perl-Support: E488: Trailing characters #52

Open
XSven opened this issue Jun 16, 2020 · 7 comments
Open

Perl-Support: E488: Trailing characters #52

XSven opened this issue Jun 16, 2020 · 7 comments
Labels

Comments

@XSven
Copy link

XSven commented Jun 16, 2020

I have installed this plugin (5.5alpha) with vim-plug plugin manager. My vim version is 8.1.2130. The operating system is AIX. The perl version is 5.14.2. When I open a Perl module I am getting the Errors

Error detected while processing function Perl_InitializePerlInterface:
line    7:
E488: Trailing characters: ^I^I^I# ---------------------------------------------------------------
line    8:
E488: Trailing characters: ^I^I^I# find out the version of the Perl interface
line    9:
E488: Trailing characters: ^I^I^I# ---------------------------------------------------------------
line   13:
E488: Trailing characters: ^I^I^I# ---------------------------------------------------------------
line   14:
E488: Trailing characters: ^I^I^I# Perl_RegexExplain (function)
line   15:
E488: Trailing characters: ^I^I^I# try to load the regex analyzer module; report failure
line   16:
E488: Trailing characters: ^I^I^I# ---------------------------------------------------------------
line   24:
E171: Missing :endif

Any help to fix this is very much appreciated.

@WolfgangMehner
Copy link
Owner

Sorry for the late response. Does the problem persist? Is it present with other versions of Vim?

From the error messages it seems like Vim tries to interpret the Perl code as Vim script. Is Perl correctly compiled into your editor?

@WolfgangMehner WolfgangMehner changed the title E488: Trailing characters Perl-Support: E488: Trailing characters Jul 11, 2020
@XSven
Copy link
Author

XSven commented Jul 13, 2020

Yes the problem does still exist. Unfortunately I have no access to other versions of Vim. I think Perl is not correctly complied into the Vim editor. The perl feature is off. I guess that this is the reason. Sorry. One question before I am asking our admins to recompile Vim with perl feature enabled: The perl feature seems to be an "m"type (manually enabled or depends on other features). I could not figure out what that means!

@WolfgangMehner
Copy link
Owner

About the error:

I'm slightly confused about the behavior of our plug-in here. We check for the Perl capabilities before we execute the code which causes the above problems. With your Vim, what is the result of the following commands:

:echo has('perl')
:perl print("eee")

About manual features:

Vim comes with various predefined sets of features you can choose from when compiling it yourself: tiny, small, normal, big, ... Some features are not enabled by any of these configurations. You must configure them manually before compiling, e.g.:

./configure --enable-pythoninterp=yes

@XSven
Copy link
Author

XSven commented Jul 13, 2020

:echo has('perl') prints 0 and :perl print("eee") simply does nothing. To enable the perl feature we have to run configure with --enable-perl=yes right?

@WolfgangMehner
Copy link
Owner

Should be --enable-perlinterp=yes.

@XSven
Copy link
Author

XSven commented Jul 14, 2020

I think we have to close or flag this issue. Our admins refuse to build from source and the packaged versions of vim they are allowed to install have the perl feature disabled :-( I will try to compile from source by my own but I don't know when. Sorry and thanks so far.

@WolfgangMehner
Copy link
Owner

No worries.

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

No branches or pull requests

2 participants