Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
I'll need that information to be able to diagnose the issue. As it is, I
have no insight into what could be going wrong, and would have to run tests
here.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sat, Nov 14, 2015 at 10:49 PM, Wesly Chen  wrote:

> All the diff upload by "rbt post" doesn't show syntax highlight in Diff
> Viewer. However, "syntax highlighting" with attached file (java), just not
> in Diff Viewer.
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:
>>
>> Can you check if there's anything in the logs?
>>
>> Do you have a file you can send that reproduces the problem?
>>
>> Christian
>>
>> --
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  wrote:
>>
>>> Here is some python package information
>>>
>>> #  ls -1 /usr/lib/python2.6/site-packages/
>>>
>>> argparse-1.2.1-py2.6.egg-info
>>> argparse.py
>>> argparse.pyc
>>> argparse.pyo
>>> asciidocapi.py
>>> asciidocapi.pyc
>>> asciidocapi.pyo
>>> dateutil
>>> dbus
>>> dbus_bindings.py
>>> dbus_bindings.pyc
>>> dbus_bindings.pyo
>>> distribute-0.6.10-py2.6.egg-info
>>> django
>>> Django-1.4.21-py2.6.egg-info
>>> Django-1.6.11-py2.6.egg
>>> django_evolution
>>> django_evolution-0.6.9-py2.6.egg-info
>>> django_evolution-0.7.5-py2.6.egg
>>> django_haystack-2.4.0-py2.6.egg
>>> django_pipeline-1.2.24-py2.6.egg-info
>>> django_pipeline-1.3.27-py2.6.egg
>>> djblets
>>> Djblets-0.7.30-py2.6.egg-info
>>> Djblets-0.8.22-py2.6.egg
>>> docutils
>>> docutils-0.6-py2.6.egg-info
>>> easy-install.pth
>>> easy_install.py
>>> easy_install.pyc
>>> easy_install.pyo
>>> ecdsa-0.13-py2.6.egg
>>> feedparser-5.1.2-py2.6.egg-info
>>> feedparser.py
>>> feedparser.pyc
>>> feedparser.pyo
>>> flup
>>> flup-1.0.2-py2.6.egg-info
>>> futures-3.0.3-py2.6.egg
>>> iniparse
>>> iniparse-0.3.1-py2.6.egg-info
>>> libproxy.py
>>> libproxy.pyc
>>> libproxy.pyo
>>> markdown
>>> Markdown-2.0.1-py2.6.egg-info
>>> Markdown-2.4.1-py2.6.egg
>>> memcache.py
>>> memcache.pyc
>>> memcache.pyo
>>> mimeparse-0.1.3-py2.6.egg
>>> mimeparse.py
>>> mimeparse.pyc
>>> mimeparse.pyo
>>> nose
>>> nose-0.10.4-py2.6.egg-info
>>> odict
>>> odict-1.5.0-py2.6.egg-info
>>> paramiko
>>> paramiko-1.15.3-py2.6.egg
>>> paramiko-1.7.5-py2.6.egg-info
>>> pillowfight-0.2-py2.6.egg
>>> pipeline
>>> pkg_resources.py
>>> pkg_resources.pyc
>>> pkg_resources.pyo
>>> ply
>>> ply-3.4-py2.6.egg-info
>>> pycrypto-2.6.1-py2.6-linux-x86_64.egg
>>> pygments
>>> Pygments-1.1.1-py2.6.egg-info
>>> Pygments-2.0.2-py2.6.egg
>>> python_dateutil-1.4.1-py2.6.egg-info
>>> python_dateutil-1.5-py2.6.egg
>>> python_memcached-1.43-py2.6.egg-info
>>> python_mimeparse-0.1.4-py2.6.egg-info
>>> pytz
>>> pytz-2010h-py2.6.egg-info
>>> RBTools-0.8alpha0.dev-py2.6.egg
>>> recaptcha
>>> recaptcha_client-1.0.6-py2.6.egg-info
>>> recaptcha_client-1.0.6-py2.6-nspkg.pth
>>> reviewboard
>>> ReviewBoard-1.7.27-py2.6.egg-info
>>> ReviewBoard-2.0.20-py2.6.egg
>>> roman.py
>>> roman.pyc
>>> roman.pyo
>>> rpmUtils
>>> setuptools
>>> setuptools-0.6c11-py2.6.egg-info
>>> setuptools.pth
>>> site.py
>>> site.pyc
>>> site.pyo
>>> six-1.9.0-py2.6.egg
>>> slimit
>>> slimit-0.8.1-py2.6.egg-info
>>> sos
>>> urlgrabber
>>> urlgrabber-3.9.1-py2.6.egg-info
>>> webtests
>>> Whoosh-2.7.0-py2.6.egg
>>> yum
>>> yumutils
>>>
>>>
>>> Wesly Chen於 2015年11月14日星期六 UTC-8下午3時22分01秒寫道:
>>>
 1. System setting => Diff Viewer settings => Show syntax highlighting
  is checked.
 2. Account settings " Enable syntax highlighting in the diff viewer"
 is checked.

 My system is CentOS 6.5 64-bit with MySQL 5.1.

 Any information needed for this issue?


 --
>>> Supercharge your Review Board with Power Pack:
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons:
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to reviewboard...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
Can you check if there's anything in the logs?

Do you have a file you can send that reproduces the problem?

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  wrote:

> Here is some python package information
>
> #  ls -1 /usr/lib/python2.6/site-packages/
>
> argparse-1.2.1-py2.6.egg-info
> argparse.py
> argparse.pyc
> argparse.pyo
> asciidocapi.py
> asciidocapi.pyc
> asciidocapi.pyo
> dateutil
> dbus
> dbus_bindings.py
> dbus_bindings.pyc
> dbus_bindings.pyo
> distribute-0.6.10-py2.6.egg-info
> django
> Django-1.4.21-py2.6.egg-info
> Django-1.6.11-py2.6.egg
> django_evolution
> django_evolution-0.6.9-py2.6.egg-info
> django_evolution-0.7.5-py2.6.egg
> django_haystack-2.4.0-py2.6.egg
> django_pipeline-1.2.24-py2.6.egg-info
> django_pipeline-1.3.27-py2.6.egg
> djblets
> Djblets-0.7.30-py2.6.egg-info
> Djblets-0.8.22-py2.6.egg
> docutils
> docutils-0.6-py2.6.egg-info
> easy-install.pth
> easy_install.py
> easy_install.pyc
> easy_install.pyo
> ecdsa-0.13-py2.6.egg
> feedparser-5.1.2-py2.6.egg-info
> feedparser.py
> feedparser.pyc
> feedparser.pyo
> flup
> flup-1.0.2-py2.6.egg-info
> futures-3.0.3-py2.6.egg
> iniparse
> iniparse-0.3.1-py2.6.egg-info
> libproxy.py
> libproxy.pyc
> libproxy.pyo
> markdown
> Markdown-2.0.1-py2.6.egg-info
> Markdown-2.4.1-py2.6.egg
> memcache.py
> memcache.pyc
> memcache.pyo
> mimeparse-0.1.3-py2.6.egg
> mimeparse.py
> mimeparse.pyc
> mimeparse.pyo
> nose
> nose-0.10.4-py2.6.egg-info
> odict
> odict-1.5.0-py2.6.egg-info
> paramiko
> paramiko-1.15.3-py2.6.egg
> paramiko-1.7.5-py2.6.egg-info
> pillowfight-0.2-py2.6.egg
> pipeline
> pkg_resources.py
> pkg_resources.pyc
> pkg_resources.pyo
> ply
> ply-3.4-py2.6.egg-info
> pycrypto-2.6.1-py2.6-linux-x86_64.egg
> pygments
> Pygments-1.1.1-py2.6.egg-info
> Pygments-2.0.2-py2.6.egg
> python_dateutil-1.4.1-py2.6.egg-info
> python_dateutil-1.5-py2.6.egg
> python_memcached-1.43-py2.6.egg-info
> python_mimeparse-0.1.4-py2.6.egg-info
> pytz
> pytz-2010h-py2.6.egg-info
> RBTools-0.8alpha0.dev-py2.6.egg
> recaptcha
> recaptcha_client-1.0.6-py2.6.egg-info
> recaptcha_client-1.0.6-py2.6-nspkg.pth
> reviewboard
> ReviewBoard-1.7.27-py2.6.egg-info
> ReviewBoard-2.0.20-py2.6.egg
> roman.py
> roman.pyc
> roman.pyo
> rpmUtils
> setuptools
> setuptools-0.6c11-py2.6.egg-info
> setuptools.pth
> site.py
> site.pyc
> site.pyo
> six-1.9.0-py2.6.egg
> slimit
> slimit-0.8.1-py2.6.egg-info
> sos
> urlgrabber
> urlgrabber-3.9.1-py2.6.egg-info
> webtests
> Whoosh-2.7.0-py2.6.egg
> yum
> yumutils
>
>
> Wesly Chen於 2015年11月14日星期六 UTC-8下午3時22分01秒寫道:
>
>> 1. System setting => Diff Viewer settings => Show syntax highlighting
>>  is checked.
>> 2. Account settings " Enable syntax highlighting in the diff viewer" is
>> checked.
>>
>> My system is CentOS 6.5 64-bit with MySQL 5.1.
>>
>> Any information needed for this issue?
>>
>>
>> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
All the diff upload by "rbt post" doesn't show syntax highlight in Diff 
Viewer. However, "syntax highlighting" with attached file (java), just not 
in Diff Viewer.

Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:
>
> Can you check if there's anything in the logs?
>
> Do you have a file you can send that reproduces the problem?
>
> Christian
>
> -- 
> Christian Hammond - chri...@beanbaginc.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  > wrote:
>
>> Here is some python package information
>>
>> #  ls -1 /usr/lib/python2.6/site-packages/
>>
>> argparse-1.2.1-py2.6.egg-info
>> argparse.py
>> argparse.pyc
>> argparse.pyo
>> asciidocapi.py
>> asciidocapi.pyc
>> asciidocapi.pyo
>> dateutil
>> dbus
>> dbus_bindings.py
>> dbus_bindings.pyc
>> dbus_bindings.pyo
>> distribute-0.6.10-py2.6.egg-info
>> django
>> Django-1.4.21-py2.6.egg-info
>> Django-1.6.11-py2.6.egg
>> django_evolution
>> django_evolution-0.6.9-py2.6.egg-info
>> django_evolution-0.7.5-py2.6.egg
>> django_haystack-2.4.0-py2.6.egg
>> django_pipeline-1.2.24-py2.6.egg-info
>> django_pipeline-1.3.27-py2.6.egg
>> djblets
>> Djblets-0.7.30-py2.6.egg-info
>> Djblets-0.8.22-py2.6.egg
>> docutils
>> docutils-0.6-py2.6.egg-info
>> easy-install.pth
>> easy_install.py
>> easy_install.pyc
>> easy_install.pyo
>> ecdsa-0.13-py2.6.egg
>> feedparser-5.1.2-py2.6.egg-info
>> feedparser.py
>> feedparser.pyc
>> feedparser.pyo
>> flup
>> flup-1.0.2-py2.6.egg-info
>> futures-3.0.3-py2.6.egg
>> iniparse
>> iniparse-0.3.1-py2.6.egg-info
>> libproxy.py
>> libproxy.pyc
>> libproxy.pyo
>> markdown
>> Markdown-2.0.1-py2.6.egg-info
>> Markdown-2.4.1-py2.6.egg
>> memcache.py
>> memcache.pyc
>> memcache.pyo
>> mimeparse-0.1.3-py2.6.egg
>> mimeparse.py
>> mimeparse.pyc
>> mimeparse.pyo
>> nose
>> nose-0.10.4-py2.6.egg-info
>> odict
>> odict-1.5.0-py2.6.egg-info
>> paramiko
>> paramiko-1.15.3-py2.6.egg
>> paramiko-1.7.5-py2.6.egg-info
>> pillowfight-0.2-py2.6.egg
>> pipeline
>> pkg_resources.py
>> pkg_resources.pyc
>> pkg_resources.pyo
>> ply
>> ply-3.4-py2.6.egg-info
>> pycrypto-2.6.1-py2.6-linux-x86_64.egg
>> pygments
>> Pygments-1.1.1-py2.6.egg-info
>> Pygments-2.0.2-py2.6.egg
>> python_dateutil-1.4.1-py2.6.egg-info
>> python_dateutil-1.5-py2.6.egg
>> python_memcached-1.43-py2.6.egg-info
>> python_mimeparse-0.1.4-py2.6.egg-info
>> pytz
>> pytz-2010h-py2.6.egg-info
>> RBTools-0.8alpha0.dev-py2.6.egg
>> recaptcha
>> recaptcha_client-1.0.6-py2.6.egg-info
>> recaptcha_client-1.0.6-py2.6-nspkg.pth
>> reviewboard
>> ReviewBoard-1.7.27-py2.6.egg-info
>> ReviewBoard-2.0.20-py2.6.egg
>> roman.py
>> roman.pyc
>> roman.pyo
>> rpmUtils
>> setuptools
>> setuptools-0.6c11-py2.6.egg-info
>> setuptools.pth
>> site.py
>> site.pyc
>> site.pyo
>> six-1.9.0-py2.6.egg
>> slimit
>> slimit-0.8.1-py2.6.egg-info
>> sos
>> urlgrabber
>> urlgrabber-3.9.1-py2.6.egg-info
>> webtests
>> Whoosh-2.7.0-py2.6.egg
>> yum
>> yumutils
>>
>>
>> Wesly Chen於 2015年11月14日星期六 UTC-8下午3時22分01秒寫道:
>>
>>> 1. System setting => Diff Viewer settings => Show syntax highlighting 
>>>  is checked.
>>> 2. Account settings " Enable syntax highlighting in the diff viewer" is 
>>> checked.
>>>
>>> My system is CentOS 6.5 64-bit with MySQL 5.1.
>>>
>>> Any information needed for this issue?
>>>
>>>
>>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
I uploaded portion of the java file as the screenshot show. 
We use CVS as repository.

