Home Download Buy Blog Forum Support

cant use any linter

cant use any linter

Postby dsultan on Tue Feb 12, 2013 6:45 pm

Hello

tried to install a few linter plugins

every time getting "broken pipe" on lint:

here is some debug

1. with SublimeLinter

Code: Select all
startup, version: 2220 windows x64 channel: dev
executable: /C/Program Files/Sublime Text 2/sublime_text.exe
working dir: /c/downloads
packages path: /C/Users/dsultan/AppData/Roaming/Sublime Text 2/Packages
settings path: /C/Users/dsultan/AppData/Roaming/Sublime Text 2/Settings
PackageSetup not required
Py_GetProgramName(): sublime_text.exe
Py_GetExecPrefix(): C:\Program Files\Sublime Text 2
Py_GetProgramFullPath(): C:\Program Files\Sublime Text 2\sublime_text.exe
Py_GetPath(): C:\Program Files\Sublime Text 2\python26.zip;C:\Program Files\Sublime Text 2\DLLs;C:\Program Files\Sublime Text 2\lib;C:\Program Files\Sublime Text 2\lib\plat-win;C:\Program Files\Sublime Text 2\lib\lib-tk;C:\Program Files\Sublime Text 2
Py_GetPythonHome(): C:\Program Files\Sublime Text 2
catalogue loaded
found 5 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 3 files for base name Main.sublime-menu
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\CSS\css_completions.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\comment.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\copy_path.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\delete_word.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\detect_indentation.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\duplicate_line.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\echo.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\exec.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\fold.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\font.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\goto_line.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\indentation.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\kill_ring.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\mark.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\new_templates.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\open_file_settings.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\open_in_browser.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\paragraph.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\save_on_focus_lost.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\scroll.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\set_unsaved_view_name.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\side_bar.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\sort.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\swap_line.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\switch_file.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\transform.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\transpose.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\trim_trailing_white_space.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Diff\diff.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\HTML\encode_html_entities.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\HTML\html_completions.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Package Control\Package Control.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\SublimeLinter\SublimeLinter.py
imported capp_lint
imported pep8
imported pyflakes
imported pyflakes.checker
imported pyflakes.messages
SublimeLinter: C loaded
SublimeLinter: CoffeeScript loaded
SublimeLinter: CSS loaded
SublimeLinter: c_cpplint loaded
SublimeLinter: Git Commit Message loaded
SublimeLinter: Ruby Haml loaded
SublimeLinter: HTML loaded
SublimeLinter: Java loaded
SublimeLinter: JavaScript loaded
SublimeLinter: Lua loaded
SublimeLinter: Annotations loaded
SublimeLinter: Objective-J loaded
SublimeLinter: Perl loaded
SublimeLinter: PHP loaded
SublimeLinter: Puppet loaded
SublimeLinter: Python loaded
SublimeLinter: Ruby loaded
SublimeLinter: pylint loaded
SublimeLinter: XML loaded
plugin init time: 0.416901
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.613653
wrote startup cache, added files: 5 orphaned files: 0 total files: 99 cache hits: 94
startup time: 0.715541 (package setup was not run)
SublimeLinter: php enabled (using "php" for executable)
Package Control: Skipping automatic upgrade, last run at 2013-02-12 21:40:13, next run at 2013-02-12 22:40:13 or after
loaded 837 snippets
Traceback (most recent call last):
  File ".\SublimeLinter.py", line 409, in _update_view
  File ".\SublimeLinter.py", line 134, in run_once
  File ".\sublimelinter\modules\base_linter.py", line 283, in run
  File ".\sublimelinter\modules\base_linter.py", line 206, in executable_check
IOError: [Errno 32] Broken pipe


2. here is with sublimelint plugin

