Open noa opened 10 years ago
Strange. Haven't encountered this issue before. Using mavericks version of Mac OS and is this a fresh open of Glue in Sublime Text or did you use it and close the plugin before this occurred?
Also can you display your files in the current working directory on open and then on directory change to verify the directory that you are in?
OSX 10.9.4 and I installed Glue using the package manager today.
ls displays the files in my project directory after a fresh open of Glue. After I type "cd build", ls continues to show the files in the project directory (rather than in project/build, as desired).
The source of the weirdness could be symlinks?
My project directory is ~/External/Work/project which symlinks to my external drive /Volumes/LaCie/Work/project (which is what's shown in the Glue terminal output).
I bet you are correct. This is a home brewed cd that I made because you can't implement the system cd command. Does cd work in your non-sym linked directory structure?
Hmm, surprisingly I get the same behavior in non-symlinked directories. Note: this is using the latest version of Sublime Text 3.
Here's output for a non-symlinked project:
✪ [ /Users/nico/Work/libPLUMP ] ls AUTHORS COPYING ChangeLog INSTALL LICENSE Makefile.am NEWS README aclocal.m4 autom4te.cache bindings config.log configure configure.ac examples libplump m4 src terminal.glue
✪ [ /Users/nico/Work/libPLUMP/src ] cd src /Users/nico/Work/libPLUMP/src
✪ [ /Users/nico/Work/libPLUMP ] ls AUTHORS COPYING ChangeLog INSTALL LICENSE Makefile.am NEWS README aclocal.m4 autom4te.cache bindings config.log configure configure.ac examples libplump m4 src terminal.glue
Ok. Thanks for reporting it. Will take a look into it and let you know what I come up with.
Sorry for the delay. Have been on vacation and just returning. I cannot reproduce this issue in the current version of ST3 (build 3065). Is it still happening?
I'm seeing this as well, but even more bizarrely. After the first command, Glue seems to go back to my user directory. I'm launching it using the Command Palette on an open file in an open project.
█ [ /Users/Chetan/Dropbox/Development/nupic.research ] ls
LICENSE.txt
README.md
fetch_binary.py
image_test
nupic_sha.txt
sdr_paper
sensorimotor
█ [ /Users/Chetan ] ls
Applications
Desktop
Documents
Downloads
Dropbox
Google Drive
Library
Movies
Music
Pictures
Public
dotfiles
█ [ /Users/Chetan ] ls
Applications
Desktop
Documents
Downloads
Dropbox
Google Drive
Library
Movies
Music
Pictures
Public
dotfiles
Ok I will take a look at it. It looks like the initial directory is being set incorrectly. Thanks for the report. Will let you know what I find.
Are you using sublime text 2 or 3?
3
On Wed, Dec 17, 2014, 6:58 AM Chris Simpkins notifications@github.com wrote:
Are you using sublime text 2 or 3?
Reply to this email directly or view it on GitHub https://github.com/chrissimpkins/glue/issues/25#issuecomment-67333497.
Thanks. Python 2 in st2 and Python 3 in st3. Let me look into it.
Hi Chris, I can also report that I am having this issue... i run 'cd ..', which displays the path to one directory up from the previous, but then running 'pwd' prints the previous directory, and 'ls' also lists the contents of the previous directory
Thanks for the report. I haven't dug into this code for some time. It has proven problematic to test inside the ST Python interpreter (across multiple platforms and multiple versions of ST...). Will look into it.
On a Mac, I tried the following:
✪ [ /Volumes/LaCie/Work/project/build ] cd build /Volumes/LaCie/Work/project/build
✪ [ /Volumes/LaCie/Work/project ] make make: *\ No targets specified and no makefile found. Stop.