Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

A few fixes #21

Merged
merged 6 commits into from
Dec 30, 2015
Merged

A few fixes #21

merged 6 commits into from
Dec 30, 2015

Conversation

Arcanemagus
Copy link
Member

This PR does a few things:

  • Update to atom-linter v4 API
  • Use rangeFromLineNumber to generate the ranges for line highlighting
  • Use helpers.exec to run the program instead of using Atom's BufferedProcess (directly)
  • Specify a name for the linter so its messages can be identified
  • Automatically install linter

This should fix #14 since helpers.rangeFromLineNumber works around the Atom bug that is triggering that message.
Fixes #15.

@Arcanemagus
Copy link
Member Author

@jschroeder9000 here is a base to start things off of, feel free to commit to this branch since it's off of this repo.

This partially fixes #12, but until steelbrain/atom-linter#85 is dealt with I don't think parse should be used since it would only have a single character highlighted.

The major improvement still needing to be done from here is the temp file handling like you discussed over in #13.

This will for EOL to be LF.
Instead of figuring this out here, just use the helper function created
for this purpose.
Instead of utilizing BufferedProcess directly use helpers.exec() to
handle running the process.
Also move all properties together.
Also updates the engines field to the current recommended value.
@Arcanemagus
Copy link
Member Author

I'm merging this in so future dependency updates start from a valid base and don't require a bit of work.

Arcanemagus added a commit that referenced this pull request Dec 30, 2015
@Arcanemagus Arcanemagus merged commit fa1816f into master Dec 30, 2015
@Arcanemagus Arcanemagus deleted the fixes branch December 30, 2015 17:46
@steelbrain
Copy link

LGTM 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install linter automatically. Uncaught TypeError: Cannot read property 'match' of undefined
2 participants