Comments (12)
upd: checked executables of checker (php, sh) - it's here.
i can also see syntastic and syntax files in scriptnames
from syntastic.
Hmm, thats strange. Are the syntax checking programs on the command line reporting errors? i.e. if you go
php -l {filename}
and does echo executable("php")
output 1
?
from syntastic.
got the same issue, using macvim and trying to get syntastic working with php.
echo ...
gives 1 and php -l ...
on a test file outputs an expected: Parse error: syntax error, unexpected '}' ...
from syntastic.
It is possible that the errorformat setting isnt catching the error messages. Because of this the signs arent being displayed.
If you open a php file with errors - a file containing <?php } ?>
should do the job - and then type :Errors
, do you see any text in the location list window?
from syntastic.
Nothing in the list, here is the output of php -l test.php
:
Parse error: syntax error, unexpected '}' in test.php on line 1
Errors parsing test.php
Note that there is a empty line at start.
Here is the errorformat I have for the php syntax checker:
%-GNo syntax errors detected in%.%#,PHP Parse error: %#syntax %trror\, %m in %f on line %l,PHP Fatal %trror: %m in %f on line %l,%-GErr ors parsing %.%#,%-G\s%#,Parse error: %#syntax %trror\, %m in %f on line %l,Fatal %trror: %m in %f on line %l
I'm not sure about it but are all those %#syntax %trror normal?
from syntastic.
I have just tested that error message and it is getting parsed properly by the error format.
If you edit a php file with an error, what does :echo SyntaxCheckers_php_GetLocList()
output?
from syntastic.
I get [{'lnum': 1, 'bufnr': 1, 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': 'e', 'pattern': '', 'text': 'unexpected ''}'''}]
at the bottom of a black screen.
From what I can understand (totally new to vimscript but I toyed a bit with the debugger), syntastic is initialized correctly but s:UpdateErrors
never gets called.
If I ask what's in autocmd I have this (same for BufReadPost):
BufWritePost
* call s:UpdateErrors()
I don't know vim enough at this point to understand why it do not get called.
from syntastic.
Hmm, getting really confused now. Can you send me a link to, or pastebin your vimrc?
from syntastic.
Sure, here you'll find the main vimrc: https://github.com/hlidotbe/janus/blob/master/vimrc
My vimrc.local can be found here: https://gist.github.com/822243
Below is my plugins list:
- AlignMapsPlugin.vim
- AlignPlugin.vim
- NERD_commenter.vim
- NERD_tree.vim
- ZoomWinPlugin.vim
- ack.vim
- bufexplorer.vim
- cecutil.vim
- color_sample_pack.vim
- command-t.vim
- conque_term.vim
- csspretty.vim
- debugger.vim
- endwise.vim
- fugitive.vim
- indent-object.vim
- matchit.vim
- rails.vim
- searchfold_0.8.vim
- snipMate.vim
- supertab.vim
- surround.vim
- syntastic.vim
- taglist.vim
- textile.vim
- unimpaired.vim
- vim-markdown-preview
- vim-rspec.vim
- vmp.vim
- zencoding.vim
from syntastic.
Got it! There was a bug with the syntastic_quiet_warnings. I have just pushed the fix. Can you try it out and confirm please?
from syntastic.
Yes, it works! Thanks a lot for the help.
from syntastic.
Sweet cheers :)
from syntastic.
Related Issues (20)
- Location list flashes then disappears HOT 1
- Checkers problem HOT 2
- Assembly files of different architecture(s): how? HOT 1
- How highlight full word (not line) warning or error in code? HOT 2
- Multiple error windows opened for the same project. HOT 2
- Syntastic Not finding checker [merlin] HOT 2
- syntastic checker output: python: can''t open file HOT 2
- Garbled characters appear in the sidebar HOT 3
- plase patch please
- loc_list should be closed when 'WinLeave' is detected. HOT 4
- How can I disable Syntastic active mode if opened read-only (via "view" command) HOT 2
- Bad configuration
- Pylint comments are not disabling errors HOT 1
- Only one character is underlined, not the whole error HOT 1
- Squiggles start at the wrong place when there are tab characters before them HOT 1
- Integrate with GH workflow linter HOT 1
- Find shared/library headers HOT 1
- strange behavior of loc_list related to `g:syntastic_cpp_checkers` HOT 1
- Add new checker script for Ruff HOT 2
- syntastic: error: checker ansible/ansible_lint: can't parse version string (abnormal termination?) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syntastic.