Code: Select all
startup, version: 2220 windows x64 channel: dev
executable: /C/Program Files/Sublime Text 2/sublime_text.exe
working dir: /c/downloads
packages path: /C/Users/dsultan/AppData/Roaming/Sublime Text 2/Packages
settings path: /C/Users/dsultan/AppData/Roaming/Sublime Text 2/Settings
PackageSetup not required
Py_GetProgramName(): sublime_text.exe
Py_GetExecPrefix(): C:\Program Files\Sublime Text 2
Py_GetProgramFullPath(): C:\Program Files\Sublime Text 2\sublime_text.exe
Py_GetPath(): C:\Program Files\Sublime Text 2\python26.zip;C:\Program Files\Sublime Text 2\DLLs;C:\Program Files\Sublime Text 2\lib;C:\Program Files\Sublime Text 2\lib\plat-win;C:\Program Files\Sublime Text 2\lib\lib-tk;C:\Program Files\Sublime Text 2
Py_GetPythonHome(): C:\Program Files\Sublime Text 2
catalogue loaded
found 4 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 2 files for base name Main.sublime-menu
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\CSS\css_completions.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\comment.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\copy_path.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\delete_word.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\detect_indentation.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\duplicate_line.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\echo.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\exec.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\fold.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\font.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\goto_line.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\indentation.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\kill_ring.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\mark.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\new_templates.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\open_file_settings.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\open_in_browser.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\paragraph.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\save_on_focus_lost.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\scroll.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\set_unsaved_view_name.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\side_bar.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\sort.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\swap_line.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\switch_file.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\transform.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\transpose.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Default\trim_trailing_white_space.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Diff\diff.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\HTML\encode_html_entities.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\HTML\html_completions.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\Package Control\Package Control.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\sublimelint\commands.py
Reloading plugin C:\Users\dsultan\AppData\Roaming\Sublime Text 2\Packages\sublimelint\sublimelint.py
plugin init time: 0.307421
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.510026
wrote startup cache, added files: 3 orphaned files: 3 total files: 97 cache hits: 94
startup time: 0.656868 (package setup was not run)
loaded 837 snippets
Package Control: Skipping automatic upgrade, last run at 2013-02-12 21:40:13, next run at 2013-02-12 22:40:13 or after
Unhandled exception in thread started by <bound method Tracker.lint_view of <class 'lint.linter.Linter'>>
Traceback (most recent call last):
  File ".\lint\linter.py", line 151, in lint_view
  File ".\lint\linter.py", line 205, in pre_lint
  File ".\lint\linter.py", line 211, in lint
  File ".\lint\linter.py", line 299, in communicate
  File ".\lint\util.py", line 80, in communicate
  File ".\subprocess.py", line 701, in communicate
  File ".\subprocess.py", line 911, in _communicate
IOError: [Errno 32] Broken pipe

3. here is sublime linter beta plugin

Code: Select all
SublimeLinter: php enabled (using "php" for executable)
Traceback (most recent call last):
  File ".\SublimeLinter.py", line 409, in _update_view
  File ".\SublimeLinter.py", line 134, in run_once
  File ".\sublimelinter\modules\base_linter.py", line 283, in run
  File ".\sublimelinter\modules\base_linter.py", line 206, in executable_check
IOError: [Errno 32] Broken pipe
Traceback (most recent call last):
  File ".\SublimeLinter.py", line 409, in _update_view
  File ".\SublimeLinter.py", line 134, in run_once
  File ".\sublimelinter\modules\base_linter.py", line 283, in run
  File ".\sublimelinter\modules\base_linter.py", line 206, in executable_check
IOError: [Errno 32] Broken pipe


help please
dsultan
 
Posts: 4
Joined: Tue Feb 12, 2013 6:39 pm

Re: cant use any linter

Postby dsultan on Tue Feb 12, 2013 7:16 pm

206 line in base_linter is:
Code: Select all
            result = process.communicate(code)[0]


Code: Select all
            process = subprocess.Popen(args,
                                       stdin=subprocess.PIPE,
                                       stdout=subprocess.PIPE,
                                       stderr=subprocess.STDOUT,
                                       startupinfo=self.get_startupinfo())
            result = process.communicate(code)[0]
dsultan
 
Posts: 4
Joined: Tue Feb 12, 2013 6:39 pm

Re: cant use any linter

Postby dsultan on Wed Feb 13, 2013 6:12 am

tried stable ST2, and dev versions - same problem

tried to try ST3 - but oops, only for registered users...
dsultan
 
Posts: 4
Joined: Tue Feb 12, 2013 6:39 pm

Re: cant use any linter

Postby Narretz on Wed Feb 13, 2013 9:12 am

You could search your problems in the projects' github issue trackers, and if you don't find anything, post your problems there. This forum here is mainly for Sublime Text core.
Narretz
 
Posts: 41
Joined: Mon Feb 04, 2013 5:33 pm

Re: cant use any linter

Postby dsultan on Wed Feb 13, 2013 9:28 am

I will

but...

"broken pipe" error is similar for 2 different plugins

look's like a general bug on subprocess.communicate
dsultan
 
Posts: 4
Joined: Tue Feb 12, 2013 6:39 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 16 guests