Discussion:
[Notepad-plus-plus] python syntax check
Mo Jia
2014-04-24 04:11:39 UTC
Permalink
Hi everyone :

I succes follow
http://stackoverflow.com/questions/4987920/python-correctness-i-e-lint-analyzing-for-notepad/6273211#6273211
to find syntax error in notpad++ .

When I am try to add F6 (using NppExec ) with :
C:\\Python33\\Scripts\\pylint.bat --reports=n -f parseable
"$(FILE_NAME)"
to get the same result it get error like this

C:\\Python33\\Scripts\\pylint.bat --reports=n -f parseable "tmp.py"
Process started >>>
No config file found, using default configuration
C:\Python33\lib\site-packages\pylint\reporters\text.py:79:
UserWarning: parseable output format is deprecated. This is equivalent
to --msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
'to --msg-template=%s' % (self.name, self.line_format))
************* Module tmp.py
tmp.py:1: [F0001(fatal), ] No module named tmp.py
<<< Process finished. (Exit code 1)
================ READY ================

tmp.py is the current file.

So how can do it like from the stackoverflow.com

console.show()
console.clear()
console.run('cmd.exe /c '
+ 'C:\\Python26\\Scripts\\pylint.bat --reports=n -f parseable '
+ '"%s"' % notepad.getCurrentFilename())

I just need a quik key to run it , but use python-scripyt it need
click show-console and then paste the code .
Any suggestion?

Loading...