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

Vim: missing color scheme "ir_black" #78

Closed
moollaza opened this Issue May 14, 2014 · 20 comments

Comments

Projects
None yet
4 participants
@moollaza

moollaza commented May 14, 2014

Upon using vim for the first time (and each subsequent time) an error is thrown because the .vimrc attempts to use the ir_black color scheme but apparently it's not there.

Here's the error:

Error detected while processing /etc/vimrc:
line   94:
E185: Cannot find color scheme 'ir_black'
Press ENTER or type command to continue
@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok May 14, 2014

Contributor

Could you execute:
ls -al ~/.vim/colors
and then
cat ~/.vim/colors/ir_black.vim

and paste the results?

Contributor

tombujok commented May 14, 2014

Could you execute:
ls -al ~/.vim/colors
and then
cat ~/.vim/colors/ir_black.vim

and paste the results?

@tombujok tombujok added the feedback label May 14, 2014

@markokeeffe

This comment has been minimized.

Show comment
Hide comment
@markokeeffe

markokeeffe May 14, 2014

Hi, I had the same error, looks as though colors aren't being added in the user directory.

{ ~ }  » ls -al ~/.vim/colors
ls: cannot access /cygdrive/c/Users/mokeeffe/.vim/colors: No such file or directory

I commented out this line from /etc/vimrc (at the end) to suppress the error:

colorscheme ir_black

markokeeffe commented May 14, 2014

Hi, I had the same error, looks as though colors aren't being added in the user directory.

{ ~ }  » ls -al ~/.vim/colors
ls: cannot access /cygdrive/c/Users/mokeeffe/.vim/colors: No such file or directory

I commented out this line from /etc/vimrc (at the end) to suppress the error:

colorscheme ir_black
@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok May 14, 2014

Contributor

no, I think it's a different problem.
The ~ evaluates to your windows user's home not cygwin user's home.
when you enter /home/mokeeffe -> what is there in .vim?

Now probably pact install arj does not work for you either?

Contributor

tombujok commented May 14, 2014

no, I think it's a different problem.
The ~ evaluates to your windows user's home not cygwin user's home.
when you enter /home/mokeeffe -> what is there in .vim?

Now probably pact install arj does not work for you either?

@markokeeffe

This comment has been minimized.

Show comment
Hide comment
@markokeeffe

markokeeffe May 14, 2014

I think maybe the directories aren't as you would expect?

{ / }  » cd ~
{ ~ }  » pwd
/cygdrive/c/Users/mokeeffe

{ ~ }  » cd /
{ / }  » pwd
/
{ / }  » ls -la
total 316
drwx------+ 1 Administrators None 0 May 14 09:40 .
drwx------+ 1 Administrators None 0 May 14 09:40 ..
drwx------+ 1 Administrators None 0 May 12 22:26 bin
dr-xr-xr-x  1 mokeeffe       None 0 May 14 09:58 cygdrive
drwx------+ 1 Administrators None 0 May 12 22:27 dev
drwx------+ 1 Administrators None 0 May 14 09:52 etc
drwx------+ 1 Administrators None 0 May 12 22:27 lib
dr-xr-xr-x  9 mokeeffe       None 0 May 14 09:58 proc
drwx------+ 1 Administrators None 0 May 12 22:27 sbin
drwx------+ 1 Administrators None 0 May 12 22:27 tmp
drwx------+ 1 Administrators None 0 May 12 22:27 usr
drwx------+ 1 Administrators None 0 May 14 09:40 var

markokeeffe commented May 14, 2014

I think maybe the directories aren't as you would expect?

{ / }  » cd ~
{ ~ }  » pwd
/cygdrive/c/Users/mokeeffe

{ ~ }  » cd /
{ / }  » pwd
/
{ / }  » ls -la
total 316
drwx------+ 1 Administrators None 0 May 14 09:40 .
drwx------+ 1 Administrators None 0 May 14 09:40 ..
drwx------+ 1 Administrators None 0 May 12 22:26 bin
dr-xr-xr-x  1 mokeeffe       None 0 May 14 09:58 cygdrive
drwx------+ 1 Administrators None 0 May 12 22:27 dev
drwx------+ 1 Administrators None 0 May 14 09:52 etc
drwx------+ 1 Administrators None 0 May 12 22:27 lib
dr-xr-xr-x  9 mokeeffe       None 0 May 14 09:58 proc
drwx------+ 1 Administrators None 0 May 12 22:27 sbin
drwx------+ 1 Administrators None 0 May 12 22:27 tmp
drwx------+ 1 Administrators None 0 May 12 22:27 usr
drwx------+ 1 Administrators None 0 May 14 09:40 var
@markokeeffe

This comment has been minimized.

Show comment
Hide comment
@markokeeffe

markokeeffe May 14, 2014

Pact works though!

{ / }  » pact install arj
/usr/local/bin/pact: line 9: /cygdrive/c/Users/mokeeffe/.pact/pact.repo: No such file or directory
WARNINIG! ~/.pact/pact.repo does not contains $PACT_REPO mirror address. Using the default one!
Working directory is /setup
Mirror is http://mirrors.kernel.org/sourceware/cygwin/
--2014-05-14 09:59:22--  http://mirrors.kernel.org/sourceware/cygwin//x86/setup.bz2
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.20.135, 149.20.4.71, 2001:4f8:8:10:0:1994:3:14, ...
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.20.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 433279 (423K) [application/x-bzip2]
Saving to: ‘setup.bz2’

100%[=========================================================================>] 433,279      310KB/s   in 1.4s

2014-05-14 09:59:23 (310 KB/s) - ‘setup.bz2’ saved [433279/433279]

Updated setup.ini

Installing arj
Found package arj
--2014-05-14 09:59:24--  http://mirrors.kernel.org/sourceware/cygwin//x86/release/arj/arj-3.10.22-1.tar.bz2
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.20.135, 149.20.4.71, 2001:4f8:8:10:0:1994:3:14, ...
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.20.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 189944 (185K) [application/x-bzip2]
Saving to: ‘arj-3.10.22-1.tar.bz2’

100%[=========================================================================>] 189,944      206KB/s   in 0.9s

2014-05-14 09:59:25 (206 KB/s) - ‘arj-3.10.22-1.tar.bz2’ saved [189944/189944]

Unpacking...
Package arj installed

markokeeffe commented May 14, 2014

Pact works though!

{ / }  » pact install arj
/usr/local/bin/pact: line 9: /cygdrive/c/Users/mokeeffe/.pact/pact.repo: No such file or directory
WARNINIG! ~/.pact/pact.repo does not contains $PACT_REPO mirror address. Using the default one!
Working directory is /setup
Mirror is http://mirrors.kernel.org/sourceware/cygwin/
--2014-05-14 09:59:22--  http://mirrors.kernel.org/sourceware/cygwin//x86/setup.bz2
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.20.135, 149.20.4.71, 2001:4f8:8:10:0:1994:3:14, ...
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.20.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 433279 (423K) [application/x-bzip2]
Saving to: ‘setup.bz2’

100%[=========================================================================>] 433,279      310KB/s   in 1.4s

2014-05-14 09:59:23 (310 KB/s) - ‘setup.bz2’ saved [433279/433279]

Updated setup.ini

Installing arj
Found package arj
--2014-05-14 09:59:24--  http://mirrors.kernel.org/sourceware/cygwin//x86/release/arj/arj-3.10.22-1.tar.bz2
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.20.135, 149.20.4.71, 2001:4f8:8:10:0:1994:3:14, ...
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.20.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 189944 (185K) [application/x-bzip2]
Saving to: ‘arj-3.10.22-1.tar.bz2’

100%[=========================================================================>] 189,944      206KB/s   in 0.9s

2014-05-14 09:59:25 (206 KB/s) - ‘arj-3.10.22-1.tar.bz2’ saved [189944/189944]

Unpacking...
Package arj installed
@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok May 14, 2014

Contributor

Yes, it works, but you see there's a warning: /usr/local/bin/pact: line 9: /cygdrive/c/Users/mokeeffe/.pact/pact.repo: No such file or directory

The problem is that ~ evaluates to your window's home and not your cygwin's home: which is /home/mokeeffe

Could you go to this folder: /home/mokeeffe

and do ls -al?

Contributor

tombujok commented May 14, 2014

Yes, it works, but you see there's a warning: /usr/local/bin/pact: line 9: /cygdrive/c/Users/mokeeffe/.pact/pact.repo: No such file or directory

The problem is that ~ evaluates to your window's home and not your cygwin's home: which is /home/mokeeffe

