can not show error message
See original GitHub issueIn vs code, phpcs cannot show error message.
VS Code About
Version: 1.28.2
Commit: 7f3ce96ff4729c91352ae6def877e59c561f4850
Date: 2018-10-17T00:20:56.183Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
php version And phpcs version
app.php
<?php
function a()
{
return '11';
}//end a()
echo(a());
In Terminal
In VS Code
Output
[Trace - 10:43:02 AM] Sending notification '$/setTraceNotification'.
Params: {
"value": "verbose"
}
[Trace - 10:43:02 AM] Sending notification 'workspace/didChangeConfiguration'.
Params: {
"settings": null
}
[Trace - 10:43:02 AM] Received request 'workspace/configuration - (3)'.
Params: {
"items": [
{
"scopeUri": "file:///home/ayden/Project/php/mvc-demo/app.php"
}
]
}
[Trace - 10:43:02 AM] Sending response 'workspace/configuration - (3)'. Processing request took 1ms
Result: [
{
"enable": true,
"workspaceRoot": "/home/ayden/Project/php/mvc-demo",
"executablePath": "/usr/local/bin/phpcs",
"composerJsonPath": "composer.json",
"standard": null,
"autoConfigSearch": true,
"showSources": true,
"showWarnings": true,
"ignorePatterns": [],
"warningSeverity": 5,
"errorSeverity": 5
}
]
[Trace - 10:43:02 AM] Received notification 'textDocument/didStartValidate'.
Params: {
"textDocument": {
"uri": "file:///home/ayden/Project/php/mvc-demo/app.php"
}
}
[Trace - 10:43:02 AM] Linting started on: file:///home/ayden/Project/php/mvc-demo/app.php
[Trace - 10:43:02 AM] Received notification 'textDocument/didEndValidate'.
Params: {
"textDocument": {
"uri": "file:///home/ayden/Project/php/mvc-demo/app.php"
}
}
[Trace - 10:43:02 AM] Linting completed on: file:///home/ayden/Project/php/mvc-demo/app.php
[Trace - 10:43:02 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/ayden/Project/php/mvc-demo/app.php",
"diagnostics": []
}
settings
{
"phpcs.trace.server": "verbose",
"phpcs.showSources": true
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Hide error values and error indicators - Microsoft Support
If your formulas have errors that you don't need to correct, you can hide error values and error indicators in cells.
Read more >Error message will not display after changing the type for a ...
I checked the console and there are no errors displaying. Can someone tell me why this is happening and how to fix it?...
Read more >UX Design: Four ways to display error messages - Nomensa
In this article, we look at how to improve the UX design of your forms.
Read more >Display All PHP Errors: Basic & Advanced Usage
This will display all the errors including syntax or parse errors that cannot be displayed by just calling the ini_set function in the...
Read more >Is there a good reason not to display error messages to users?
In general, a user should ONLY be shown an error message when there is something they can do. An application should display an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Looking at your screenshot, this might be similar to the issue I was having in: https://github.com/ikappas/vscode-phpcs/issues/128
If you have basepath in your phpcs.xml file, try removing it and see if that provides the expected output from the plugin:
<arg name="basepath" value="./"/>
Thank you so much, I resolve it by remove
<arg name="basepath" value="./"/>