jdmanton / linter-matlab Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
mlint
is always called on saved file. Fix by saving text in window to temporary file and linting that.
[Enter steps to reproduce:]
Atom: 1.52.0 x64
Electron: 6.1.12
OS: Microsoft Windows 10 Home
Thrown From: linter-matlab package 1.3.0
Uncaught TypeError: Cannot read property '0' of null
At C:\Users\wings\.atom\packages\linter-matlab\lib\linter-matlab.coffee:42
TypeError: Cannot read property '0' of null
at stderr (/packages/linter-matlab/lib/linter-matlab.coffee:42:10)
at Socket.<anonymous> (~/AppData/Local/atom/app-1.52.0/resources/app/static/<embedded>:14:1087645)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:271:13)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
-8:30.5.0 intentions:highlight (input.hidden-input)
-8:30.3.0 core:save (input.hidden-input)
2x -7:00.2.0 editor:newline (input.hidden-input)
-6:59.5.0 core:move-up (input.hidden-input)
22x -6:42 core:backspace (input.hidden-input)
-4:21.6.0 intentions:highlight (input.hidden-input)
-4:21.3.0 core:save (input.hidden-input)
-3:25.4.0 intentions:highlight (input.hidden-input)
-3:25.2.0 core:select-all (input.hidden-input)
-3:24.3.0 core:copy (input.hidden-input)
autocomplete-clang 0.13.1
build 0.70.0
busy-signal 2.0.1
file-icons 2.1.43
gpp-compiler 3.0.7
intentions 1.1.5
language-ini 1.23.0
language-matlab 0.2.1
linter 3.1.1
linter-flake8 2.4.0
linter-gcc 0.9.0
linter-gcc2 0.8.8
linter-matlab 1.3.0
linter-ui-default 2.1.2
minimap 4.29.9
platformio-ide 2.7.2
platformio-ide-debugger 1.2.6
platformio-ide-terminal 2.10.0
python-autopep8 0.1.3
run-python-simply 0.6.0
tool-bar 1.4.1
Steps to reproduce:
Atom: 1.54.0 x64
Electron: 6.1.12
OS: Microsoft Windows 10 Education
Thrown From: linter-matlab package 1.3.0
Uncaught TypeError: Cannot read property '0' of null
At C:\Users\denis\.atom\packages\linter-matlab\lib\linter-matlab.coffee:42
TypeError: Cannot read property '0' of null
at stderr (/packages/linter-matlab/lib/linter-matlab.coffee:42:10)
at Socket.<anonymous> (~/AppData/Local/atom/app-1.54.0/resources/app/static/<embedded>:14:1119974)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:271:13)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
-5:21.6.0 core:confirm (input.hidden-input)
-5:17.7.0 intentions:highlight (input.hidden-input)
-5:17.4.0 core:copy (input.hidden-input)
-5:06.0 intentions:highlight (input.hidden-input)
-5:05.9.0 core:paste (input.hidden-input)
-5:04.0 editor:newline (input.hidden-input)
-5:03.7.0 intentions:highlight (input.hidden-input)
2x -5:03.0 core:backspace (input.hidden-input)
-5:02.0 intentions:highlight (input.hidden-input)
-5:01.9.0 core:save (input.hidden-input)
-5:01.6.0 editor:newline (input.hidden-input)
-5:00.2.0 core:move-down (input.hidden-input)
-4:59.3.0 intentions:highlight (input.hidden-input)
-4:59 core:save (input.hidden-input)
-0:38.8.0 editor:newline (input.hidden-input)
3x -0:28 core:backspace (input.hidden-input)
atom-matlab-editor 0.5.1
busy-signal 2.0.1
city-lights-syntax 1.1.8
city-lights-ui 1.5.3
intentions 1.1.5
language-glsl 2.0.4
language-matlab 0.2.1
linter 3.3.0
linter-glsl 2.2.0
linter-htmlhint 1.6.3
linter-javac 1.10.0
linter-matlab 1.3.0
linter-stylelint 4.5.1
linter-ui-default 3.2.4
minimap 4.39.8
minimap-cursorline 1.0.2
minimap-find-and-replace 5.0.8
minimap-pigments 0.2.2
pigments 0.40.6
Made symbolic link to /usr/local/bin/mlint. It works fine for Vim (Syntastic package, or the MatlabFilesEdition etc), but this package for Atom seems to do nothing. Tried making the code wrong, then saving the file.
Thanks for the great plugin! In the future, it would be awesome if you could temporarily hide the warning list. The warning list can sometimes become quite long, and it can be distracting. Anyways, keep up the great work!
I can't seem to get linter-matlab working. I installed but does nothing and throws no errors. The path to mlint is set to /Applications/MATLAB_R2017a.app/bin/maci64/
. I have linter 2.3.1 installed.
Base linter 2.3.0 appears to be incompatible with current version of linter-matlab. Updated version on Win10 and Linux Mint 19--in both cases, linter-matlab stopped functioning with no error message. Changelog for base linter mentions removing support for legacy linter APIs.
Confirmed: Rolling back to linter-2.2.0 re-enabled linter-matlab.
Thanks for this package!
I am trying to set the mlint directory (on a mac) in the package settings but I keep getting an error:
Failed to run MATLAB linter - Directory containing mlint is set to '/Applications/MATLAB_R2016a.app/bin/maci64/mlint'
The directory is correct... any idea what could be the problem? (Would like to avoid adding it to PATH.)
Installed linter and linter-matlab packages.
mlint.exe is on system path.
Trying to lint did nothing (no errors either).
Added mlint.exe directory in linter-matlab settings.
Linting still doesn't work but following error is thrown upon saving a file:
Atom Version: 1.2.0
System: Microsoft Windows 10 Pro
Thrown From: linter-matlab package, v1.0.0
Uncaught TypeError: Cannot read property '0' of null
At /C:/Users/Ben/.atom/packages/linter-matlab/lib/linter-matlab.coffee:49
TypeError: Cannot read property '0' of null
at BufferedProcess.stderr (file:///C:/Users/Ben/.atom/packages/linter-matlab/lib/linter-matlab.coffee:40:10)
at Socket.<anonymous> (C:\Users\Ben\AppData\Local\atom\app-1.2.0\resources\app.asar\src\buffered-process.js:85:13)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:146:16)
at Socket.Readable.push (_stream_readable.js:110:10)
at Pipe.onread (net.js:523:20)
2x -2:00.9.0 editor:newline (atom-text-editor.editor.is-focused)
-1:56.4.0 core:backspace (atom-text-editor.editor.is-focused)
-1:54.2.0 core:delete (atom-text-editor.editor.is-focused)
-1:53.9.0 core:move-down (atom-text-editor.editor.is-focused)
-1:52.2.0 window:toggle-dev-tools (atom-text-editor.editor.is-focused)
5x -1:17.1.0 core:backspace (atom-text-editor.editor.is-focused)
-1:14.9.0 editor:newline (atom-text-editor.editor.is-focused)
4x -1:13.9.0 core:delete (atom-text-editor.editor.is-focused)
-1:12.3.0 core:move-up (atom-text-editor.editor.is-focused)
-1:12 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
-1:10.3.0 core:move-down (atom-text-editor.editor.is-focused)
22x -1:01.7.0 core:undo (a.inline-block)
2x -0:45 linter:next-error (atom-workspace.workspace.scrollbars-visible-always.theme-base16-syntax.theme-atom-material-ui)
-0:30.5.0 core:move-down (atom-text-editor.editor.is-focused)
-0:04.2.0 core:delete (atom-text-editor.editor.is-focused)
-0:01.1.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"autoHideMenuBar": true,
"projectHome": "C:\\DICE\\source",
"themes": [
"atom-material-ui",
"base16-syntax"
]
},
"linter-matlab": {
"mlintDir": "C:\\Program Files\\MATLAB\\R2015a\\bin\\win64"
}
}
# User
atom-material-ui, v0.8.0
auto-detect-indentation, v0.4.2
base16-syntax, v1.5.0
highlight-selected, v0.10.1
language-matlab, v0.1.1
language-mediawiki, v2.0.0
less-than-slash, v0.11.0
linter, v1.11.1
linter-matlab, v1.0.0
minimap, v4.16.0
minimap-highlight-selected, v4.3.1
pigments, v0.18.1
sync-settings, v0.6.0
# Dev
No dev packages
Some things are errors while others are just warnings in reality, although normal mlint
output does not state which is which. Use the information on this page to work this out.
FYI, this linter was not working for me (it seemed to load fine but I saw no output or errors).
Setting lintOnFly: true
in the linter-matlab/lib/linter-matlab.coffee
file solved the issue.
Documenting here for others with the same problem/in case the dev wants to make this default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.