Could you go to this folder: /home/mokeeffe

and do ls -al?

@markokeeffe

This comment has been minimized.

Show comment
Hide comment
@markokeeffe

markokeeffe May 14, 2014

{ / }  » cd /home
-bash: cd: /home: No such file or directory

markokeeffe commented May 14, 2014

{ / }  » cd /home
-bash: cd: /home: No such file or directory
@markokeeffe

This comment has been minimized.

Show comment
Hide comment
@markokeeffe

markokeeffe May 14, 2014

Perhaps this is due to an existing Cygwin install? I have Git Bash installed.

markokeeffe commented May 14, 2014

Perhaps this is due to an existing Cygwin install? I have Git Bash installed.

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok May 14, 2014

Contributor

That's the problem... no /home folder.... don't really know why

When you open ~, do you see .babunrc or .zshrc file?

Contributor

tombujok commented May 14, 2014

That's the problem... no /home folder.... don't really know why

When you open ~, do you see .babunrc or .zshrc file?

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok May 14, 2014

Contributor

Did you have a previous Cygwin installation? maybe that's the problem.... the .pact folder or .babunrc file may be in the old installation.,.. could you check there?

Contributor

tombujok commented May 14, 2014

Did you have a previous Cygwin installation? maybe that's the problem.... the .pact folder or .babunrc file may be in the old installation.,.. could you check there?

@markokeeffe

This comment has been minimized.

Show comment
Hide comment
@markokeeffe

markokeeffe May 14, 2014

This must be due to existing Cygwin.

{ c }  » find -name .babunrc
./Users/mokeeffe/.babun/cygwin/usr/local/etc/babun/home/core/.babunrc
./Users/mokeeffe/.babun/cygwin/usr/local/etc/babun/source/babun-core/plugins/core/src/.babunrc

{ c }  » find -name .pact
./Users/mokeeffe/.babun/cygwin/usr/local/etc/babun/home/pact/.pact

{ c }  » find -name .zshrc
./Users/mokeeffe/.babun/cygwin/usr/local/etc/babun/home/.zshrc

markokeeffe commented May 14, 2014

This must be due to existing Cygwin.

{ c }  » find -name .babunrc
./Users/mokeeffe/.babun/cygwin/usr/local/etc/babun/home/core/.babunrc
./Users/mokeeffe/.babun/cygwin/usr/local/etc/babun/source/babun-core/plugins/core/src/.babunrc

{ c }  » find -name .pact
./Users/mokeeffe/.babun/cygwin/usr/local/etc/babun/home/pact/.pact

{ c }  » find -name .zshrc
./Users/mokeeffe/.babun/cygwin/usr/local/etc/babun/home/.zshrc
@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok May 14, 2014

Contributor

Are you using windows XP?

Contributor

tombujok commented May 14, 2014

Are you using windows XP?

@markokeeffe

This comment has been minimized.

Show comment
Hide comment
@markokeeffe

markokeeffe May 14, 2014

Windows 7 64bit

markokeeffe commented May 14, 2014

Windows 7 64bit

@moollaza

This comment has been minimized.

Show comment
Hide comment
@moollaza

moollaza May 14, 2014

@tombujok my problems are the same as @markokeeffe's. I have no /home/ and ~ evaluates to my Windows user dir, which is where .babun is located.

I previously had installed Cygwin, but I removed it long ago and I can't see any lingering files/folders from Cygwin.

I'm using Windows 8.1 64bit

moollaza commented May 14, 2014

@tombujok my problems are the same as @markokeeffe's. I have no /home/ and ~ evaluates to my Windows user dir, which is where .babun is located.

I previously had installed Cygwin, but I removed it long ago and I can't see any lingering files/folders from Cygwin.

I'm using Windows 8.1 64bit

@prabirshrestha

This comment has been minimized.

Show comment
Hide comment
@prabirshrestha

prabirshrestha May 17, 2014

Contributor

Had the same problem. I had cygwin installed. I also had HOME environment variable declared. Removing that and installing did work for me. No more /usr/local/bin/pact: line 9 errors 😃 (I also went to the registry and deleted all references of cygwin and rebooted my machine, but I think removing HOME env is more then enough.)

Contributor

prabirshrestha commented May 17, 2014

Had the same problem. I had cygwin installed. I also had HOME environment variable declared. Removing that and installing did work for me. No more /usr/local/bin/pact: line 9 errors 😃 (I also went to the registry and deleted all references of cygwin and rebooted my machine, but I think removing HOME env is more then enough.)

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok May 17, 2014

Contributor

So removing the HOME variable removed the pact error?
On May 17, 2014 9:13 AM, "Prabir Shrestha" notifications@github.com wrote:

Had the same problem. I had cygwin installed. I also had HOME environment
variable declared. Removing that and installing did work for me. No more /usr/local/bin/pact:
line 9 errors [image: 😃](I also went to the registry and deleted
all references of cygwin and rebooted my machine, but I think removing HOME
env is more then enough.)


Reply to this email directly or view it on GitHubhttps://github.com//issues/78#issuecomment-43399934
.

Contributor

tombujok commented May 17, 2014

So removing the HOME variable removed the pact error?
On May 17, 2014 9:13 AM, "Prabir Shrestha" notifications@github.com wrote:

Had the same problem. I had cygwin installed. I also had HOME environment
variable declared. Removing that and installing did work for me. No more /usr/local/bin/pact:
line 9 errors [image: 😃](I also went to the registry and deleted
all references of cygwin and rebooted my machine, but I think removing HOME
env is more then enough.)


Reply to this email directly or view it on GitHubhttps://github.com//issues/78#issuecomment-43399934
.

@prabirshrestha

This comment has been minimized.

Show comment
Hide comment
@prabirshrestha

prabirshrestha May 17, 2014

Contributor

after removing the HOME env var, I deleted and reinstalled babun too which removed the pact error.

Contributor

prabirshrestha commented May 17, 2014

after removing the HOME env var, I deleted and reinstalled babun too which removed the pact error.

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok May 17, 2014

Contributor

Perfect. I will have some more questions as you are the first person that
fixed this problem! :) Thanks!

So the HOME variable was set in Windows? It was a win env variable?

So as I assume you did not have to remove the registry entries, without the
HOME variable and after the reinstallation everything worked well?

Thanks!
On May 17, 2014 9:54 AM, "Prabir Shrestha" notifications@github.com wrote:

after removing the HOME env var, I deleted and reinstalled babun too which
removed the pact error.


Reply to this email directly or view it on GitHubhttps://github.com//issues/78#issuecomment-43400625
.

Contributor

tombujok commented May 17, 2014

Perfect. I will have some more questions as you are the first person that
fixed this problem! :) Thanks!

So the HOME variable was set in Windows? It was a win env variable?

So as I assume you did not have to remove the registry entries, without the
HOME variable and after the reinstallation everything worked well?

Thanks!
On May 17, 2014 9:54 AM, "Prabir Shrestha" notifications@github.com wrote:

after removing the HOME env var, I deleted and reinstalled babun too which
removed the pact error.


Reply to this email directly or view it on GitHubhttps://github.com//issues/78#issuecomment-43400625
.

@prabirshrestha

This comment has been minimized.

Show comment
Hide comment
@prabirshrestha

prabirshrestha May 17, 2014

Contributor

HOME variable was set in Windows.

I assume registry entries do not have to be removed. Some one else with pact error should trying it first without removing registry to see if that is the only fix. In my case I had removed all registries so don't know if it is the combination of it (I do believe the .babun folder needs to be deleted from user profile and installed again though in order to get the /home/username folder.)

Contributor

prabirshrestha commented May 17, 2014

HOME variable was set in Windows.

I assume registry entries do not have to be removed. Some one else with pact error should trying it first without removing registry to see if that is the only fix. In my case I had removed all registries so don't know if it is the combination of it (I do believe the .babun folder needs to be deleted from user profile and installed again though in order to get the /home/username folder.)

@tombujok tombujok referenced this issue May 19, 2014

Closed

SSH error #121

@tombujok

This comment has been minimized.

Show comment
Hide comment
@tombujok

tombujok May 23, 2014

Contributor

Ah, the fix was there for the very beginning...!!!
Just execute "babun install" - and everything will be initialized properly.
Newest version will not have that bug. Thanks for feedback!

Contributor

tombujok commented May 23, 2014

Ah, the fix was there for the very beginning...!!!
Just execute "babun install" - and everything will be initialized properly.
Newest version will not have that bug. Thanks for feedback!

@tombujok tombujok closed this May 23, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment