Colorsublime / Colorsublime-Plugin

Plugin for Color Sublime
MIT License
540 stars 58 forks source link

Windows Weirdness #6

Closed Xunnamius closed 10 years ago

Xunnamius commented 10 years ago

First of all: awesome plugin. Just a small problem. I dev on the dreaded Windows, and when navigating to the "Install Theme" option, interesting things occur.

If it's the first time the plugin is run, the pane will close instantly and the theme will change instantly to 3024 (Day), since it is the first theme in the list.

If this is a subsequent call to "Install Theme," it works as advertised until you select with the arrow keys an option that hasn't been previewed previously. Then it will once again close the pane and the theme will change as if installed.

This makes using the plugin very cumbersome.

What seems to be happening is the Windows command prompt pops up when a theme that has not been previously previewed is selected via the arrow keys, and the cmd popup is making Sublime lose focus. The lost focus causes Sublime's command window to close, which breaks the whole "scroll to preview" functionality and results in the "preview" sticking around as if it were installed, confusing the user.

After going through the process several dozen times, I did finally land on Acai, a nice alternative theme to my current favorite, Sunburst. Thanks for the plugin!

blopker commented 10 years ago

Glad you like the plugin!

I haven't heard of this issue before. I'll shoot in the dark to troubleshoot. Do you have Cygwin installed? The plugin tries to use curl, then wget, then the slower, but platform independant, urllib to download themes. Normally Windows does not have curl or wget so 99.9% of the time it uses urllib.

I'm wondering if you have wget or curl installed and that's what's cracking open the terminal window. Try running wget or curl in your terminal to verify.

Xunnamius commented 10 years ago

I do most of my Real Stuff (tm) in my Debian VM, though I do believe I installed Cygwin for Windows a while back. Running curl in the command prompt does tell me it exists and is in my path:

curl: try 'curl --help' or 'curl --manual' for more information

Any logs or the like that you may need can be made available upon request.

blopker commented 10 years ago

Yep, there's the issue. I'll put together a fix this soon. No need for logs.

In the meantime if you remove curl from your path or uninstall Cygwin things should work normally.

On a personal note, I used to run Linux in a VM from Windows too. Finally set up dual boot and never looked back :)