vim - Error reading cscope connection after database update from cron -



vim - Error reading cscope connection after database update from cron -

i have script setup runs every night on projects , updates cscope databases. script deletes existing cscope files (.files, .out etc) , generates new ones.

when script run via cron job, finish error e262: error reading cscope connection 0 within vim when seek lookup symbol. when run script manually, there's no problem.

the gist of script -

delete existing cscope.* , tags files go through entire project , generate cscope.files build cscope database using cscope -b -q build tags database using ctags --extra=+f -l cscope.files

any ideas?

found problem.

i needed source bash_profile in script environment variables available script.

adding source ~/.bash_profile top of script fixed issue.

vim cron tags cscope

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -