I'm having a problem with Xdebug not working with Sublime Text 3. The server I've used is wampserver. I have use the Xdebug wizard for which version I'm supposed to install. Here's the picture:
Here's the phpinfo for Xdebug:
Here's where the Xdebug extension is for Xdebug in php.ini:
; XDEBUG Extension
[xdebug]
zend_extension ="P:\wamp64\bin\php\php7.0.4\ext\php_xdebug-2.4.1-7.0-vc14-x86_64.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_output_dir ="P:/wamp64/tmp"
xdebug.show_local_vars=0
I've tried Xdebug sublime settings in Sublime Text like
when I tried testing my PHP code, and it still didn't do anything.
I follow the website https://www.sitepoint.com/debugging-xdebug-sublime-text-3/ for configuring Xdebug, and it still didn't work at all.
In sublime settings you need a real url (you've put there a folder path).
You need something like:
"url": "dev.myproject.com"
You can create you virtual host (at least in WampServer) directly from the main page of the Server (localhost - if you haven't override it - should give you the main configuration)
In php.ini, besides other xdebug attributes, I found that I need the following activated in order for everything to work:
xdebug.remote_enable = On
xdebug.profiler_enable = On
xdebug.profiler_enable_trigger = On
Let me know if you need more info
Check sublime terminal (Ctrl + ~). If it shows an error like, "xdebug xml.etree.ElementTree.ParseError: not well-formed (invalid token)," then it is issue of sublime xdebug client installed through sublime package manager.
Uninstall xdebug client installed through Package manager:
Preferences > Package control > remove package > xdebug client
Quit sublime
Install client manually through source code:
Get fixed source code of xdebug client from GitHub: SublimeTextXdebug.
Download source code (do not follow install instructions, just download raw source code)
Copy source code directory to sublime packages directory. In mac it is here
/users/[username]/library/Application Support/Sublime Text 3/Packages/
Related
Whenever i try save a go file inside vc code i get this pop up Failed to run '/usr/local/go/bin/go env. The config change may not be applied correctly. . Also there is any no go intelliSense, code navigation, and code editing support.
I guess, you are using go modules and have go.mod file inside project directory. In this case, inside VsCode, go to preferences. Under extensions, select Go. Untick checkbox labelled "Infer GOPATH from the workspace root." for both "User" and "Workspace".
Close all terminal and VsCode instance, and restart VsCode. It should no longer display the error, and prompt message to install Go Tools. Else you can manually install go tools from VsCode (pressing crtl/cmd + shift + P), which will bring back intellisense and linting.
In case you are using Mac OS and installed Go via homebrew add
"go.goroot": "/opt/homebrew/opt/go/libexec"
To your settings.json file. The path may be different. Check it via export GOROOT="$(brew --prefix golang)/libexec".
Also see install go on mac
I have solved this issue. The solution is that, create a new Golang project and move all the required logic files from older project to newer project and it will work. The problem is with .mod and .sum files. It is a older project that i have created on my other laptop that has Ubuntu based Feren OS. When I moved this project to my newer laptop that has Ubuntu based Zorin OS. It creates problem. So after trying lots of solution, I just created a new Golang project and moves all the required files and it works.
I'm trying to get sublime to highlight smalltalk .st files but am running into some trouble.
A quick search found this package, but after adding the repository like it says in the README, I don't see the package that its supposed to add when doing Package Control: install package.
I also tried looking into this one but am completely lost when it says This syntax file can be converted to .tmLanguage using PackageDev 'Convert to PList'. Place the converted file in Packages/Smalltalk/Smalltalk.tmLanguage and reopen any .st file.
Can anybody help me out please? I'm running ST3 on MacOSX.
The installtion instructions using Package Control did not work for me either, but you can take the language file, Smalltalk.tmLanguage, from Smalltalk syntax for Sublime Text 3 and use the manual installation instructions you cited:
Place the file in Packages/Smalltalk/Smalltalk.tmLanguage
As you asked about macOS, on macOS this means:
/Users/<your user name>/Library/Application Support/Sublime Text 3/Packages/Smalltalk/Smalltalk.tmLanguage
The Library folder might be hidden by default. Use the Terminal or Finder's Go ▶︎ Go To Folder… to access it.
For Smalltalk/X you can download a highlighting package at - sublime highlighting for smalltalk/X called Smalltalk.sublime-package.
You can copy it to the path provided by #MartinW above.
I am aware that I can see all installed packages in Sublime using Ctrl+Shift+P and selecting Package Control: List Packages.
I have many packages installed (>20) and I need a way to export their names (and ideally also the link to their https://packagecontrol.io/ page) to a text file or similar output.
Can this be done at all?
You can easily get the list of installed packages by looking at Package Control's user preferences file: Preferences -> Package Settings -> Package Control -> Preferences - User and checking the installed_packages value.
Getting the URL as well is a bit more complicated, but can be done for example by executing the following in ST's Python console (View menu -> Show Console):
import os; [(os.path.dirname(file)[len('Packages/'):], sublime.decode_value(sublime.load_resource(file))['url']) for file in sublime.find_resources('package-metadata.json')]
The accepted answer unfortunately didn't work for me.
Then I found that in Windows 10 (at least for ST 3) you can obtain what you want by listing the files contained in
C:\Users\<your_user_name>\AppData\Roaming\Sublime Text 3\Installed Packages
But some installed packages might be missing from this list ! Crosscheck your result with the content of the directory
C:\Users\<your_user_name>\AppData\Roaming\Sublime Text 3\Packages
Install Sublime Package Control
From inside Sublime Text, open Package Control's Command Pallet: CTRL SHIFT P (Windows, Linux) or CMD SHIFT P (Mac).
Type install package, select command Package Control: Install Package and hit Return/Enter. A list of available packages will be displayed.
From inside Sublime Text, open Package Control's Command Pallet: CTRL SHIFT P (Windows, Linux) or CMD SHIFT P (Mac).
Type PackageSync, select the PackageSync package and hit Return/Enter. The package will be downloaded to the appropriate directory.
I downloaded new Sublime Text 3 and I can't get working LiveReload Google Chrome extension
I know that it works for Sublime Text 2 but can I use it with ST3?
They rewrote the plugin for ST3:
"Have a look at devel version. Which is total rewrite of plugin, supporting SublimeText 3, plugins and much more." -ST2 ReadMe on GitHub
It is available from here:
https://github.com/dz0ny/LiveReload-sublimetext2/tree/devel
Use your terminal to remove the existing LiveReload package and then clone the repo:
Linux
cd ~/.config/sublime-text-3/Packages
rm -rf LiveReload
git clone -b devel https://github.com/dz0ny/LiveReload-sublimetext2.git
OSX
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
rm -rf LiveReload
git clone -b devel https://github.com/dz0ny/LiveReload-sublimetext2.git LiveReload
Once installed, you will still need to enable the plugin in the command palette as described by #Nishait_Baig:
open the Sublime Text command palette (while in Sublime Text type Ctrl + Shift + p on Linux/Windows or ⌘ + shift + p on Mac)
Type LiveReload: Enable/disable plugins and hit enter
Scroll down to Enable - SimpleReload and hit enter
From #Allen:
if you browse your webpage through the html file path, don't forget to check Allow access to file URLs in the chrome extension settings.
I was facing the same issue.
I enabled the SimpleReload plugin in the Command Palette.
=> Ctrl+shift+p
=> LiveReload: Enable/disable plugins
=> Enable - SimpleReload
And it started working.
If you browse your webpage through the html file path, don't forget to check Allow access to file URLs in the chrome extension settings.
LiveReload Sublime text3:
https://github.com/Grafikart/ST3-LiveReload
But the usage seems to have changed:
Enable desired plug-ins via Command Palette (Ctrl+Shift+P) add livereload.js to you html document.
It is not currently updated to work with Sublime Text 3. See this Reddit thread for some other recommendations.
For permanently enabling it.
preferences -> Packge Settings -> LiveReload -> Settings - User
Add:
{
"enabled_plugins": [
"SimpleRefresh"
]
}
I've updated to the most recent version of Package Control for Sublimetext 3 via Git, but none of the commands work. The menu items are still present, strangely enough. When I open the log with Ctrl+`, I see this error:
ImportError: No module named 'Package Control.package_control.add_repository_channel_command'
How can I get it to work again?
Apparently the Package Control .sublime-package file is outdated, and in this case, referencing a python module that has been moved to a different python package (from package_control to package_control.commands).
This can be easily fixed by deleting Installed Packages/Package Control.sublime-package.
I use sublime text 3
From this site, I Follow these steps:
Go to http://wbond.net/sublime_packages/package_control/installation
& copy the long command there.
Open the Sublime Text 2 console by
pressing Ctrl+.
Paste the command you copied into the Sublime Text
console.
Press Enter.
After Package Control installs, restart
Sublime Text.
Then I got the error like that.
I have tried :
check ignored_packages on set but I found nothing.
Download package manager and copy it to Installed Packages, but not works.
Then I update my sublime to the newest version, then the error is gone.
That is my tips, you should try one of the steps, like what I have tried.