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

Plugin cannot find .vrapperrc #868

Open
ahelwer opened this issue Feb 20, 2024 · 4 comments
Open

Plugin cannot find .vrapperrc #868

ahelwer opened this issue Feb 20, 2024 · 4 comments

Comments

@ahelwer
Copy link

ahelwer commented Feb 20, 2024

I have a .vrapperrc at /home/ahelwer/.vrapperrc. This is confirmed by running the following in my Java project, mirroring the logic of the plugin itself:

File config = new File(new File(System.getProperty("user.home")), ".vrapperrc");
System.out.println(config.toString());
System.out.println(config.exists());

which outputs

/home/ahelwer/.vrapperrc
true

However despite this, if I go to Help > About Eclipse IDE > Installation Details > Configuration > View Error Log then there are numerous lines saying:

!ENTRY net.sourceforge.vrapper.eclipse 1 0 2024-02-15 09:54:16.619
!MESSAGE No .vrapperrc or _vrapperrc found.

Why could this be? I am running arch linux and installed the plugin from the eclipse marketplace yesterday.

@frankbenoit
Copy link
Contributor

did you find a solution?

@ahelwer
Copy link
Author

ahelwer commented Mar 3, 2024

No

@frankbenoit
Copy link
Contributor

From looking at the code
https://github.com/vrapper/vrapper/blob/master/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/DefaultEditorAdaptor.java#L279
and your trial, it should work.
If there is an override, the logging would be different. As well if there would be a problem when reading the file.

Is perhaps the value of "user.home" different between the program that you start from Eclipse and what Eclipse sees itself?
Please double check in Help > About Eclipse IDE > Installation Details > Configuration

@albertdev
Copy link
Member

My first guess is whether Eclipse is being run in flatpak or snapcraft, at which point those might try to play with the HOME / user.home variable to keep programs from polluting the user home directory with incompatible versions of config files.

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

3 participants