SublimeLinter not working - sublimetext3

I installed SublimeLinter for sublime text 3. After install i add the following code in my user settings
"sublimelinter": true,
"sublimelinter_executable_map": {
"php": "D:/xampp/xampp/php/php.exe"
},
but php code not linting.
Thanks for help!

Please read the entire SublimeLinter documentation, especially the sections on installation and settings. SublimeLinter itself is only a framework for linters. The linters themselves are distributed as independent Sublime Text 3 plugins.
For PHP, the most popular linter is SublimeLinter-php, which uses php -l for linting. Install it via Package Control, then read through the settings documentation for full details on how to configure the linter. I'm not sure where you got the settings you mentioned in your question, but they are incorrect. If you open Preferences -> Package Settings -> SublimeLinter -> Settings-User you'll find that most of the settings are already there. The documentation describes how to set the path to php.exe, and set everything else up. The initial setup process does take some time, but performed correctly you shouldn't have any issues going forward.

Just to help if someone have the same problem.
I made it work this way (Sublime Text 3):
Go to Preferences > Package Settings > Sublime Linter > Settings
Add this code on Settings-User with your php.exe path
// SublimeLinter Settings - User
{
"paths": {
"windows": ["C:\\wamp\\bin\\php\\php7.2.14"]
}
}
For example if you're using wamp with php7.2.14
Take a look at the documentation site

Related

Failed to run '/usr/local/go/bin/go env. The config change may not be applied correctly

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.

sublime text actualvim how to add path to neovim?

I want to try out the actualvim plugin for sublime, but I can't figure out how to add the path to neovim. And the page instruction never explained how to.
The readme does not mention the setting name, but the code reveals a neovim_path setting.
In Sublime's menu, go to Preferences -> Package Settings -> ActualVim Settings and set the neovim_path key to the full nvim path:
"neovim_path": "/path/to/nvim"
If you're on Windows, use / slashes (not \), or you will need to escape the slashes, e.g.:
"neovim_path": "C:\\path\\to\\nvim.exe"

Smalltalk syntax highlighting in Sublime?

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.

How to find where a linter is installed in order to work for SublimeLinter in Sublime 3?

So, I have installed cpplint in Sublime 3 via the Package Control, in a Windows 8.1 64bits machine.
However, it seems that cpplint cannot be found, as discussed in this troubleshooting page:
http://www.sublimelinter.com/en/latest/troubleshooting.html
More specifically, the page says that:
If the result says that the linter could not be found, that means the linter executable is in a directory which is not in your PATH, and SublimeLinter will not be able to find it. At this point you will have to find out what directory the executable was installed in from the linter’s documentation. Once you find that, you will need to augment your PATH by following the steps in Augmenting PATH below.
However, after hours trying I just can't find the"directory the executable was installed", in order to include in PATH. Yes, I found many questions about this online, but the only ones that have answers are giving solutions to Linux systems.
Any help would be very much appreciated.
In the sublime editor select Preferences -> Browse Packages
A folder will open listing the installed packages.

Xdebug debugging not working on Sublime Text 3

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/

Resources