Sidebarenhancements sublime text 3 не работает
Мне было интересно, может ли кто-нибудь сказать мне, как сделать так, чтобы возвышенный текст 3 автоматически обновлял боковую панель, когда я добавляю новую папку / файл в текущий проект в Finder (osx).
Прямо сейчас мне нужно вручную перейти в Project -> Refresh Folders.
Мои пользовательские настройки, вероятно, не являются проблемой, поскольку они очень простые:
Если бы кто-нибудь мог помочь, это было бы здорово, поскольку я пробовал гуглить, искал ответ на этот вопрос, но не нашел ничего, что работает.
У меня эта проблема также с v3, но в Windows 8 работает с подключенным общим ресурсом Samba. Я создаю папку в Sublime, но она не отображается до обновления.
Недавно у меня возникла эта проблема, и оказалось, что она связана с DropBox. После того, как я удалил DropBox и перезапустил компьютер, обновление папки начало работать, как раньше. Кроме того, DropBox влиял на несколько других приложений, в частности на SourceTree и Transmit, а также на Sublime Text 3.
Dropbox вызывает огромное количество обращений к каталогам, что в конечном итоге заставляет Finder настраивать эти другие приложения.
У меня была такая же проблема. Вы всегда можете привязать обновление папки к горячей клавише . Хотя это не полное исправление для автоматического обновления, оно все же избавляет вас от более длительного ручного обновления. Я считаю, что именно так работает и Dreamweaver.
У меня была такая же проблема с ST3 (OSX 10.9.2). Что-то не так с корневой папкой моих проектов. Я создал новую папку Code1 , переместил туда все свои проекты, удалил старую Code папку и переименовал новую Code1 в Code . Это волшебство вернуло все на круги своя.
Откройте консоль и посмотрите, есть ли ошибки. Он регистрирует изменения в файловой системе.
Для меня ошибки были такими FSEventStreamStart failed on path foo (FSEventStreamCreate returned 0x7f91ad9d8100) для каждой папки в моем проекте.
У меня была эта проблема, когда я использовал диски, которые были смонтированы с помощью samba. Я предполагаю, что это как-то связано с тем, что ОС или файловая система не запускают правильные события для возвышенного, чтобы понять, что в папках есть новый материал.
Я предполагаю, что диск, на котором вы работаете, принадлежит смонтированному диску, у которого может быть другая файловая система. Попробуйте переместить проект и посмотрите, поможет ли это. Если это так, возможно, вам следует посмотреть, какие флаги и прочее вы используете при монтировании диска, на котором изначально был сохранен проект.
Как бы вы это исправили, но я понятия не имею, так как у меня нет опыта работы с OSX.
Я не уверен, что это связано с тем, что события не были запущены, поскольку для меня он не обновляется намного быстрее, даже когда я явно нажимаю «Обновить». Но я полностью согласен, что это связано с Samba; у меня случается только с удаленно смонтированными файловыми системами.
Это могло быть результатом ошибки с плагином SidebarEnhancements, как это было со мной. Используя управление пакетами, я удалил плагин. Я не мог упаковать установку плагина обратно, так как он не отображался в списке доступных плагинов. Поэтому вместо этого я следил за этой проблемой github в репо и клонировал ее в правильный каталог.
Еще одно примечание: в Sublime я щелкнул «Sublime Text» -> «Настройки» -> «Обзор пакетов». чтобы открыть правильное место для клонирования репо в Finder. Если вы нажмете на значок папки на верхней панели появившегося окна поиска, вы сможете перетащить его в iTerm2, чтобы оказаться в нужном месте, прежде чем запускать приведенную git clone ниже команду.
git clone https://github.com/titoBouzout/SideBarEnhancements.git "SideBarEnhancements" cd "SideBarEnhancements"
Наконец, выход из ST3 и повторное открытие сработали для меня. Надеюсь это поможет.
I was wondering if anyone could tell me how to make it so that sublime text 3 automatically updates the sidebar when i add a new folder/file to the current project in finder (osx).
Right now, I have to manually go to Project -> Refresh Folders
My user preferences are probably not the issue as they are very basic:
If anyone could help that would be great as I have tried googling, searching for an answer to this but havent found anything that works.
Thanks in advance.
I'm having this problem also with v3, but on Windows 8 working from a mounted Samba share. I create the folder in Sublime, but it doesn't show up until refresh.
16 Answers 16
I recently began experiencing this issue and it turned out to be DropBox related. Once I removed DropBox and restarted my machine the folder refreshing began working as before. Also, DropBox was affecting several other apps, specifically SourceTree and Transmit as well as Sublime Text 3.
Dropbox causes a huge amount directory hits which eventually causes Finder to tweak out with these other apps.
I had this same issue. You could always bind the folder refresh to a hotkey. While this is not a complete fix for auto-updating, it still saves you from a more lengthy manual refresh. I believe this is how Dreamweaver works as well.
I had the same issue with ST3 (OSX 10.9.2). It was something wrong with the root folder of my projects. I created new folder Code1 , moved all of my projects there, removed old Code folder and renamed new Code1 to Code . This bit of magic returned things back to normal.
Open the console and see if there are any errors. It logs when there are changes to the filesystem.
For me the errors shown were like this FSEventStreamStart failed on path foo (FSEventStreamCreate returned 0x7f91ad9d8100) for each folder in my project.
I've had this problem when I used disks that where mounted with samba. My best guess is that this has something to do with the OS or filesystem not triggering the correct events for sublime to realize that there's new stuff in the folders.
I'm guessing that the disk on which the project you're working on belongs to a mounted disk, that might have a different filesystem. Try moving the project and see if that helps. If that is the case maybe you ought to see over which flags and stuff you're using when mounting the disk on which the project was originally stored.
How you would go about fixing that however I have no clue about since I don't have any experience with OSX.
I am not sure if it is a matter of events not triggered, since to me it doesn't update much faster even when I explicitly hit "Refresh". But I totally agree it is related to Samba; to me happens just with remotely mounted filesystems.
This could be the result of an error with the plugin SidebarEnhancements, as was the case for me. Using package control I removed the plugin. I couldn't package install the plugin back as it would not show up on the list of available plugins. So instead I followed this github issue in the repo and got it cloned into the correct directory.
Another side note, in sublime I clicked "Sublime Text" -> "Preferences" -> "Browse Packages". to open up the correct location to clone the repo in finder. If you click on the folder icon in the top bar of the resulting finder window you can actually drag this into iTerm2 so that you are in the proper location before running the git clone command included below.
Im using the st3 on mac, setup a project but 'open in browser' wont pull up page. It just does nothing. open / run works for html files.
[title edited by tito]
The text was updated successfully, but these errors were encountered:
FichteFoll commented Sep 20, 2016 •
@braver, yes of course. Package Control is only about the packages currently listed on it. If a package is removed, that functionality becoms available for a new package to take.
You could also fork the original package and continue developing it under the same name so that all the 100k users of the original SideBarEnhancements package will continue to receive updates. (As long as the license isn't violated.)
Just note that we're currently very slow with reviewing package additions.
titoBouzout commented Aug 28, 2013
Which version of Windows do you have?
It works correct here, in multiple browsers. Pr%C3%A1ca is the correct encoded form, to load the folder. Also can you please specific the full URL?
titoBouzout commented Aug 17, 2013
please paste this in the console
And with the HTML file focused, hit F12, tell me what popups, in the console. There should be at least 1 side_bar_open_in_browser.
titoBouzout commented Aug 22, 2013
IIRC, It was in the reversed way, that shortcut at some point started to overwrite the shortcut of this package.
lukaszahorec commented Aug 28, 2013
I´m using Windows 8 64bit,
full path is "file:///E:/Pr%C3%A1ca/WEB/index.html" , files which don´t contain these characters are opened fine
titoBouzout commented Aug 22, 2013
F12 executes Open in Browser with SideBarEnhancements installed.
ypyang237 commented Sep 14, 2016
Note: Make sure the package is named SideBarEnhancements not SideBarEnhancements-ST3
titoBouzout commented Aug 28, 2013
@Lukaydo fixed encoding for file:// URIs, now should work, please update.
Thanks for reporting!
hussani commented Aug 22, 2013
The problem its the shortcut on ST3.
By default, ST3 have "F12" shortcut to "Goto Definition".
@titoBouzout, you can change the commant to "shift+F12" or "ctrl+F12"?
sigilsnippets commented Aug 18, 2013
the first side_bar_open_in_browser command is triggered by keyboard command, the second by the right click submenu
lukaszahorec commented Aug 28, 2013
@titoBouzout updated, and it is now working thanks for the fix
titoBouzout commented Sep 20, 2016
@FichteFoll I dont think is good idea to reuse this or any other package name again. People will believe they installing this, or you just taking over my own package. they may also will believe is this package and they installed the other one. I didnt give up to the package, I gave up to the distribution channel. This topic is over.
ryentzer commented Sep 25, 2013
I've tried everything listed in the issues to get Chrome Canary preview working with ST3 on OS X without success.
Here is my console log:
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 524, in run_
return self.run(**args)
File "SideBar in /Users/ryentzer/Library/Application Support/Sublime Text 3/Installed Packages/SideBarEnhancements.sublime-package", line 1252, in run
File "sidebar.SideBarItem in /Users/ryentzer/Library/Application Support/Sublime Text 3/Installed Packages/SideBarEnhancements.sublime-package", line 67, in url
File "X/json/init.py", line 322, in loads
File "X/json/decoder.py", line 352, in decode
File "X/json/decoder.py", line 368, in raw_decode
File "X/json/scanner.py", line 38, in _scan_once
File "X/json/decoder.py", line 198, in JSONObject
File "X/json/scanner.py", line 38, in _scan_once
File "X/json/decoder.py", line 220, in JSONObject
ValueError: Expecting property name enclosed in double quotes: line 4 column 5 (char 70)
FichteFoll commented Sep 15, 2016
Ah, right. Tito's repos are a bit weird. Thanks for the heads up.
lukaszahorec commented Aug 28, 2013
There is a problem with this shortcut, if I try to open file in browser, and file path contains characters like "á,č,ž . ", than windows pull error that file cannot be find, for example I have path which contains folder called "Práca" > than in windows error it´s showed as "Pr%C3%A1ca"
titoBouzout commented Aug 22, 2013
titoBouzout commented Aug 20, 2013
How looks your preview URLs file? ..
shobhitg commented Sep 19, 2016
@braver Definitely! If someone could clone this and make it available on Package Control, that would be awesome.
braver commented Sep 20, 2016
@FichteFoll Thanks for the feedback. I don't necessarily intend to fork and publish this, although it's good to know that that would work and would even automatically migrate existing users. I might though, who knows what will happen.
anhskohbo commented Aug 16, 2013
Me too. i'm running on ubuntu.
Seem to conflict with the ST3
alexblunck commented Sep 14, 2016
It looks like the package was "removed" from the Package Control registry along with all packages from titoBouzout.
CathyMacars commented Jan 24, 2014
Ah yes! I had forgotten about that file. I had it backed up from when I was using SideBarEnhancements on ST2. I just figured out that the first time I installed ST3, I placed it in the wrong folder. Sorry for the silly mistake! But thanks for the help. Everything is back to working now. (:
Hey,
hoping not to open multiple issues, I'm asking for help about installing SideBarEnhancements.
I reinstalled ST3 just a few minutes ago and couln't find the plugin via Package Control.
Is there a mistake on my part, or is there a real issue?
Hope you guys can help me out!
Thanks in advance.
The text was updated successfully, but these errors were encountered:
sigilsnippets commented Aug 17, 2013
HI, thanks for your help and sorry for response lag.
I tried to use the open in browser command with the console log open and it didn't throw any errors or anything :/ all I have is a message saying : 'reloading Packages/User/Fetch.sublime-settings'
are there configuration files relevant to this process I could have messed up?
titoBouzout commented Aug 16, 2013
Please go the the main menu and click View -> Show console,
Then try to preview a file, and let me know if something popups there.
braver commented Sep 19, 2016
@FichteFoll previously similar packages have been blocked from package control to prevent duplication. Just curious, would you now accept a package similar to this now that it is no longer listed?
hussani commented Aug 22, 2013
But F12 of SideBarEnhancements overwrite the F12 shortcut of Goto Definition?
FichteFoll commented Sep 14, 2016 •
"Add Repository" will continue to work.
By the way, the reason why this occurs only now is because removals have been disabled for a long time as there were (network) issues with crawling. The packages have been removed from the main channel repository months ago.
titoBouzout commented Aug 29, 2013
You are welcome!
ryentzer commented Sep 25, 2013
I've deleted the old one and reinstalled. Still no go. Here is the latest console:
Writing file /Users/ryentzer/Dropbox/Rick/Web/JS/Learning jquery/chp2/index.html with encoding UTF-8 (atomic)
Traceback (most recent call last):
File "X/json/scanner.py", line 30, in _scan_once
IndexError: string index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "X/json/decoder.py", line 368, in raw_decode
File "X/json/scanner.py", line 32, in _scan_once
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 524, in run_
return self.run(**args)
File "/Users/ryentzer/Library/Application Support/Sublime Text 3/Packages/SideBarEnhancements-st3/SideBar.py", line 1252, in run
url = item.url(type) or item.uri()
File "/Users/ryentzer/Library/Application Support/Sublime Text 3/Packages/SideBarEnhancements-st3/sidebar/SideBarItem.py", line 67, in url
data = json.loads(data, strict=False, object_pairs_hook=collections.OrderedDict)
File "X/json/init.py", line 322, in loads
File "X/json/decoder.py", line 352, in decode
File "X/json/decoder.py", line 370, in raw_decode
ValueError: No JSON object could be decoded
Hello, I have tried a lot of things already, but still can't get this to work. I have read most of the issues here, the docs, and even some of sublime's forum posts. I just uninstalled ST3, deleting everything related to it that I could possibly find and installed it again from scratch. I have only this plugin installed now (via package control, btw). And I haven't changed/modified anything yet, not even this plugin's preferences. I have a mac running os x 10.9.1 and all my browsers (except safari) where installed via homebrew, so I only have symlinks to them on /Applications (not ~/Applications). I have, though tried linking them on ~/Applications with no success, and then I tried uninstalling only firefox (since i know this is the plugin's default) from homebrew & installing it manually, so that the app itself sits in ~/Applications, not the symlink, and still no dice (after the attempt, I have since reinstalled firefox via homebrew). So. Help?
The text was updated successfully, but these errors were encountered:
titoBouzout commented Aug 17, 2013
If you don't provide information, at least for what I ask, is going to be difficult :P
colthreepv commented Sep 15, 2016
@FichteFoll actually, it doesn't if you don't specify the st3 branch (this repo doesn't use master )
and package control will resume it's work.
Credits: skuroda
titoBouzout commented Sep 14, 2016
Yes, I had problems to add new packages to the repository because there's a "new"(has some time there) requirement to maintain a version number, and I don't want to maintain versions numbers, because to me a date is enough already. I attempted to automate the version number by adding something without any meaning, just a date, but that broke the complete repository because "large number". So because of this disagreement, I removed all my packages from there. Rules changed, so Im no longer interested to distribute my packages via that channel. However you may decide to add this package manually via the option "Add Repository", this may or may not work, Im not uptodate with the requirements of that to work, and as I say, Im not interested.
hussani commented Aug 22, 2013
Maybe ST3 not solve the shotcuts conflicts.
titoBouzout commented Sep 25, 2013
CathyMacars commented Jan 23, 2014
- I don't know, I guess the comments on the 'Side Bar.sublime-settings' gave me that idea
- Both
- This is interesting. The file name is workspace.php (it's php only because I use includes for the header & footer, the rest is all html), but your question got me wondering why you asked it, so I created an index.html as a test and. it worked. So, no php? Correct me if I'm wrong, but this isn't a problem in ST2, right?
- I sure can, and I did, but nothing poped up
titoBouzout commented Jan 23, 2014
Just right click any file of folder in the sidebar, and select -> "Project" -> "Edit Preview URLs", this will open an empty file, paste something like this:
Читайте также: