Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Invalid image type ‘xpm’ on systems without X server installed #53
Comments
I didn't mean the variable's value. It's a function that's supposed to tell me what kind of display you're running in, so you just call it once, it does not matter where. Of course looking at it's doc string I am using it wrong anyway. What's the output of |
slapierre
commented
Sep 25, 2017
•
|
I don't think you are using window-system in the wrong way . I get nil in both cases for CentOs:
Edit: This is interesting: I also get a "nil" / "nil" when I |
marktran
commented
Sep 26, 2017
|
I'm seeing this error as well. I'm running
|
|
Ah, I think I know what's going on. It's not about the simple icon fallback, since your emacs doesnt have support for creating images treemacs is not even loaded properly since it runs into errors when creating icons when it's first loading. I need to create a means to disable the creation of icons at load time, and force the simple fallback. I'll get back to you when I've come up with something. |
agsdot
commented
Sep 27, 2017
|
|
slapierre
commented
Sep 27, 2017
•
|
It is my understanding as well that you'd need to add a couple of |
|
Pretty much, yes. Catch it early enough, and disable all the parts that create and use image icons. I've tried doing just that, and it's going well. Now I need to make sure treemacs can actually detect the lack of a graphical environment. AFAIK I don't have the means the test this myself, so I need your help here: What happens when you run |
marktran
commented
Sep 27, 2017
|
@Alexander-Miller I get the following error:
|
marktran
commented
Sep 27, 2017
|
Backtrace:
|
|
Excellent. Shouldn't be long before, I'm done with this now. |
|
Volunteers wanted! I've pushed a possible fix to the If it works, great! If it doesn't let me know the value of |
marktran
commented
Sep 27, 2017
|
@Alexander-Miller It works! Looking forward to using this package. Thanks for the fix |
slapierre
commented
Sep 27, 2017
|
@Alexander-Miller I second the motion: it works! |
|
All right, fix is on master. Issue stays open for now, I need to change the readme, and will try to adapt the code so that you can force the no-image fallback by manually setting treemacs-no-images to t. |
slapierre commentedSep 25, 2017
•
edited
When loading treemacs on a server where X is not installed, I get an "invalid image type" error that prevents treemacs from loading.
The "icon fallback" mentionned in this Reddit conversation works fine on Windows and "GUI Linux" when I start Emacs with the "-nw" option, however the issue I am facing occurs on CentOs boxes that don't have X installed and where I had to build Emacs with "--without-x", "--with-png=no", etc.
Here are the two errors I get, to get passed the first xpm error I tweaked the code a little bit and replaced
create-imageby aconcatin the 3 defconst (treemacs-icon-tag-leaf,treemacs-icon-tag-node-closedandtreemacs-icon-tag-node-open) in treemacs-tags.el:Here is the value of
window-systemvariable:Here is how I built Emacs, it has a dependency on ncurse: