Git Product home page Git Product logo

Comments (12)

rlex avatar rlex commented on July 16, 2024

upd: checked executables of checker (php, sh) - it's here.
i can also see syntastic and syntax files in scriptnames

from syntastic.

scrooloose avatar scrooloose commented on July 16, 2024

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.

hlidotbe avatar hlidotbe commented on July 16, 2024

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.

scrooloose avatar scrooloose commented on July 16, 2024

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.

hlidotbe avatar hlidotbe commented on July 16, 2024

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.

scrooloose avatar scrooloose commented on July 16, 2024

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.

hlidotbe avatar hlidotbe commented on July 16, 2024

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.

scrooloose avatar scrooloose commented on July 16, 2024

Hmm, getting really confused now. Can you send me a link to, or pastebin your vimrc?

from syntastic.

hlidotbe avatar hlidotbe commented on July 16, 2024

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.

scrooloose avatar scrooloose commented on July 16, 2024

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.

hlidotbe avatar hlidotbe commented on July 16, 2024

Yes, it works! Thanks a lot for the help.

from syntastic.

scrooloose avatar scrooloose commented on July 16, 2024

Sweet cheers :)

from syntastic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.