Kronuz/SublimeLinter — Issue #51: New Update Broke Perl (on Windows)
Author: njlg
Created: 2011-11-04 21:53:48+00:00
State: open

Package Control updated SublimeLinter to the latest version. Now, the Perl Linter does not seem to work. I see this in the console:

```
Traceback (most recent call last):
File ".\sublime_plugin.py", line 139, in on_post_save
File ".\SublimeLinter.py", line 525, in on_post_save
File ".\SublimeLinter.py", line 71, in background_run
File ".\SublimeLinter.py", line 92, in run_once
File ".\sublimelinter\modules\base_linter.py", line 232, in run
File ".\sublimelinter\modules\base_linter.py", line 167, in executable_check
File ".\subprocess.py", line 701, in communicate
File ".\subprocess.py", line 911, in _communicate
IOError: [Errno 32] Broken pipe
```

The Perl Linter use to work (but I'm not sure how many REVs ago). I guess it is some Blocking/nonBlocking IO communication with processes. I made a simple Python script that executes 'perl -c' just like the Linter does, and it worked.

A work-around is to change perl.py to use the file input method:

```python
CONFIG = {
'language': 'perl',
'executable': 'perl',
'lint_args': ('-c', '{filename}'),
'input_method': 3
}
```