Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psc-ide-vim is giving error detected while processing #71

Closed
stifspear opened this issue Jul 26, 2017 · 7 comments
Closed

psc-ide-vim is giving error detected while processing #71

stifspear opened this issue Jul 26, 2017 · 7 comments

Comments

@stifspear
Copy link

stifspear commented Jul 26, 2017

Error detected while processing function PSCIDEtype:
line    1:
E15: Invalid expression: > s:PSCIDEtypeCallback(a:ident, resp.result, a:filterModules) } )
E116: Invalid arguments for function <SNR>45_getType

Error detected while processing function <SNR>30_BufWritePostHook[4]..<SNR>30_UpdateErrors[15]..<SNR>30_CacheErrors[39]..18[1]..17[24]..SyntaxCheckers_purescript_pscide_GetLocList:
line    4:
E15: Invalid expression: > s:rebuildOutputToSyntastic(PSCIDErebuild(0))} })
E116: Invalid arguments for function SyntasticMake({ 'makeprg': self.makeprgBuild({'exe': 'echo', 'args': 'a'}),  'errorformat': '%t:%f:%l:%c:%m', 'Preprocess': {args -> s:rebuildOutputToSyntast
ic(PSCIDErebuild(0))} })
E15: Invalid expression: SyntasticMake({ 'makeprg': self.makeprgBuild({'exe': 'echo', 'args': 'a'}),  'errorformat': '%t:%f:%l:%c:%m', 'Preprocess': {args -> s:rebuildOutputToSyntastic(PSCIDEreb
uild(0))} })
Error detected while processing function <SNR>30_BufWritePostHook[4]..<SNR>30_UpdateErrors[15]..<SNR>30_CacheErrors:
line   39:
E170: Missing :endfor
Error detected while processing function <SNR>30_BufWritePostHook[4]..<SNR>30_UpdateErrors:
line   15:
E171: Missing :endif

Purescript is installed
Purescript-vim is also installed
But I am getting some error with psc-ide-vim.
I dont know the reason why.
Reporting issue for the first time so please ignore any mistakes

@coot
Copy link
Collaborator

coot commented Jul 26, 2017

Thanks for the bug report. I am not using syntastic myself (you can disable it with let g:psc_ide_syntastic_mode = 0 in your vimrc file).

I can reproduce it.

coot pushed a commit to coot/psc-ide-vim that referenced this issue Jul 26, 2017
@coot coot closed this as completed in 892cb5c Jul 26, 2017
@coot
Copy link
Collaborator

coot commented Jul 26, 2017

Please check the master branch, and reopen if it still breaks for you.

@stifspear
Copy link
Author

Thank you for your reply. These errors are generated when I am saving my file.

"src/Main.purs" 9L, 198C written
Error detected while processing function PSCIDErebuild:
line 5:
E121: Undefined variable: v:t_func
E15: Invalid expression: a:0 >= 1 && type(a:1) == v:t_func
line 21:
E15: Invalid expression: > CallBack(s:PSCIDErebuildCallback(filename, msg, silent)) } )
E116: Invalid arguments for function purescript#ide#call

@coot
Copy link
Collaborator

coot commented Jul 26, 2017

What version of vim are you using? We are currently supporting vim-8 and some recent version of neovim.

@stifspear
Copy link
Author

vim 7.4
I will report after updating to vim 8.0

@stifspear
Copy link
Author

Yes it is working for vim 8.0. But when I am putting g:psc_ide_syntastic_mode = 0 in my .vimrc Main.purs opens fine but it does not give me error reports for my Main.purs file. But when I remove "g:psc_ide_syntastic_mode = 0" line it gives this error
Error detected while processing function 43_autoStart:
line 1:
E121: Undefined variable: g:psc_ide_syntastic_mode
E15: Invalid expression: g:psc_ide_syntastic_mode == 0

but after I press enter and open file it shows me errors on my Main.purs program. I hope you understand what I just wrote.
Thank You

@coot
Copy link
Collaborator

coot commented Jul 26, 2017

with psc_ide_syntastic_mode=0 psc-ide-vim runs PSCIDErebuild on writes, it does not run it on BufRead autocommand. Maybe I should change it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants