Giter Club home page Giter Club logo

linter-matlab's People

Contributors

ajdm avatar edwinksl avatar elpollodiablo84 avatar jdmanton avatar r0oland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

linter-matlab's Issues

Does not lint on fly

mlint is always called on saved file. Fix by saving text in window to temporary file and linting that.

Uncaught TypeError: Cannot read property '0' of null

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.52.0 x64
Electron: 6.1.12
OS: Microsoft Windows 10 Home
Thrown From: linter-matlab package 1.3.0

Stack Trace

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)

Commands

     -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)

Non-Core Packages

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 

Uncaught TypeError: Cannot read property '0' of null

Steps to reproduce:

  1. Save a file

Atom: 1.54.0 x64
Electron: 6.1.12
OS: Microsoft Windows 10 Education
Thrown From: linter-matlab package 1.3.0

Stack Trace

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)

Commands

     -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)

Non-Core Packages

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 

Does not work with symbolic links

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.

Feature request: Temporarily hide the warning list

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!

linter-matlab does nothing (no errors)

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.

linter-matlab not compatible with base linter 2.3.0

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.

Problem with setting mlint dir

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.)

Uncaught TypeError: Cannot read property '0' of null

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

Stack Trace

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)

Commands

  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)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "projectHome": "C:\\DICE\\source",
    "themes": [
      "atom-material-ui",
      "base16-syntax"
    ]
  },
  "linter-matlab": {
    "mlintDir": "C:\\Program Files\\MATLAB\\R2015a\\bin\\win64"
  }
}

Installed Packages

# 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

Everything is a warning

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.

Had to change lintOnFly to true

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.