Christian Hammond於 2015年11月14日星期六 UTC-8下午10時50分48秒寫道:
>
> I'll need that information to be able to diagnose the issue. As it is, I 
> have no insight into what could be going wrong, and would have to run tests 
> here.
>
> Christian
>
> -- 
> Christian Hammond - chri...@beanbaginc.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Sat, Nov 14, 2015 at 10:49 PM, Wesly Chen  > wrote:
>
>> All the diff upload by "rbt post" doesn't show syntax highlight in Diff 
>> Viewer. However, "syntax highlighting" with attached file (java), just not 
>> in Diff Viewer.
>>
>> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:
>>>
>>> Can you check if there's anything in the logs?
>>>
>>> Do you have a file you can send that reproduces the problem?
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond - chri...@beanbaginc.com
>>> Review Board - https://www.reviewboard.org
>>> Beanbag, Inc. - https://www.beanbaginc.com
>>>
>>> On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  wrote:
>>>
 Here is some python package information

 #  ls -1 /usr/lib/python2.6/site-packages/

 argparse-1.2.1-py2.6.egg-info
 argparse.py
 argparse.pyc
 argparse.pyo
 asciidocapi.py
 asciidocapi.pyc
 asciidocapi.pyo
 dateutil
 dbus
 dbus_bindings.py
 dbus_bindings.pyc
 dbus_bindings.pyo
 distribute-0.6.10-py2.6.egg-info
 django
 Django-1.4.21-py2.6.egg-info
 Django-1.6.11-py2.6.egg
 django_evolution
 django_evolution-0.6.9-py2.6.egg-info
 django_evolution-0.7.5-py2.6.egg
 django_haystack-2.4.0-py2.6.egg
 django_pipeline-1.2.24-py2.6.egg-info
 django_pipeline-1.3.27-py2.6.egg
 djblets
 Djblets-0.7.30-py2.6.egg-info
 Djblets-0.8.22-py2.6.egg
 docutils
 docutils-0.6-py2.6.egg-info
 easy-install.pth
 easy_install.py
 easy_install.pyc
 easy_install.pyo
 ecdsa-0.13-py2.6.egg
 feedparser-5.1.2-py2.6.egg-info
 feedparser.py
 feedparser.pyc
 feedparser.pyo
 flup
 flup-1.0.2-py2.6.egg-info
 futures-3.0.3-py2.6.egg
 iniparse
 iniparse-0.3.1-py2.6.egg-info
 libproxy.py
 libproxy.pyc
 libproxy.pyo
 markdown
 Markdown-2.0.1-py2.6.egg-info
 Markdown-2.4.1-py2.6.egg
 memcache.py
 memcache.pyc
 memcache.pyo
 mimeparse-0.1.3-py2.6.egg
 mimeparse.py
 mimeparse.pyc
 mimeparse.pyo
 nose
 nose-0.10.4-py2.6.egg-info
 odict
 odict-1.5.0-py2.6.egg-info
 paramiko
 paramiko-1.15.3-py2.6.egg
 paramiko-1.7.5-py2.6.egg-info
 pillowfight-0.2-py2.6.egg
 pipeline
 pkg_resources.py
 pkg_resources.pyc
 pkg_resources.pyo
 ply
 ply-3.4-py2.6.egg-info
 pycrypto-2.6.1-py2.6-linux-x86_64.egg
 pygments
 Pygments-1.1.1-py2.6.egg-info
 Pygments-2.0.2-py2.6.egg
 python_dateutil-1.4.1-py2.6.egg-info
 python_dateutil-1.5-py2.6.egg
 python_memcached-1.43-py2.6.egg-info
 python_mimeparse-0.1.4-py2.6.egg-info
 pytz
 pytz-2010h-py2.6.egg-info
 RBTools-0.8alpha0.dev-py2.6.egg
 recaptcha
 recaptcha_client-1.0.6-py2.6.egg-info
 recaptcha_client-1.0.6-py2.6-nspkg.pth
 reviewboard
 ReviewBoard-1.7.27-py2.6.egg-info
 ReviewBoard-2.0.20-py2.6.egg
 roman.py
 roman.pyc
 roman.pyo
 rpmUtils
 setuptools
 setuptools-0.6c11-py2.6.egg-info
 setuptools.pth
 site.py
 site.pyc
 site.pyo
 six-1.9.0-py2.6.egg
 slimit
 slimit-0.8.1-py2.6.egg-info
 sos
 urlgrabber
 urlgrabber-3.9.1-py2.6.egg-info
 webtests
 Whoosh-2.7.0-py2.6.egg
 yum
 yumutils


 Wesly Chen於 2015年11月14日星期六 UTC-8下午3時22分01秒寫道:

> 1. System setting => Diff Viewer settings => Show syntax highlighting 
>  is checked.
> 2. Account settings " Enable syntax highlighting in the diff viewer" 
> is checked.
>
> My system is CentOS 6.5 64-bit with MySQL 5.1.
>
> Any information needed for this issue?
>
>
> -- 
 Supercharge your Review Board with Power Pack: 
 https://www.reviewboard.org/powerpack/
 Want us to host Review Board for you? Check out RBCommons: 
 https://rbcommons.com/
 Happy user? Let us know! https://www.reviewboard.org/users/
 --- 
 You received this message because you are subscribed to the Google 
 Groups "reviewboard" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to reviewboard...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! 

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
It's in reviewboard/diffviewer/diffutils.py. Look for apply_pygments.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sat, Nov 14, 2015 at 11:35 PM, Wesly Chen  wrote:

> Could you point out which python files under
> /usr/lib/python2.6/site-packages/ReviewBoard-2.0.20-py2.6.egg/reviewboard/
> is showing the syntax highlighting in Diff Viewer?
>
> Thanks,
>
> Wesly
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午11時09分49秒寫道:
>>
>> There's no file or configuration to check. This stuff is built to work in
>> Review Board. The only option I can offer right now is to check a file
>> that's having problems on our end to see if it's a regression in Review
>> Board.
>>
>> Christian
>>
>> --
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> On Sat, Nov 14, 2015 at 11:08 PM, Wesly Chen  wrote:
>>
>>> Here is the python modules on the system. Which file I should check for
>>> the configuration? I'm not familiar with python.
>>>
>>> # ls -lg /usr/lib/python2.6/site-packages/*ygment*
>>> /usr/lib/python2.6/site-packages/pygments:
>>> total 1080
>>> -rw-r--r-- 1 root  13055 Sep 15  2009 cmdline.py
>>> -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyc
>>> -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyo
>>> -rw-r--r-- 1 root   1850 Sep 15  2009 console.py
>>> -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyc
>>> -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyo
>>> -rw-r--r-- 1 root   2071 Sep 15  2009 filter.py
>>> -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyc
>>> -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyo
>>> drwxr-xr-x 2 root   4096 Aug 12 23:28 filters
>>> -rw-r--r-- 1 root   2790 Sep 15  2009 formatter.py
>>> -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyc
>>> -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyo
>>> drwxr-xr-x 2 root   4096 Aug 12 23:28 formatters
>>> -rw-r--r-- 1 root   2935 Sep 15  2009 __init__.py
>>> -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyc
>>> -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyo
>>> -rw-r--r-- 1 root  22625 Sep 15  2009 lexer.py
>>> -rw-r--r-- 1 root  20971 Aug 16  2010 lexer.pyc
>>> -rw-r--r-- 1 root  20204 Aug 16  2010 lexer.pyo
>>> drwxr-xr-x 2 root   4096 Aug 12 23:28 lexers
>>> -rw-r--r-- 1 root   1862 Sep 15  2009 plugin.py
>>> -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyc
>>> -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyo
>>> -rw-r--r-- 1 root   3114 Sep 15  2009 scanner.py
>>> -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyc
>>> -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyo
>>> -rw-r--r-- 1 root   3745 Sep 15  2009 style.py
>>> -rw-r--r-- 1 root   3943 Aug 16  2010 style.pyc
>>> -rw-r--r-- 1 root   3867 Aug 16  2010 style.pyo
>>> drwxr-xr-x 2 root   4096 Aug 12 23:28 styles
>>> -rw-r--r-- 1 root   5784 Sep 15  2009 token.py
>>> -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyc
>>> -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyo
>>> -rw-r--r-- 1 root 404249 Sep 15  2009 unistring.py
>>> -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyc
>>> -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyo
>>> -rw-r--r-- 1 root   6431 Sep 15  2009 util.py
>>> -rw-r--r-- 2 root   7706 Aug 16  2010 util.pyc
>>> -rw-r--r-- 2 root   7706 Aug 16  2010 util.pyo
>>>
>>> /usr/lib/python2.6/site-packages/Pygments-1.1.1-py2.6.egg-info:
>>> total 24
>>> -rw-r--r-- 1 root1 Aug 16  2010 dependency_links.txt
>>> -rw-r--r-- 1 root1 Feb  6  2009 not-zip-safe
>>> -rw-r--r-- 1 root 1831 Aug 16  2010 PKG-INFO
>>> -rw-r--r-- 1 root 7520 Aug 16  2010 SOURCES.txt
>>> -rw-r--r-- 1 root9 Aug 16  2010 top_level.txt
>>>
>>> /usr/lib/python2.6/site-packages/Pygments-2.0.2-py2.6.egg:
>>> total 8
>>> drwxr-xr-x 2 root 4096 Oct  8 23:54 EGG-INFO
>>> drwxr-xr-x 6 root 4096 Oct  8 23:54 pygments
>>>
>>>
>>> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時54分38秒寫道:

 We use Pygments for syntax highlighting.

 We changed how we do syntax highlighting in 2.5, and it may have an
 issue with your files.

 Christian

 --
 Christian Hammond - chri...@beanbaginc.com
 Review Board - https://www.reviewboard.org
 Beanbag, Inc. - https://www.beanbaginc.com

 On Sat, Nov 14, 2015 at 10:52 PM, Wesly Chen 
 wrote:

