Gitk Error In Startup Script
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or ubuntu gitk error in startup script: unknown color name "lime" posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss
Ubuntu Error In Startup Script: Unknown Color Name "lime"
Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes gitk unknown color name lime ubuntu a minute: Sign up gitk will not start on Mac: unknown color name “lime” up vote 98 down vote favorite 21 I've installed git on a mac via brew install git. When I try to start gitk I get the
Gitk Error In Startup Script: Unknown Color Name "lime" Linux
following error: Error in startup script: unknown color name "lime" (processing "-fore" option) invoked from within "$ctext tag conf m2 -fore [lindex $mergecolors 2]" (procedure "makewindow" line 347) invoked from within "makewindow" (file "/usr/local/bin/gitk" line 12434) It appears that my Mac doesn't have a color named lime. Can I add a lime color to the environment, or is there a better fix? The git version is 2.7.0, and the Mac is running Yosemite 10.10.5 gitk share|improve this question asked Jan 6 gitk lime at 16:27 ReggieB 3,73812225 add a comment| 9 Answers 9 active oldest votes up vote 143 down vote accepted You can check your version of Tcl/Tk by running wish and using the command info patchlevel. It appears that git 2.7.0, Tcl/Tk 8.5.9, and OS X 10.11 El Capitan do not work well together. I solved this problem by doing brew cask install tcl, which installed 8.6.4, and gitk works now. share|improve this answer answered Jan 19 at 20:58 Keith B 2,07641519 1 This is the permanent fix (not a temporary workaround). –wisbucky Jan 26 at 20:33 2 There's something odd using MacPorts here. Tcl version 8.6.4 is installed, but wish is reporting 8.5.9. –edA-qa mort-ora-y Feb 1 at 8:23 3 Once I installed a new Tcl/Tk, I had to do brew install --build-from-source git in order to get git gui to start gitk with the updated Tcl. –lo5an Feb 4 at 1:27 A caveat I've since discovered: if you have tcl 8.6.4 installed, then rbenv has trouble installing new Ruby versions. –Keith B Feb 18 at 15:33 2 I installed Tcl 8.6 without brew, by downloading the ActiveTcl installer package. Gitk works fine now. –Pasi Välkkynen May 23 at 6:09 | show 9 more comments up vote 40 down vote I also found the same problem with exactly the same version of git and OSX. As a temporary workaround I suggest you to do the following
Sign in Pricing Blog Support Search GitHub This repository Watch 5 Star 6 Fork 2 iuscommunity-pkg/git2u Code Issues 0 Pull requests
Brew Cask Install Tcl
0 Projects 0 Pulse Graphs New issue git2u-gitk 2.7.0 fails to
#99ff00
run on CentOS 6 #3 Closed tlusk opened this Issue Feb 19, 2016 · 7 comments Projects None mac tcl yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants tlusk commented Feb 19, 2016 $ gitk Error in startup script: unknown http://stackoverflow.com/questions/34637896/gitk-will-not-start-on-mac-unknown-color-name-lime color name "lime" (processing "-fore" option) invoked from within "$ctext tag conf m2 -fore [lindex $mergecolors 2]" (procedure "makewindow" line 347) invoked from within "makewindow" (file "/usr/bin/gitk" line 12434) Appears to be the version of Tcl installed in CentOS 6 doesn't understand the color lime: http://stackoverflow.com/questions/34637896/gitk-will-not-start-on-mac-unknown-color-name-lime b-harper commented Feb 19, 2016 Hello @tlusk, Thanks for taking the https://github.com/iuscommunity-pkg/git2u/issues/3 time to submit this issue. I am able to confirm this issue and get the same error message. The stock version of gitk does not have this issue. The fix in the stackoverflow article does work. I typically do not recommend those types manually changes, but could tie you over until we get a fix into the repositories. tlusk commented Feb 19, 2016 Thanks @b-harper, I can also confirm the stackoverflow workaround does work. Just wanted to give you guys a heads up so it could be fixed for others than ran into the issue. b-harper commented Feb 19, 2016 oh... man. It is a Friday. Looks like this got patched in 2.7.1 which is currently in the testing repositories. b-harper commented Feb 24, 2016 Looking closer, 2.7.1 did not correct this issue. Version 2.7.2 just got released and I will roll the fix into that release. b-harper added a commit that referenced this issue Feb 24, 2016 b-harper
unknown color name "lime" [Resolved] gitk will not start on Mac: unknown color name "lime" [Resolved] I've installed git on http://blogs.candoerz.com/question/177533/gitk-will-not-start-on-mac-unknown-color-name-quotlimequot.aspx a mac via brew install git. When I try to start gitk https://bugs.launchpad.net/bugs/1357863 I get the following error: Error in startup script: unknown color name "lime" (processing "-fore" option) invoked from within "$ctext tag conf m2 -fore [lindex $mergecolors 2]" (procedure "makewindow" line 347) invoked from within "makewindow" (file "/usr/local/bin/gitk" line 12434) It appears that my Mac doesn't error in have a color named lime. Can I add a lime color to the environment, or is there a better fix? The git version is 2.7.0, and the Mac is running Yosemite 10.10.5 Asked January 19, 2016Tags: gitk Posted Under: Programming Add Comment 0 1 5 1 12 0 Share 262 views ×Sign In or Sign Up error in startup now! 4 Answers I also found the same problem with exactly the same version of git and OSX. As a temporary workaround I suggest you to do the following: cp /usr/local/bin/gitk /usr/local/bin/gitk.bkp vi /usr/local/bin/gitk and replace all occurences of lime to any color you want (I used #99FF00). Here is the vim command: :%s/lime/"#99FF00"/g Answered January 19, 2016 Add Comment 2 1 5 1 0 I had to change the hex code to "green" to get it to work, it failed on line 3400 otherwise. –Corey Jan 8 at 17:10 CanDoerz8 months ago 0 Thank you. That worked a treat. –ReggieB Jan 7 at 8:23 CanDoerz8 months ago 14 14 EditDelete @Konrad Thanks for the help!! Although the answer is correct, please be aware that your command :%s/lime/"#99FF00”/g contains two different quotation marks, which will def. throw an error if copied & pasted. So in order to go through with it, I had to do: cp /usr/local/bin/gitk /usr/local/bin/gitk.bkp vi /usr/local/bin/gitk And inside vim: :%s/lime/"#99FF00"/g Answered Jan
to Milestone git-core (Ubuntu) Edit New Undecided Unassigned Edit You need to log in to change this bug's status. Affecting: git-core (Ubuntu) Filed here by: Ade Malsasa Akbar When: 2014-08-17 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance New Undecided Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description When I start gitk on Ubuntu 12.04 32 bit, I get this standard error on console: Error in startup script: unknown color name "rgba:0000/0000/0000/dddd" (database entry for "-foreground" in widget ".___tk_set_palette.button") invoked from within "$q .___tk_set_palette.$q" (procedure "tk_setPalette" line 82) invoked from within "tk_setPalette background $c selectColor $selc" (procedure "setui" line 8) invoked from within "setui $uicolor" (file "/usr/bin/gitk" line 11529) I have no idea why this happen and how to resolve this problem. See original description Add tags Tag help Ade Malsasa Akbar (rockmania52) on 2014-08-17 description: updated description: updated Ade Malsasa Akbar (rockmania52) wrote on 2014-08-17: #1 This problem was solved a few minutes ago. I followed this bug report on Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1043686. In there, I should do "clearing out the X resources": 1) xrdb -load /dev/null (xrdb is X server resource database utility from manpage) 2) xrdb -query 3) wish (wish is a Tk simple windowing shell application from manpage, probably invoked for testing purpose only here) 4) I should uncheck KDE System Settings -> Application Appearance -> Colors -> Options -> "Apply colors to non-KDE4 applications". Yes I use KDE, and I have not mentioned it before. I am sorry. In KDE 4.10 of mine, I don't need to relogin. Now gitk runs well again. See full activity log To post a comment you must log in. Report a bug This report contains Public information Edit Everyone can see this information. Mark as duplic