Author Topic: git file gets locked in slickedit, but isn't being edited  (Read 249 times)

pbrightly

  • Community Member
  • Posts: 51
  • Hero Points: 6
git file gets locked in slickedit, but isn't being edited
« on: June 21, 2021, 03:40:05 pm »
I've got a bash library I'm using to implement several other scripts.  At any one time, I switch between a few branches to work on different scripts. 

When I want to update source from master in each branch, a file that is NOT being edited is locked and a pull fails on subsequent branches.
On checkout of master branch:
Code: [Select]
error: unable to unlink old 'tools/bin/logging.sh': Permission denied
M       tools/bin/logging.sh
Switched to branch 'master'
Now my local master branch is showing a change that doesn't belong.
Code: [Select]
Your branch is behind 'origin/master' by 4 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
## master...origin/master [behind 4]
 M tools/bin/logging.sh

I do some minimal testing of scripts in the build buffer, which I have setup to run WSL.  Build doesn't seem active at the moment.

If I exit slickedit, the problem goes away.
Before/After exiting slickedit:
Code: [Select]
pbrightl@grom (mzr7x0x) 2021-06-21 10:28:11 /sandbox/integration-testing
$ git checkout tools/bin/logging.sh
error: unable to unlink old 'tools/bin/logging.sh': Permission denied
Updated 0 paths from the index

pbrightl@grom (mzr7x0x) 2021-06-21 10:28:21 /sandbox/integration-testing
$ git checkout tools/bin/logging.sh
Updated 1 path from the index
Any idea what else in Slick could be locking the file when it's not being edited?  Or how to determine it?

PS. This has happened a few times in the last week. I didn't report the first time.
« Last Edit: June 21, 2021, 04:50:38 pm by pbrightly »

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2679
  • Hero Points: 143
Re: git file gets locked in slickedit, but isn't being edited
« Reply #1 on: June 21, 2021, 04:55:45 pm »
  • Is the problem always with logging.sh?
  • If so, how large is logging.sh?
  • Can you make this happen, and then run "list-buffers -h" on the SlickEdit command line?  This will show a lot of hidden system buffers, but is logging.sh in the list?

pbrightly

  • Community Member
  • Posts: 51
  • Hero Points: 6
Re: git file gets locked in slickedit, but isn't being edited
« Reply #2 on: June 21, 2021, 05:10:00 pm »
  • yes, always logging.sh
  • -rwxr-xr-x 1 pbrightl pbrightl 6152 Jun 21 11:25 logging.sh
  • thanks, I'll try list-buffers -h next time