> Which python modules or libraries are used for syntax highlighting? I
> would like to check those modules or libraries to see if some 
> configuration
> run or file corruption.
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:
>>
>> Can you check if there's anything in the logs?
>>
>> Do you have a file you can send that reproduces the problem?
>>
>> Christian
>>
>> --
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - 

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
I tried to upgrade to 2.5.11 and failed (at another thread),

Here is my log (reviewboard.log), no error.

2015-11-15 07:22:07,902 - DEBUG - None - wchen - 
/reviews/r/114/diff/3/fragment/1876/ - Begin: Fetching file 
'/home/cvs/OPS/nagios/libexec/check_mysql_rows.pl,v' r1.1 from CVS-prod
2015-11-15 07:22:10,202 - DEBUG - None - wchen - 
/reviews/r/114/diff/3/fragment/1876/ - End: Fetching file 
'/home/cvs/OPS/nagios/libexec/check_mysql_rows.pl,v' r1.1 from CVS-prod
2015-11-15 07:22:10,203 - DEBUG - None - wchen - 
/reviews/r/114/diff/3/fragment/1876/ - Fetching file 
'/home/cvs/OPS/nagios/libexec/check_mysql_rows.pl,v' r1.1 from CVS-prod 
took 2.299647 seconds
2015-11-15 07:22:10,212 - DEBUG - None - wchen - 
/reviews/r/114/diff/3/fragment/1876/ - Begin: Patching file 
check_mysql_rows.pl
2015-11-15 07:22:10,243 - DEBUG - None - wchen - 
/reviews/r/114/diff/3/fragment/1876/ - End: Patching file 
check_mysql_rows.pl
2015-11-15 07:22:10,244 - DEBUG - None - wchen - 
/reviews/r/114/diff/3/fragment/1876/ - Patching file check_mysql_rows.pl 
took 0.030828 seconds
2015-11-15 07:22:10,252 - DEBUG - None - wchen - 
/reviews/r/114/diff/3/fragment/1876/ - Begin: Generating diff chunks for 
self.filediff id 1876 (/home/cvs/OPS/nagios/libexec/check_mysql_rows.pl,v)
2015-11-15 07:22:10,256 - DEBUG - None - wchen - 
/reviews/r/114/diff/3/fragment/1876/ - End: Generating diff chunks for 
self.filediff id 1876 (/home/cvs/OPS/nagios/libexec/check_mysql_rows.pl,v)
2015-11-15 07:22:10,256 - DEBUG - None - wchen - 
/reviews/r/114/diff/3/fragment/1876/ - Generating diff chunks for 
self.filediff id 1876 (/home/cvs/OPS/nagios/libexec/check_mysql_rows.pl,v) 
took 0.003941 seconds
2015-11-15 07:22:40,971 - DEBUG - None - wchen - /reviews/r/114/diff/3/ - 
Generating diff viewer page for filediff id 405
2015-11-15 07:22:40,994 - DEBUG - None - wchen - /reviews/r/114/diff/3/ - 
Begin: Generating diff file info for diffset id 405
2015-11-15 07:22:41,001 - DEBUG - None - wchen - /reviews/r/114/diff/3/ - 
End: Generating diff file info for diffset id 405
2015-11-15 07:22:41,001 - DEBUG - None - wchen - /reviews/r/114/diff/3/ - 
Generating diff file info for diffset id 405 took 0.006689 seconds
2015-11-15 07:22:41,006 - DEBUG - None - wchen - /reviews/r/114/diff/3/ - 
Done generating diff viewer page for filediff id 405
2015-11-15 07:25:31,015 - DEBUG - None - wchen - /reviews/r/114/diff/ - 
Generating diff viewer page for filediff id 405
2015-11-15 07:25:31,044 - DEBUG - None - wchen - /reviews/r/114/diff/ - 
Begin: Generating diff file info for diffset id 405
2015-11-15 07:25:31,050 - DEBUG - None - wchen - /reviews/r/114/diff/ - 
End: Generating diff file info for diffset id 405
2015-11-15 07:25:31,050 - DEBUG - None - wchen - /reviews/r/114/diff/ - 
Generating diff file info for diffset id 405 took 0.005544 seconds
2015-11-15 07:25:31,056 - DEBUG - None - wchen - /reviews/r/114/diff/ - 
Done generating diff viewer page for filediff id 405


Christian Hammond於 2015年11月14日星期六 UTC-8下午11時34分55秒寫道:
>
> For some reason I had thought you were using Review Board 2.5, I think 
> because of the other support e-mails. So it's not a regression after all.
>
> Can you check the Review Board log file, see if there are any errors when 
> viewing a review request?
>
> Christian
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
There's no file or configuration to check. This stuff is built to work in
Review Board. The only option I can offer right now is to check a file
that's having problems on our end to see if it's a regression in Review
Board.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sat, Nov 14, 2015 at 11:08 PM, Wesly Chen  wrote:

> Here is the python modules on the system. Which file I should check for
> the configuration? I'm not familiar with python.
>
> # ls -lg /usr/lib/python2.6/site-packages/*ygment*
> /usr/lib/python2.6/site-packages/pygments:
> total 1080
> -rw-r--r-- 1 root  13055 Sep 15  2009 cmdline.py
> -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyc
> -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyo
> -rw-r--r-- 1 root   1850 Sep 15  2009 console.py
> -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyc
> -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyo
> -rw-r--r-- 1 root   2071 Sep 15  2009 filter.py
> -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyc
> -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyo
> drwxr-xr-x 2 root   4096 Aug 12 23:28 filters
> -rw-r--r-- 1 root   2790 Sep 15  2009 formatter.py
> -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyc
> -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyo
> drwxr-xr-x 2 root   4096 Aug 12 23:28 formatters
> -rw-r--r-- 1 root   2935 Sep 15  2009 __init__.py
> -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyc
> -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyo
> -rw-r--r-- 1 root  22625 Sep 15  2009 lexer.py
> -rw-r--r-- 1 root  20971 Aug 16  2010 lexer.pyc
> -rw-r--r-- 1 root  20204 Aug 16  2010 lexer.pyo
> drwxr-xr-x 2 root   4096 Aug 12 23:28 lexers
> -rw-r--r-- 1 root   1862 Sep 15  2009 plugin.py
> -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyc
> -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyo
> -rw-r--r-- 1 root   3114 Sep 15  2009 scanner.py
> -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyc
> -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyo
> -rw-r--r-- 1 root   3745 Sep 15  2009 style.py
> -rw-r--r-- 1 root   3943 Aug 16  2010 style.pyc
> -rw-r--r-- 1 root   3867 Aug 16  2010 style.pyo
> drwxr-xr-x 2 root   4096 Aug 12 23:28 styles
> -rw-r--r-- 1 root   5784 Sep 15  2009 token.py
> -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyc
> -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyo
> -rw-r--r-- 1 root 404249 Sep 15  2009 unistring.py
> -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyc
> -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyo
> -rw-r--r-- 1 root   6431 Sep 15  2009 util.py
> -rw-r--r-- 2 root   7706 Aug 16  2010 util.pyc
> -rw-r--r-- 2 root   7706 Aug 16  2010 util.pyo
>
> /usr/lib/python2.6/site-packages/Pygments-1.1.1-py2.6.egg-info:
> total 24
> -rw-r--r-- 1 root1 Aug 16  2010 dependency_links.txt
> -rw-r--r-- 1 root1 Feb  6  2009 not-zip-safe
> -rw-r--r-- 1 root 1831 Aug 16  2010 PKG-INFO
> -rw-r--r-- 1 root 7520 Aug 16  2010 SOURCES.txt
> -rw-r--r-- 1 root9 Aug 16  2010 top_level.txt
>
> /usr/lib/python2.6/site-packages/Pygments-2.0.2-py2.6.egg:
> total 8
> drwxr-xr-x 2 root 4096 Oct  8 23:54 EGG-INFO
> drwxr-xr-x 6 root 4096 Oct  8 23:54 pygments
>
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時54分38秒寫道:
>>
>> We use Pygments for syntax highlighting.
>>
>> We changed how we do syntax highlighting in 2.5, and it may have an issue
>> with your files.
>>
>> Christian
>>
>> --
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> On Sat, Nov 14, 2015 at 10:52 PM, Wesly Chen  wrote:
>>
>>> Which python modules or libraries are used for syntax highlighting? I
>>> would like to check those modules or libraries to see if some configuration
>>> run or file corruption.
>>>
>>> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:

 Can you check if there's anything in the logs?

 Do you have a file you can send that reproduces the problem?

 Christian

 --
 Christian Hammond - chri...@beanbaginc.com
 Review Board - https://www.reviewboard.org
 Beanbag, Inc. - https://www.beanbaginc.com

 On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  wrote:

> Here is some python package information
>
> #  ls -1 /usr/lib/python2.6/site-packages/
>
> argparse-1.2.1-py2.6.egg-info
> argparse.py
> argparse.pyc
> argparse.pyo
> asciidocapi.py
> asciidocapi.pyc
> asciidocapi.pyo
> dateutil
> dbus
> dbus_bindings.py
> dbus_bindings.pyc
> dbus_bindings.pyo
> distribute-0.6.10-py2.6.egg-info
> django
> Django-1.4.21-py2.6.egg-info
> Django-1.6.11-py2.6.egg
> django_evolution
> django_evolution-0.6.9-py2.6.egg-info
> django_evolution-0.7.5-py2.6.egg
> django_haystack-2.4.0-py2.6.egg
> django_pipeline-1.2.24-py2.6.egg-info
> 

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
We use Pygments for syntax highlighting.

We changed how we do syntax highlighting in 2.5, and it may have an issue
with your files.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sat, Nov 14, 2015 at 10:52 PM, Wesly Chen  wrote:

> Which python modules or libraries are used for syntax highlighting? I
> would like to check those modules or libraries to see if some configuration
> run or file corruption.
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:
>>
>> Can you check if there's anything in the logs?
>>
>> Do you have a file you can send that reproduces the problem?
>>
>> Christian
>>
>> --
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  wrote:
>>
>>> Here is some python package information
>>>
>>> #  ls -1 /usr/lib/python2.6/site-packages/
>>>
>>> argparse-1.2.1-py2.6.egg-info
>>> argparse.py
>>> argparse.pyc
>>> argparse.pyo
>>> asciidocapi.py
>>> asciidocapi.pyc
>>> asciidocapi.pyo
>>> dateutil
>>> dbus
>>> dbus_bindings.py
>>> dbus_bindings.pyc
>>> dbus_bindings.pyo
>>> distribute-0.6.10-py2.6.egg-info
>>> django
>>> Django-1.4.21-py2.6.egg-info
>>> Django-1.6.11-py2.6.egg
>>> django_evolution
>>> django_evolution-0.6.9-py2.6.egg-info
>>> django_evolution-0.7.5-py2.6.egg
>>> django_haystack-2.4.0-py2.6.egg
>>> django_pipeline-1.2.24-py2.6.egg-info
>>> django_pipeline-1.3.27-py2.6.egg
>>> djblets
>>> Djblets-0.7.30-py2.6.egg-info
>>> Djblets-0.8.22-py2.6.egg
>>> docutils
>>> docutils-0.6-py2.6.egg-info
>>> easy-install.pth
>>> easy_install.py
>>> easy_install.pyc
>>> easy_install.pyo
>>> ecdsa-0.13-py2.6.egg
>>> feedparser-5.1.2-py2.6.egg-info
>>> feedparser.py
>>> feedparser.pyc
>>> feedparser.pyo
>>> flup
>>> flup-1.0.2-py2.6.egg-info
>>> futures-3.0.3-py2.6.egg
>>> iniparse
>>> iniparse-0.3.1-py2.6.egg-info
>>> libproxy.py
>>> libproxy.pyc
>>> libproxy.pyo
>>> markdown
>>> Markdown-2.0.1-py2.6.egg-info
>>> Markdown-2.4.1-py2.6.egg
>>> memcache.py
>>> memcache.pyc
>>> memcache.pyo
>>> mimeparse-0.1.3-py2.6.egg
>>> mimeparse.py
>>> mimeparse.pyc
>>> mimeparse.pyo
>>> nose
>>> nose-0.10.4-py2.6.egg-info
>>> odict
>>> odict-1.5.0-py2.6.egg-info
>>> paramiko
>>> paramiko-1.15.3-py2.6.egg
>>> paramiko-1.7.5-py2.6.egg-info
>>> pillowfight-0.2-py2.6.egg
>>> pipeline
>>> pkg_resources.py
>>> pkg_resources.pyc
>>> pkg_resources.pyo
>>> ply
>>> ply-3.4-py2.6.egg-info
>>> pycrypto-2.6.1-py2.6-linux-x86_64.egg
>>> pygments
>>> Pygments-1.1.1-py2.6.egg-info
>>> Pygments-2.0.2-py2.6.egg
>>> python_dateutil-1.4.1-py2.6.egg-info
>>> python_dateutil-1.5-py2.6.egg
>>> python_memcached-1.43-py2.6.egg-info
>>> python_mimeparse-0.1.4-py2.6.egg-info
>>> pytz
>>> pytz-2010h-py2.6.egg-info
>>> RBTools-0.8alpha0.dev-py2.6.egg
>>> recaptcha
>>> recaptcha_client-1.0.6-py2.6.egg-info
>>> recaptcha_client-1.0.6-py2.6-nspkg.pth
>>> reviewboard
>>> ReviewBoard-1.7.27-py2.6.egg-info
>>> ReviewBoard-2.0.20-py2.6.egg
>>> roman.py
>>> roman.pyc
>>> roman.pyo
>>> rpmUtils
>>> setuptools
>>> setuptools-0.6c11-py2.6.egg-info
>>> setuptools.pth
>>> site.py
>>> site.pyc
>>> site.pyo
>>> six-1.9.0-py2.6.egg
>>> slimit
>>> slimit-0.8.1-py2.6.egg-info
>>> sos
>>> urlgrabber
>>> urlgrabber-3.9.1-py2.6.egg-info
>>> webtests
>>> Whoosh-2.7.0-py2.6.egg
>>> yum
>>> yumutils
>>>
>>>
>>> Wesly Chen於 2015年11月14日星期六 UTC-8下午3時22分01秒寫道:
>>>
 1. System setting => Diff Viewer settings => Show syntax highlighting
  is checked.
 2. Account settings " Enable syntax highlighting in the diff viewer"
 is checked.

 My system is CentOS 6.5 64-bit with MySQL 5.1.

 Any information needed for this issue?


 --
>>> Supercharge your Review Board with Power Pack:
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons:
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to reviewboard...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
Which python modules or libraries are used for syntax highlighting? I would 
like to check those modules or libraries to see if some configuration run 
or file corruption.

Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:
>
> Can you check if there's anything in the logs?
>
> Do you have a file you can send that reproduces the problem?
>
> Christian
>
> -- 
> Christian Hammond - chri...@beanbaginc.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  > wrote:
>
>> Here is some python package information
>>
>> #  ls -1 /usr/lib/python2.6/site-packages/
>>
>> argparse-1.2.1-py2.6.egg-info
>> argparse.py
>> argparse.pyc
>> argparse.pyo
>> asciidocapi.py
>> asciidocapi.pyc
>> asciidocapi.pyo
>> dateutil
>> dbus
>> dbus_bindings.py
>> dbus_bindings.pyc
>> dbus_bindings.pyo
>> distribute-0.6.10-py2.6.egg-info
>> django
>> Django-1.4.21-py2.6.egg-info
>> Django-1.6.11-py2.6.egg
>> django_evolution
>> django_evolution-0.6.9-py2.6.egg-info
>> django_evolution-0.7.5-py2.6.egg
>> django_haystack-2.4.0-py2.6.egg
>> django_pipeline-1.2.24-py2.6.egg-info
>> django_pipeline-1.3.27-py2.6.egg
>> djblets
>> Djblets-0.7.30-py2.6.egg-info
>> Djblets-0.8.22-py2.6.egg
>> docutils
>> docutils-0.6-py2.6.egg-info
>> easy-install.pth
>> easy_install.py
>> easy_install.pyc
>> easy_install.pyo
>> ecdsa-0.13-py2.6.egg
>> feedparser-5.1.2-py2.6.egg-info
>> feedparser.py
>> feedparser.pyc
>> feedparser.pyo
>> flup
>> flup-1.0.2-py2.6.egg-info
>> futures-3.0.3-py2.6.egg
>> iniparse
>> iniparse-0.3.1-py2.6.egg-info
>> libproxy.py
>> libproxy.pyc
>> libproxy.pyo
>> markdown
>> Markdown-2.0.1-py2.6.egg-info
>> Markdown-2.4.1-py2.6.egg
>> memcache.py
>> memcache.pyc
>> memcache.pyo
>> mimeparse-0.1.3-py2.6.egg
>> mimeparse.py
>> mimeparse.pyc
>> mimeparse.pyo
>> nose
>> nose-0.10.4-py2.6.egg-info
>> odict
>> odict-1.5.0-py2.6.egg-info
>> paramiko
>> paramiko-1.15.3-py2.6.egg
>> paramiko-1.7.5-py2.6.egg-info
>> pillowfight-0.2-py2.6.egg
>> pipeline
>> pkg_resources.py
>> pkg_resources.pyc
>> pkg_resources.pyo
>> ply
>> ply-3.4-py2.6.egg-info
>> pycrypto-2.6.1-py2.6-linux-x86_64.egg
>> pygments
>> Pygments-1.1.1-py2.6.egg-info
>> Pygments-2.0.2-py2.6.egg
>> python_dateutil-1.4.1-py2.6.egg-info
>> python_dateutil-1.5-py2.6.egg
>> python_memcached-1.43-py2.6.egg-info
>> python_mimeparse-0.1.4-py2.6.egg-info
>> pytz
>> pytz-2010h-py2.6.egg-info
>> RBTools-0.8alpha0.dev-py2.6.egg
>> recaptcha
>> recaptcha_client-1.0.6-py2.6.egg-info
>> recaptcha_client-1.0.6-py2.6-nspkg.pth
>> reviewboard
>> ReviewBoard-1.7.27-py2.6.egg-info
>> ReviewBoard-2.0.20-py2.6.egg
>> roman.py
>> roman.pyc
>> roman.pyo
>> rpmUtils
>> setuptools
>> setuptools-0.6c11-py2.6.egg-info
>> setuptools.pth
>> site.py
>> site.pyc
>> site.pyo
>> six-1.9.0-py2.6.egg
>> slimit
>> slimit-0.8.1-py2.6.egg-info
>> sos
>> urlgrabber
>> urlgrabber-3.9.1-py2.6.egg-info
>> webtests
>> Whoosh-2.7.0-py2.6.egg
>> yum
>> yumutils
>>
>>
>> Wesly Chen於 2015年11月14日星期六 UTC-8下午3時22分01秒寫道:
>>
>>> 1. System setting => Diff Viewer settings => Show syntax highlighting 
>>>  is checked.
>>> 2. Account settings " Enable syntax highlighting in the diff viewer" is 
>>> checked.
>>>
>>> My system is CentOS 6.5 64-bit with MySQL 5.1.
>>>
>>> Any information needed for this issue?
>>>
>>>
>>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
Here is the python modules on the system. Which file I should check for the 
configuration? I'm not familiar with python.

# ls -lg /usr/lib/python2.6/site-packages/*ygment*
/usr/lib/python2.6/site-packages/pygments:
total 1080
-rw-r--r-- 1 root  13055 Sep 15  2009 cmdline.py
-rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyc
-rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyo
-rw-r--r-- 1 root   1850 Sep 15  2009 console.py
-rw-r--r-- 2 root   2340 Aug 16  2010 console.pyc
-rw-r--r-- 2 root   2340 Aug 16  2010 console.pyo
-rw-r--r-- 1 root   2071 Sep 15  2009 filter.py
-rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyc
-rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyo
drwxr-xr-x 2 root   4096 Aug 12 23:28 filters
-rw-r--r-- 1 root   2790 Sep 15  2009 formatter.py
-rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyc
-rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyo
drwxr-xr-x 2 root   4096 Aug 12 23:28 formatters
-rw-r--r-- 1 root   2935 Sep 15  2009 __init__.py
-rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyc
-rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyo
-rw-r--r-- 1 root  22625 Sep 15  2009 lexer.py
-rw-r--r-- 1 root  20971 Aug 16  2010 lexer.pyc
-rw-r--r-- 1 root  20204 Aug 16  2010 lexer.pyo
drwxr-xr-x 2 root   4096 Aug 12 23:28 lexers
-rw-r--r-- 1 root   1862 Sep 15  2009 plugin.py
-rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyc
-rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyo
-rw-r--r-- 1 root   3114 Sep 15  2009 scanner.py
-rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyc
-rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyo
-rw-r--r-- 1 root   3745 Sep 15  2009 style.py
-rw-r--r-- 1 root   3943 Aug 16  2010 style.pyc
-rw-r--r-- 1 root   3867 Aug 16  2010 style.pyo
drwxr-xr-x 2 root   4096 Aug 12 23:28 styles
-rw-r--r-- 1 root   5784 Sep 15  2009 token.py
-rw-r--r-- 2 root   5408 Aug 16  2010 token.pyc
-rw-r--r-- 2 root   5408 Aug 16  2010 token.pyo
-rw-r--r-- 1 root 404249 Sep 15  2009 unistring.py
-rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyc
-rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyo
-rw-r--r-- 1 root   6431 Sep 15  2009 util.py
-rw-r--r-- 2 root   7706 Aug 16  2010 util.pyc
-rw-r--r-- 2 root   7706 Aug 16  2010 util.pyo

/usr/lib/python2.6/site-packages/Pygments-1.1.1-py2.6.egg-info:
total 24
-rw-r--r-- 1 root1 Aug 16  2010 dependency_links.txt
-rw-r--r-- 1 root1 Feb  6  2009 not-zip-safe
-rw-r--r-- 1 root 1831 Aug 16  2010 PKG-INFO
-rw-r--r-- 1 root 7520 Aug 16  2010 SOURCES.txt
-rw-r--r-- 1 root9 Aug 16  2010 top_level.txt

/usr/lib/python2.6/site-packages/Pygments-2.0.2-py2.6.egg:
total 8
drwxr-xr-x 2 root 4096 Oct  8 23:54 EGG-INFO
drwxr-xr-x 6 root 4096 Oct  8 23:54 pygments


Christian Hammond於 2015年11月14日星期六 UTC-8下午10時54分38秒寫道:
>
> We use Pygments for syntax highlighting.
>
> We changed how we do syntax highlighting in 2.5, and it may have an issue 
> with your files.
>
> Christian
>
> -- 
> Christian Hammond - chri...@beanbaginc.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Sat, Nov 14, 2015 at 10:52 PM, Wesly Chen  > wrote:
>
>> Which python modules or libraries are used for syntax highlighting? I 
>> would like to check those modules or libraries to see if some configuration 
>> run or file corruption.
>>
>> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:
>>>
>>> Can you check if there's anything in the logs?
>>>
>>> Do you have a file you can send that reproduces the problem?
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond - chri...@beanbaginc.com
>>> Review Board - https://www.reviewboard.org
>>> Beanbag, Inc. - https://www.beanbaginc.com
>>>
>>> On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  wrote:
>>>
 Here is some python package information

 #  ls -1 /usr/lib/python2.6/site-packages/

 argparse-1.2.1-py2.6.egg-info
 argparse.py
 argparse.pyc
 argparse.pyo
 asciidocapi.py
 asciidocapi.pyc
 asciidocapi.pyo
 dateutil
 dbus
 dbus_bindings.py
 dbus_bindings.pyc
 dbus_bindings.pyo
 distribute-0.6.10-py2.6.egg-info
 django
 Django-1.4.21-py2.6.egg-info
 Django-1.6.11-py2.6.egg
 django_evolution
 django_evolution-0.6.9-py2.6.egg-info
 django_evolution-0.7.5-py2.6.egg
 django_haystack-2.4.0-py2.6.egg
 django_pipeline-1.2.24-py2.6.egg-info
 django_pipeline-1.3.27-py2.6.egg
 djblets
 Djblets-0.7.30-py2.6.egg-info
 Djblets-0.8.22-py2.6.egg
 docutils
 docutils-0.6-py2.6.egg-info
 easy-install.pth
 easy_install.py
 easy_install.pyc
 easy_install.pyo
 ecdsa-0.13-py2.6.egg
 feedparser-5.1.2-py2.6.egg-info
 feedparser.py
 feedparser.pyc
 feedparser.pyo
 flup
 flup-1.0.2-py2.6.egg-info
 futures-3.0.3-py2.6.egg
 iniparse
 iniparse-0.3.1-py2.6.egg-info
 libproxy.py
 libproxy.pyc
 libproxy.pyo
 markdown
 Markdown-2.0.1-py2.6.egg-info
 Markdown-2.4.1-py2.6.egg
 

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
Thanks, though unfortunately, the middle of a file won't be sufficient to
reproduce this. I'm actually going to need the first 50 lines or so of a
file, at least. Ideally, an entire file. You could try creating a dummy
file to add to a review request, see if it's still failing, and then you
could send that along.

Please note that anything posted here is public, and we can't take it down.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sat, Nov 14, 2015 at 11:02 PM, Wesly Chen  wrote:

> I uploaded portion of the java file as the screenshot show.
> We use CVS as repository.
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時50分48秒寫道:
>>
>> I'll need that information to be able to diagnose the issue. As it is, I
>> have no insight into what could be going wrong, and would have to run tests
>> here.
>>
>> Christian
>>
>> --
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> On Sat, Nov 14, 2015 at 10:49 PM, Wesly Chen  wrote:
>>
>>> All the diff upload by "rbt post" doesn't show syntax highlight in Diff
>>> Viewer. However, "syntax highlighting" with attached file (java), just not
>>> in Diff Viewer.
>>>
>>> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:

 Can you check if there's anything in the logs?

 Do you have a file you can send that reproduces the problem?

 Christian

 --
 Christian Hammond - chri...@beanbaginc.com
 Review Board - https://www.reviewboard.org
 Beanbag, Inc. - https://www.beanbaginc.com

 On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  wrote:

> Here is some python package information
>
> #  ls -1 /usr/lib/python2.6/site-packages/
>
> argparse-1.2.1-py2.6.egg-info
> argparse.py
> argparse.pyc
> argparse.pyo
> asciidocapi.py
> asciidocapi.pyc
> asciidocapi.pyo
> dateutil
> dbus
> dbus_bindings.py
> dbus_bindings.pyc
> dbus_bindings.pyo
> distribute-0.6.10-py2.6.egg-info
> django
> Django-1.4.21-py2.6.egg-info
> Django-1.6.11-py2.6.egg
> django_evolution
> django_evolution-0.6.9-py2.6.egg-info
> django_evolution-0.7.5-py2.6.egg
> django_haystack-2.4.0-py2.6.egg
> django_pipeline-1.2.24-py2.6.egg-info
> django_pipeline-1.3.27-py2.6.egg
> djblets
> Djblets-0.7.30-py2.6.egg-info
> Djblets-0.8.22-py2.6.egg
> docutils
> docutils-0.6-py2.6.egg-info
> easy-install.pth
> easy_install.py
> easy_install.pyc
> easy_install.pyo
> ecdsa-0.13-py2.6.egg
> feedparser-5.1.2-py2.6.egg-info
> feedparser.py
> feedparser.pyc
> feedparser.pyo
> flup
> flup-1.0.2-py2.6.egg-info
> futures-3.0.3-py2.6.egg
> iniparse
> iniparse-0.3.1-py2.6.egg-info
> libproxy.py
> libproxy.pyc
> libproxy.pyo
> markdown
> Markdown-2.0.1-py2.6.egg-info
> Markdown-2.4.1-py2.6.egg
> memcache.py
> memcache.pyc
> memcache.pyo
> mimeparse-0.1.3-py2.6.egg
> mimeparse.py
> mimeparse.pyc
> mimeparse.pyo
> nose
> nose-0.10.4-py2.6.egg-info
> odict
> odict-1.5.0-py2.6.egg-info
> paramiko
> paramiko-1.15.3-py2.6.egg
> paramiko-1.7.5-py2.6.egg-info
> pillowfight-0.2-py2.6.egg
> pipeline
> pkg_resources.py
> pkg_resources.pyc
> pkg_resources.pyo
> ply
> ply-3.4-py2.6.egg-info
> pycrypto-2.6.1-py2.6-linux-x86_64.egg
> pygments
> Pygments-1.1.1-py2.6.egg-info
> Pygments-2.0.2-py2.6.egg
> python_dateutil-1.4.1-py2.6.egg-info
> python_dateutil-1.5-py2.6.egg
> python_memcached-1.43-py2.6.egg-info
> python_mimeparse-0.1.4-py2.6.egg-info
> pytz
> pytz-2010h-py2.6.egg-info
> RBTools-0.8alpha0.dev-py2.6.egg
> recaptcha
> recaptcha_client-1.0.6-py2.6.egg-info
> recaptcha_client-1.0.6-py2.6-nspkg.pth
> reviewboard
> ReviewBoard-1.7.27-py2.6.egg-info
> ReviewBoard-2.0.20-py2.6.egg
> roman.py
> roman.pyc
> roman.pyo
> rpmUtils
> setuptools
> setuptools-0.6c11-py2.6.egg-info
> setuptools.pth
> site.py
> site.pyc
> site.pyo
> six-1.9.0-py2.6.egg
> slimit
> slimit-0.8.1-py2.6.egg-info
> sos
> urlgrabber
> urlgrabber-3.9.1-py2.6.egg-info
> webtests
> Whoosh-2.7.0-py2.6.egg
> yum
> yumutils
>
>
> Wesly Chen於 2015年11月14日星期六 UTC-8下午3時22分01秒寫道:
>
>> 1. System setting => Diff Viewer settings => Show syntax
>> highlighting  is checked.
>> 2. Account settings " Enable syntax highlighting in the diff viewer"
>> is checked.
>>
>> My system is CentOS 6.5 64-bit with MySQL 5.1.
>>
>> Any information needed for this issue?
>>
>>
>> --
> Supercharge your Review Board with 

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
Could you point out which python files under 
/usr/lib/python2.6/site-packages/ReviewBoard-2.0.20-py2.6.egg/reviewboard/ 
is showing the syntax highlighting in Diff Viewer?

Thanks,

Wesly 

Christian Hammond於 2015年11月14日星期六 UTC-8下午11時09分49秒寫道:
>
> There's no file or configuration to check. This stuff is built to work in 
> Review Board. The only option I can offer right now is to check a file 
> that's having problems on our end to see if it's a regression in Review 
> Board.
>
> Christian
>
> -- 
> Christian Hammond - chri...@beanbaginc.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Sat, Nov 14, 2015 at 11:08 PM, Wesly Chen  > wrote:
>
>> Here is the python modules on the system. Which file I should check for 
>> the configuration? I'm not familiar with python.
>>
>> # ls -lg /usr/lib/python2.6/site-packages/*ygment*
>> /usr/lib/python2.6/site-packages/pygments:
>> total 1080
>> -rw-r--r-- 1 root  13055 Sep 15  2009 cmdline.py
>> -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyc
>> -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyo
>> -rw-r--r-- 1 root   1850 Sep 15  2009 console.py
>> -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyc
>> -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyo
>> -rw-r--r-- 1 root   2071 Sep 15  2009 filter.py
>> -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyc
>> -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyo
>> drwxr-xr-x 2 root   4096 Aug 12 23:28 filters
>> -rw-r--r-- 1 root   2790 Sep 15  2009 formatter.py
>> -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyc
>> -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyo
>> drwxr-xr-x 2 root   4096 Aug 12 23:28 formatters
>> -rw-r--r-- 1 root   2935 Sep 15  2009 __init__.py
>> -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyc
>> -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyo
>> -rw-r--r-- 1 root  22625 Sep 15  2009 lexer.py
>> -rw-r--r-- 1 root  20971 Aug 16  2010 lexer.pyc
>> -rw-r--r-- 1 root  20204 Aug 16  2010 lexer.pyo
>> drwxr-xr-x 2 root   4096 Aug 12 23:28 lexers
>> -rw-r--r-- 1 root   1862 Sep 15  2009 plugin.py
>> -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyc
>> -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyo
>> -rw-r--r-- 1 root   3114 Sep 15  2009 scanner.py
>> -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyc
>> -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyo
>> -rw-r--r-- 1 root   3745 Sep 15  2009 style.py
>> -rw-r--r-- 1 root   3943 Aug 16  2010 style.pyc
>> -rw-r--r-- 1 root   3867 Aug 16  2010 style.pyo
>> drwxr-xr-x 2 root   4096 Aug 12 23:28 styles
>> -rw-r--r-- 1 root   5784 Sep 15  2009 token.py
>> -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyc
>> -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyo
>> -rw-r--r-- 1 root 404249 Sep 15  2009 unistring.py
>> -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyc
>> -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyo
>> -rw-r--r-- 1 root   6431 Sep 15  2009 util.py
>> -rw-r--r-- 2 root   7706 Aug 16  2010 util.pyc
>> -rw-r--r-- 2 root   7706 Aug 16  2010 util.pyo
>>
>> /usr/lib/python2.6/site-packages/Pygments-1.1.1-py2.6.egg-info:
>> total 24
>> -rw-r--r-- 1 root1 Aug 16  2010 dependency_links.txt
>> -rw-r--r-- 1 root1 Feb  6  2009 not-zip-safe
>> -rw-r--r-- 1 root 1831 Aug 16  2010 PKG-INFO
>> -rw-r--r-- 1 root 7520 Aug 16  2010 SOURCES.txt
>> -rw-r--r-- 1 root9 Aug 16  2010 top_level.txt
>>
>> /usr/lib/python2.6/site-packages/Pygments-2.0.2-py2.6.egg:
>> total 8
>> drwxr-xr-x 2 root 4096 Oct  8 23:54 EGG-INFO
>> drwxr-xr-x 6 root 4096 Oct  8 23:54 pygments
>>
>>
>> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時54分38秒寫道:
>>>
>>> We use Pygments for syntax highlighting.
>>>
>>> We changed how we do syntax highlighting in 2.5, and it may have an 
>>> issue with your files.
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond - chri...@beanbaginc.com
>>> Review Board - https://www.reviewboard.org
>>> Beanbag, Inc. - https://www.beanbaginc.com
>>>
>>> On Sat, Nov 14, 2015 at 10:52 PM, Wesly Chen  wrote:
>>>
 Which python modules or libraries are used for syntax highlighting? I 
 would like to check those modules or libraries to see if some 
 configuration 
 run or file corruption.

 Christian Hammond於 2015年11月14日星期六 UTC-8下午10時25分20秒寫道:
>
> Can you check if there's anything in the logs?
>
> Do you have a file you can send that reproduces the problem?
>
> Christian
>
> -- 
> Christian Hammond - chri...@beanbaginc.com
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Sat, Nov 14, 2015 at 3:28 PM, Wesly Chen  
> wrote:
>
>> Here is some python package information
>>
>> #  ls -1 /usr/lib/python2.6/site-packages/
>>
>> argparse-1.2.1-py2.6.egg-info
>> argparse.py
>> argparse.pyc
>> argparse.pyo
>> asciidocapi.py
>> asciidocapi.pyc
>> asciidocapi.pyo
>> dateutil

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Christian Hammond
For some reason I had thought you were using Review Board 2.5, I think
because of the other support e-mails. So it's not a regression after all.

Can you check the Review Board log file, see if there are any errors when
viewing a review request?

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sat, Nov 14, 2015 at 11:31 PM, Wesly Chen  wrote:

> Actually, all the files in Diff Viewer is not showing "syntax
> highlighting" on my Review Board.
>
> I attached
> 1. old file in CVS  : check_mysql_rows.pl
> 2. Modified file on local : check_mysql_rows-new.pl  (added 3 comments)
> 3. screeshot of file viewer in reviewboard uploaded by UI :
> screenshot-upload-via-rb-ui.jpg , syntax highlight work for line 1, 7, 12,
> 17  in different color)
> 4. screenshot of Diff Viewer : screenshot-diff-viewer.jpg
>
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午11時09分49秒寫道:
>>
>> There's no file or configuration to check. This stuff is built to work in
>> Review Board. The only option I can offer right now is to check a file
>> that's having problems on our end to see if it's a regression in Review
>> Board.
>>
>> Christian
>>
>> --
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> On Sat, Nov 14, 2015 at 11:08 PM, Wesly Chen  wrote:
>>
>>> Here is the python modules on the system. Which file I should check for
>>> the configuration? I'm not familiar with python.
>>>
>>> # ls -lg /usr/lib/python2.6/site-packages/*ygment*
>>> /usr/lib/python2.6/site-packages/pygments:
>>> total 1080
>>> -rw-r--r-- 1 root  13055 Sep 15  2009 cmdline.py
>>> -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyc
>>> -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyo
>>> -rw-r--r-- 1 root   1850 Sep 15  2009 console.py
>>> -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyc
>>> -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyo
>>> -rw-r--r-- 1 root   2071 Sep 15  2009 filter.py
>>> -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyc
>>> -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyo
>>> drwxr-xr-x 2 root   4096 Aug 12 23:28 filters
>>> -rw-r--r-- 1 root   2790 Sep 15  2009 formatter.py
>>> -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyc
>>> -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyo
>>> drwxr-xr-x 2 root   4096 Aug 12 23:28 formatters
>>> -rw-r--r-- 1 root   2935 Sep 15  2009 __init__.py
>>> -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyc
>>> -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyo
>>> -rw-r--r-- 1 root  22625 Sep 15  2009 lexer.py
>>> -rw-r--r-- 1 root  20971 Aug 16  2010 lexer.pyc
>>> -rw-r--r-- 1 root  20204 Aug 16  2010 lexer.pyo
>>> drwxr-xr-x 2 root   4096 Aug 12 23:28 lexers
>>> -rw-r--r-- 1 root   1862 Sep 15  2009 plugin.py
>>> -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyc
>>> -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyo
>>> -rw-r--r-- 1 root   3114 Sep 15  2009 scanner.py
>>> -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyc
>>> -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyo
>>> -rw-r--r-- 1 root   3745 Sep 15  2009 style.py
>>> -rw-r--r-- 1 root   3943 Aug 16  2010 style.pyc
>>> -rw-r--r-- 1 root   3867 Aug 16  2010 style.pyo
>>> drwxr-xr-x 2 root   4096 Aug 12 23:28 styles
>>> -rw-r--r-- 1 root   5784 Sep 15  2009 token.py
>>> -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyc
>>> -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyo
>>> -rw-r--r-- 1 root 404249 Sep 15  2009 unistring.py
>>> -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyc
>>> -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyo
>>> -rw-r--r-- 1 root   6431 Sep 15  2009 util.py
>>> -rw-r--r-- 2 root   7706 Aug 16  2010 util.pyc
>>> -rw-r--r-- 2 root   7706 Aug 16  2010 util.pyo
>>>
>>> /usr/lib/python2.6/site-packages/Pygments-1.1.1-py2.6.egg-info:
>>> total 24
>>> -rw-r--r-- 1 root1 Aug 16  2010 dependency_links.txt
>>> -rw-r--r-- 1 root1 Feb  6  2009 not-zip-safe
>>> -rw-r--r-- 1 root 1831 Aug 16  2010 PKG-INFO
>>> -rw-r--r-- 1 root 7520 Aug 16  2010 SOURCES.txt
>>> -rw-r--r-- 1 root9 Aug 16  2010 top_level.txt
>>>
>>> /usr/lib/python2.6/site-packages/Pygments-2.0.2-py2.6.egg:
>>> total 8
>>> drwxr-xr-x 2 root 4096 Oct  8 23:54 EGG-INFO
>>> drwxr-xr-x 6 root 4096 Oct  8 23:54 pygments
>>>
>>>
>>> Christian Hammond於 2015年11月14日星期六 UTC-8下午10時54分38秒寫道:

 We use Pygments for syntax highlighting.

 We changed how we do syntax highlighting in 2.5, and it may have an
 issue with your files.

 Christian

 --
 Christian Hammond - chri...@beanbaginc.com
 Review Board - https://www.reviewboard.org
 Beanbag, Inc. - https://www.beanbaginc.com

 On Sat, Nov 14, 2015 at 10:52 PM, Wesly Chen 
 wrote:

> Which python modules or libraries are used for syntax highlighting? I
> would like to check those modules or libraries to 

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
On my review board system, it is in 
/usr/lib/python2.6/site-packages/ReviewBoard-2.0.20-py2.6.egg/reviewboard/diffviewer/chunk_generator.py
 
  (not in diffutils.py)
---
(started with line 219) 
if self._get_enable_syntax_highlighting(old, new, a, b):
repository = self.filediff.diffset.repository
tool = repository.get_scmtool()
source_file = \
tool.normalize_path_for_display(self.filediff.source_file)
dest_file = \
tool.normalize_path_for_display(self.filediff.dest_file)

try:
# TODO: Try to figure out the right lexer for these files
#   once instead of twice.
if not source_file.endswith(self.STYLED_EXT_BLACKLIST):
markup_a = self._apply_pygments(old or '', source_file)

if not dest_file.endswith(self.STYLED_EXT_BLACKLIST):
markup_b = self._apply_pygments(new or '', dest_file)
except:
pass
...
(line 646)
def _apply_pygments(self, data, filename):
"""Applies Pygments syntax-highlighting to a file's contents.

The resulting HTML will be returned as a list of lines.
"""
lexer = get_lexer_for_filename(filename,
   stripnl=False,
   encoding='utf-8')
lexer.add_filter('codetagify')

return split_line_endings(
highlight(data, lexer, NoWrapperHtmlFormatter()))
---

Christian Hammond於 2015年11月14日星期六 UTC-8下午11時36分59秒寫道:
>
> It's in reviewboard/diffviewer/diffutils.py. Look for apply_pygments.
>
> Christian
>
> -- 
> Christian Hammond - chri...@beanbaginc.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Sat, Nov 14, 2015 at 11:35 PM, Wesly Chen  > wrote:
>
>> Could you point out which python files under 
>>
>> /usr/lib/python2.6/site-packages/ReviewBoard-2.0.20-py2.6.egg/reviewboard/ 
>> is showing the syntax highlighting in Diff Viewer?
>>
>> Thanks,
>>
>> Wesly 
>>
>> Christian Hammond於 2015年11月14日星期六 UTC-8下午11時09分49秒寫道:
>>>
>>> There's no file or configuration to check. This stuff is built to work 
>>> in Review Board. The only option I can offer right now is to check a file 
>>> that's having problems on our end to see if it's a regression in Review 
>>> Board.
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond - chri...@beanbaginc.com
>>> Review Board - https://www.reviewboard.org
>>> Beanbag, Inc. - https://www.beanbaginc.com
>>>
>>> On Sat, Nov 14, 2015 at 11:08 PM, Wesly Chen  wrote:
>>>
 Here is the python modules on the system. Which file I should check for 
 the configuration? I'm not familiar with python.

 # ls -lg /usr/lib/python2.6/site-packages/*ygment*
 /usr/lib/python2.6/site-packages/pygments:
 total 1080
 -rw-r--r-- 1 root  13055 Sep 15  2009 cmdline.py
 -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyc
 -rw-r--r-- 2 root  10443 Aug 16  2010 cmdline.pyo
 -rw-r--r-- 1 root   1850 Sep 15  2009 console.py
 -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyc
 -rw-r--r-- 2 root   2340 Aug 16  2010 console.pyo
 -rw-r--r-- 1 root   2071 Sep 15  2009 filter.py
 -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyc
 -rw-r--r-- 2 root   3184 Aug 16  2010 filter.pyo
 drwxr-xr-x 2 root   4096 Aug 12 23:28 filters
 -rw-r--r-- 1 root   2790 Sep 15  2009 formatter.py
 -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyc
 -rw-r--r-- 2 root   3344 Aug 16  2010 formatter.pyo
 drwxr-xr-x 2 root   4096 Aug 12 23:28 formatters
 -rw-r--r-- 1 root   2935 Sep 15  2009 __init__.py
 -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyc
 -rw-r--r-- 2 root   3334 Aug 16  2010 __init__.pyo
 -rw-r--r-- 1 root  22625 Sep 15  2009 lexer.py
 -rw-r--r-- 1 root  20971 Aug 16  2010 lexer.pyc
 -rw-r--r-- 1 root  20204 Aug 16  2010 lexer.pyo
 drwxr-xr-x 2 root   4096 Aug 12 23:28 lexers
 -rw-r--r-- 1 root   1862 Sep 15  2009 plugin.py
 -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyc
 -rw-r--r-- 2 root   2373 Aug 16  2010 plugin.pyo
 -rw-r--r-- 1 root   3114 Sep 15  2009 scanner.py
 -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyc
 -rw-r--r-- 2 root   4174 Aug 16  2010 scanner.pyo
 -rw-r--r-- 1 root   3745 Sep 15  2009 style.py
 -rw-r--r-- 1 root   3943 Aug 16  2010 style.pyc
 -rw-r--r-- 1 root   3867 Aug 16  2010 style.pyo
 drwxr-xr-x 2 root   4096 Aug 12 23:28 styles
 -rw-r--r-- 1 root   5784 Sep 15  2009 token.py
 -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyc
 -rw-r--r-- 2 root   5408 Aug 16  2010 token.pyo
 -rw-r--r-- 1 root 404249 Sep 15  2009 unistring.py
 -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyc
 -rw-r--r-- 2 root 208515 Aug 16  2010 unistring.pyo
 -rw-r--r-- 1 root   

upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Wesly Chen
# easy_install -U ReviewBoard
run successfully.

when upgrade the site, I got the error. My Linux system is CentOS 6.5 
 64-bit

# rb-site upgrade /var/www/reviews.adara.com
Rebuilding directory structure
Updating database. This may take a while.

The log output below, including warnings and errors,
can be ignored unless upgrade fails.

--  --
Creating tables ...
Creating table accounts_trophy
Creating table attachments_fileattachmenthistory
Creating table diffviewer_rawfilediffdata
Creating table notifications_webhooktarget_repositories
Creating table notifications_webhooktarget
Creating table webapi_webapitoken
Upgrading Review Board from 2.0.20 to 2.5.1.1
There are unapplied evolutions for accounts.
There are unapplied evolutions for attachments.
There are unapplied evolutions for diffviewer.
There are unapplied evolutions for notifications.
There are unapplied evolutions for reviews.
There are unapplied evolutions for webapi.
Adding baseline version for new models
Evolutions in notifications baseline: webhooktarget_extra_state, 
webhooktarget_extra_data_null
Project signature has changed - an evolution is required
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

ERROR:root:Unexpected error: u'index_together'
Traceback (most recent call last):
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
 
line 65, in handle
self.evolve(*app_labels, **options)
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
 
line 125, in evolve
sql.extend(self.evolve_app(app))
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
 
line 164, in evolve_app
app_mutator.run_mutations(mutations)
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
 
line 279, in run_mutations
self.run_mutation(mutation)
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
 
line 268, in run_mutation
model_mutator.run_mutation(mutation)
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
 
line 165, in run_mutation
mutation.mutate(self, self.create_model())
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutations.py",
 
line 785, in mutate
mutator.change_meta(self, self.prop_name, self.new_value)
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
 
line 136, in change_meta
'old_value': self.model_sig['meta'][prop_name],
KeyError: u'index_together'
Traceback (most recent call last):
  File "/usr/bin/rb-site", line 9, in 
load_entry_point('ReviewBoard==2.5.1.1', 'console_scripts', 'rb-site')()
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
 
line 1922, in main
command.run()
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
 
line 1725, in run
site.migrate_database()
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
 
line 452, in migrate_database
self.run_manage_command("evolve", ["--noinput", "--execute"])
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
 
line 676, in run_manage_command
execute_from_command_line([__file__, cmd] + params)
  File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py",
 
line 399, in execute_from_command_line
utility.execute()
  File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py",
 
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py",
 
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py",
 
line 285, in execute
output = self.handle(*args, **options)
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
 
line 65, in handle
self.evolve(*app_labels, **options)
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
 
line 125, in evolve
sql.extend(self.evolve_app(app))
  File 
"/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
 
line 164, in evolve_app
app_mutator.run_mutations(mutations)
  File 

Re: upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Christian Hammond
Hi Wesly,

Did you take a backup of your database prior to upgrade, or is this on a
staging server?

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sat, Nov 14, 2015 at 1:47 PM, Wesly Chen  wrote:

> # easy_install -U ReviewBoard
> run successfully.
>
> when upgrade the site, I got the error. My Linux system is CentOS 6.5
>  64-bit
>
> # rb-site upgrade /var/www/reviews.adara.com
> Rebuilding directory structure
> Updating database. This may take a while.
>
> The log output below, including warnings and errors,
> can be ignored unless upgrade fails.
>
> --  --
> Creating tables ...
> Creating table accounts_trophy
> Creating table attachments_fileattachmenthistory
> Creating table diffviewer_rawfilediffdata
> Creating table notifications_webhooktarget_repositories
> Creating table notifications_webhooktarget
> Creating table webapi_webapitoken
> Upgrading Review Board from 2.0.20 to 2.5.1.1
> There are unapplied evolutions for accounts.
> There are unapplied evolutions for attachments.
> There are unapplied evolutions for diffviewer.
> There are unapplied evolutions for notifications.
> There are unapplied evolutions for reviews.
> There are unapplied evolutions for webapi.
> Adding baseline version for new models
> Evolutions in notifications baseline: webhooktarget_extra_state,
> webhooktarget_extra_data_null
> Project signature has changed - an evolution is required
> Installing custom SQL ...
> Installing indexes ...
> Installed 0 object(s) from 0 fixture(s)
>
> ERROR:root:Unexpected error: u'index_together'
> Traceback (most recent call last):
>   File
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
> line 65, in handle
> self.evolve(*app_labels, **options)
>   File
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
> line 125, in evolve
> sql.extend(self.evolve_app(app))
>   File
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
> line 164, in evolve_app
> app_mutator.run_mutations(mutations)
>   File
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
> line 279, in run_mutations
> self.run_mutation(mutation)
>   File
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
> line 268, in run_mutation
> model_mutator.run_mutation(mutation)
>   File
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
> line 165, in run_mutation
> mutation.mutate(self, self.create_model())
>   File
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutations.py",
> line 785, in mutate
> mutator.change_meta(self, self.prop_name, self.new_value)
>   File
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
> line 136, in change_meta
> 'old_value': self.model_sig['meta'][prop_name],
> KeyError: u'index_together'
> Traceback (most recent call last):
>   File "/usr/bin/rb-site", line 9, in 
> load_entry_point('ReviewBoard==2.5.1.1', 'console_scripts',
> 'rb-site')()
>   File
> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
> line 1922, in main
> command.run()
>   File
> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
> line 1725, in run
> site.migrate_database()
>   File
> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
> line 452, in migrate_database
> self.run_manage_command("evolve", ["--noinput", "--execute"])
>   File
> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
> line 676, in run_manage_command
> execute_from_command_line([__file__, cmd] + params)
>   File
> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py",
> line 399, in execute_from_command_line
> utility.execute()
>   File
> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py",
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py",
> line 242, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File
> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py",
> line 285, in execute
> output = self.handle(*args, **options)
>   File
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
> line 65, in handle
> 

Re: upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Wesly Chen
This is the staging server which just took an image from production one 
(VM).
It cannot be recovered or the db need to be restored?

Christian Hammond於 2015年11月14日星期六 UTC-8下午2時06分27秒寫道:
>
> Hi Wesly,
>
> Did you take a backup of your database prior to upgrade, or is this on a 
> staging server?
>
> Christian
>
> -- 
> Christian Hammond - chri...@beanbaginc.com 
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
> On Sat, Nov 14, 2015 at 1:47 PM, Wesly Chen  > wrote:
>
>> # easy_install -U ReviewBoard
>> run successfully.
>>
>> when upgrade the site, I got the error. My Linux system is CentOS 6.5 
>>  64-bit
>>
>> # rb-site upgrade /var/www/reviews.adara.com
>> Rebuilding directory structure
>> Updating database. This may take a while.
>>
>> The log output below, including warnings and errors,
>> can be ignored unless upgrade fails.
>>
>> --  --
>> Creating tables ...
>> Creating table accounts_trophy
>> Creating table attachments_fileattachmenthistory
>> Creating table diffviewer_rawfilediffdata
>> Creating table notifications_webhooktarget_repositories
>> Creating table notifications_webhooktarget
>> Creating table webapi_webapitoken
>> Upgrading Review Board from 2.0.20 to 2.5.1.1
>> There are unapplied evolutions for accounts.
>> There are unapplied evolutions for attachments.
>> There are unapplied evolutions for diffviewer.
>> There are unapplied evolutions for notifications.
>> There are unapplied evolutions for reviews.
>> There are unapplied evolutions for webapi.
>> Adding baseline version for new models
>> Evolutions in notifications baseline: webhooktarget_extra_state, 
>> webhooktarget_extra_data_null
>> Project signature has changed - an evolution is required
>> Installing custom SQL ...
>> Installing indexes ...
>> Installed 0 object(s) from 0 fixture(s)
>>
>> ERROR:root:Unexpected error: u'index_together'
>> Traceback (most recent call last):
>>   File 
>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>  
>> line 65, in handle
>> self.evolve(*app_labels, **options)
>>   File 
>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>  
>> line 125, in evolve
>> sql.extend(self.evolve_app(app))
>>   File 
>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>  
>> line 164, in evolve_app
>> app_mutator.run_mutations(mutations)
>>   File 
>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>  
>> line 279, in run_mutations
>> self.run_mutation(mutation)
>>   File 
>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>  
>> line 268, in run_mutation
>> model_mutator.run_mutation(mutation)
>>   File 
>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>  
>> line 165, in run_mutation
>> mutation.mutate(self, self.create_model())
>>   File 
>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutations.py",
>>  
>> line 785, in mutate
>> mutator.change_meta(self, self.prop_name, self.new_value)
>>   File 
>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>  
>> line 136, in change_meta
>> 'old_value': self.model_sig['meta'][prop_name],
>> KeyError: u'index_together'
>> Traceback (most recent call last):
>>   File "/usr/bin/rb-site", line 9, in 
>> load_entry_point('ReviewBoard==2.5.1.1', 'console_scripts', 
>> 'rb-site')()
>>   File 
>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>  
>> line 1922, in main
>> command.run()
>>   File 
>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>  
>> line 1725, in run
>> site.migrate_database()
>>   File 
>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>  
>> line 452, in migrate_database
>> self.run_manage_command("evolve", ["--noinput", "--execute"])
>>   File 
>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>  
>> line 676, in run_manage_command
>> execute_from_command_line([__file__, cmd] + params)
>>   File 
>> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py",
>>  
>> line 399, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py",
>>  
>> line 392, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py",

Re: upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Christian Hammond
Glad it's not the production one.

Can you tell me what type of database you're using, and can you get me both
a dump of the database schema (no content, just the schema), and a second
dump containing just the django_evolution and django_project_version table
contents? With those, I can try reproducing the problem here, see what may
have gone wrong.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sat, Nov 14, 2015 at 2:11 PM, Wesly Chen  wrote:

> This is the staging server which just took an image from production one
> (VM).
> It cannot be recovered or the db need to be restored?
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午2時06分27秒寫道:
>>
>> Hi Wesly,
>>
>> Did you take a backup of your database prior to upgrade, or is this on a
>> staging server?
>>
>> Christian
>>
>> --
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> On Sat, Nov 14, 2015 at 1:47 PM, Wesly Chen  wrote:
>>
>>> # easy_install -U ReviewBoard
>>> run successfully.
>>>
>>> when upgrade the site, I got the error. My Linux system is CentOS 6.5
>>>  64-bit
>>>
>>> # rb-site upgrade /var/www/reviews.adara.com
>>> Rebuilding directory structure
>>> Updating database. This may take a while.
>>>
>>> The log output below, including warnings and errors,
>>> can be ignored unless upgrade fails.
>>>
>>> --  --
>>> Creating tables ...
>>> Creating table accounts_trophy
>>> Creating table attachments_fileattachmenthistory
>>> Creating table diffviewer_rawfilediffdata
>>> Creating table notifications_webhooktarget_repositories
>>> Creating table notifications_webhooktarget
>>> Creating table webapi_webapitoken
>>> Upgrading Review Board from 2.0.20 to 2.5.1.1
>>> There are unapplied evolutions for accounts.
>>> There are unapplied evolutions for attachments.
>>> There are unapplied evolutions for diffviewer.
>>> There are unapplied evolutions for notifications.
>>> There are unapplied evolutions for reviews.
>>> There are unapplied evolutions for webapi.
>>> Adding baseline version for new models
>>> Evolutions in notifications baseline: webhooktarget_extra_state,
>>> webhooktarget_extra_data_null
>>> Project signature has changed - an evolution is required
>>> Installing custom SQL ...
>>> Installing indexes ...
>>> Installed 0 object(s) from 0 fixture(s)
>>>
>>> ERROR:root:Unexpected error: u'index_together'
>>> Traceback (most recent call last):
>>>   File
>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>> line 65, in handle
>>> self.evolve(*app_labels, **options)
>>>   File
>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>> line 125, in evolve
>>> sql.extend(self.evolve_app(app))
>>>   File
>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>> line 164, in evolve_app
>>> app_mutator.run_mutations(mutations)
>>>   File
>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>> line 279, in run_mutations
>>> self.run_mutation(mutation)
>>>   File
>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>> line 268, in run_mutation
>>> model_mutator.run_mutation(mutation)
>>>   File
>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>> line 165, in run_mutation
>>> mutation.mutate(self, self.create_model())
>>>   File
>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutations.py",
>>> line 785, in mutate
>>> mutator.change_meta(self, self.prop_name, self.new_value)
>>>   File
>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>> line 136, in change_meta
>>> 'old_value': self.model_sig['meta'][prop_name],
>>> KeyError: u'index_together'
>>> Traceback (most recent call last):
>>>   File "/usr/bin/rb-site", line 9, in 
>>> load_entry_point('ReviewBoard==2.5.1.1', 'console_scripts',
>>> 'rb-site')()
>>>   File
>>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>> line 1922, in main
>>> command.run()
>>>   File
>>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>> line 1725, in run
>>> site.migrate_database()
>>>   File
>>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>> line 452, in migrate_database
>>> self.run_manage_command("evolve", ["--noinput", "--execute"])
>>>   File
>>> 

Re: upgrade from 2.0.20 to 2.5.1.1 failed

2015-11-14 Thread Wesly Chen
Previously, I upgraded from 1.7.27  to 2.0.20 without problem.

Wesly Chen於 2015年11月14日星期六 UTC-8下午2時30分40秒寫道:
>
> I used MySQL
> mysql-server-5.1.73-5.el6_6.x86_64
>
> rb-mysql-schema.sql  is the reviewboard schema
> ($ mysqldump -uroot -p --databases reviewboard --no-data --quick 
> --single-transaction > /tmp/rb-mysql-schema.sql)
> rb-mysql-django.sql  is these table dump,   django_evolution and 
> django_project_version
> ($ mysqldump -uroot -p reviewboard django_evolution django_project_version 
> --quick --single-transaction > /tmp/rb-mysql-django.sql)
>
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午2時13分28秒寫道:
>>
>> Glad it's not the production one.
>>
>> Can you tell me what type of database you're using, and can you get me 
>> both a dump of the database schema (no content, just the schema), and a 
>> second dump containing just the django_evolution and django_project_version 
>> table contents? With those, I can try reproducing the problem here, see 
>> what may have gone wrong.
>>
>> Christian
>>
>> -- 
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> On Sat, Nov 14, 2015 at 2:11 PM, Wesly Chen  wrote:
>>
>>> This is the staging server which just took an image from production one 
>>> (VM).
>>> It cannot be recovered or the db need to be restored?
>>>
>>> Christian Hammond於 2015年11月14日星期六 UTC-8下午2時06分27秒寫道:

 Hi Wesly,

 Did you take a backup of your database prior to upgrade, or is this on 
 a staging server?

 Christian

 -- 
 Christian Hammond - chri...@beanbaginc.com
 Review Board - https://www.reviewboard.org
 Beanbag, Inc. - https://www.beanbaginc.com

 On Sat, Nov 14, 2015 at 1:47 PM, Wesly Chen  wrote:

> # easy_install -U ReviewBoard
> run successfully.
>
> when upgrade the site, I got the error. My Linux system is CentOS 6.5 
>  64-bit
>
> # rb-site upgrade /var/www/reviews.adara.com
> Rebuilding directory structure
> Updating database. This may take a while.
>
> The log output below, including warnings and errors,
> can be ignored unless upgrade fails.
>
> --  --
> Creating tables ...
> Creating table accounts_trophy
> Creating table attachments_fileattachmenthistory
> Creating table diffviewer_rawfilediffdata
> Creating table notifications_webhooktarget_repositories
> Creating table notifications_webhooktarget
> Creating table webapi_webapitoken
> Upgrading Review Board from 2.0.20 to 2.5.1.1
> There are unapplied evolutions for accounts.
> There are unapplied evolutions for attachments.
> There are unapplied evolutions for diffviewer.
> There are unapplied evolutions for notifications.
> There are unapplied evolutions for reviews.
> There are unapplied evolutions for webapi.
> Adding baseline version for new models
> Evolutions in notifications baseline: webhooktarget_extra_state, 
> webhooktarget_extra_data_null
> Project signature has changed - an evolution is required
> Installing custom SQL ...
> Installing indexes ...
> Installed 0 object(s) from 0 fixture(s)
>
> ERROR:root:Unexpected error: u'index_together'
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>  
> line 65, in handle
> self.evolve(*app_labels, **options)
>   File 
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>  
> line 125, in evolve
> sql.extend(self.evolve_app(app))
>   File 
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>  
> line 164, in evolve_app
> app_mutator.run_mutations(mutations)
>   File 
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>  
> line 279, in run_mutations
> self.run_mutation(mutation)
>   File 
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>  
> line 268, in run_mutation
> model_mutator.run_mutation(mutation)
>   File 
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>  
> line 165, in run_mutation
> mutation.mutate(self, self.create_model())
>   File 
> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutations.py",
>  
> line 785, in mutate
> mutator.change_meta(self, self.prop_name, self.new_value)
>   File 
> 

Re: Syntax highlighting in Diff Viewer doesn't work after upgrade from 1.7.27 to 2.0.20

2015-11-14 Thread Wesly Chen
Here is some python package information

#  ls -1 /usr/lib/python2.6/site-packages/

argparse-1.2.1-py2.6.egg-info
argparse.py
argparse.pyc
argparse.pyo
asciidocapi.py
asciidocapi.pyc
asciidocapi.pyo
dateutil
dbus
dbus_bindings.py
dbus_bindings.pyc
dbus_bindings.pyo
distribute-0.6.10-py2.6.egg-info
django
Django-1.4.21-py2.6.egg-info
Django-1.6.11-py2.6.egg
django_evolution
django_evolution-0.6.9-py2.6.egg-info
django_evolution-0.7.5-py2.6.egg
django_haystack-2.4.0-py2.6.egg
django_pipeline-1.2.24-py2.6.egg-info
django_pipeline-1.3.27-py2.6.egg
djblets
Djblets-0.7.30-py2.6.egg-info
Djblets-0.8.22-py2.6.egg
docutils
docutils-0.6-py2.6.egg-info
easy-install.pth
easy_install.py
easy_install.pyc
easy_install.pyo
ecdsa-0.13-py2.6.egg
feedparser-5.1.2-py2.6.egg-info
feedparser.py
feedparser.pyc
feedparser.pyo
flup
flup-1.0.2-py2.6.egg-info
futures-3.0.3-py2.6.egg
iniparse
iniparse-0.3.1-py2.6.egg-info
libproxy.py
libproxy.pyc
libproxy.pyo
markdown
Markdown-2.0.1-py2.6.egg-info
Markdown-2.4.1-py2.6.egg
memcache.py
memcache.pyc
memcache.pyo
mimeparse-0.1.3-py2.6.egg
mimeparse.py
mimeparse.pyc
mimeparse.pyo
nose
nose-0.10.4-py2.6.egg-info
odict
odict-1.5.0-py2.6.egg-info
paramiko
paramiko-1.15.3-py2.6.egg
paramiko-1.7.5-py2.6.egg-info
pillowfight-0.2-py2.6.egg
pipeline
pkg_resources.py
pkg_resources.pyc
pkg_resources.pyo
ply
ply-3.4-py2.6.egg-info
pycrypto-2.6.1-py2.6-linux-x86_64.egg
pygments
Pygments-1.1.1-py2.6.egg-info
Pygments-2.0.2-py2.6.egg
python_dateutil-1.4.1-py2.6.egg-info
python_dateutil-1.5-py2.6.egg
python_memcached-1.43-py2.6.egg-info
python_mimeparse-0.1.4-py2.6.egg-info
pytz
pytz-2010h-py2.6.egg-info
RBTools-0.8alpha0.dev-py2.6.egg
recaptcha
recaptcha_client-1.0.6-py2.6.egg-info
recaptcha_client-1.0.6-py2.6-nspkg.pth
reviewboard
ReviewBoard-1.7.27-py2.6.egg-info
ReviewBoard-2.0.20-py2.6.egg
roman.py
roman.pyc
roman.pyo
rpmUtils
setuptools
setuptools-0.6c11-py2.6.egg-info
setuptools.pth
site.py
site.pyc
site.pyo
six-1.9.0-py2.6.egg
slimit
slimit-0.8.1-py2.6.egg-info
sos
urlgrabber
urlgrabber-3.9.1-py2.6.egg-info
webtests
Whoosh-2.7.0-py2.6.egg
yum
yumutils


Wesly Chen於 2015年11月14日星期六 UTC-8下午3時22分01秒寫道:
>
> 1. System setting => Diff Viewer settings => Show syntax highlighting  is 
> checked.
> 2. Account settings " Enable syntax highlighting in the diff viewer" is 
> checked.
>
> My system is CentOS 6.5 64-bit with MySQL 5.1.
>
> Any information needed for this issue?
>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.