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

Lint on the fly does not work #16

Open
Reimerei opened this issue Oct 20, 2015 · 7 comments
Open

Lint on the fly does not work #16

Reimerei opened this issue Oct 20, 2015 · 7 comments

Comments

@Reimerei
Copy link

I have the setting enabled in the linter package, but it still only lints on save.

@Arcanemagus
Copy link
Member

This linter requires working with a file and does not work with stdin from what I understand. It might be possible to use a temporary file, but as this looked like a full compiler from what I saw of it I think it would need the whole directory as well.

In short: It's purposely disabled currently.

@remiq remiq mentioned this issue Oct 20, 2015
@remiq
Copy link
Contributor

remiq commented Oct 20, 2015

As @Arcanemagus said, elixirc does not have an option to compile strings, so plugin can lint only when file is saved.
This information has been added to README.md.

@remiq remiq closed this as completed Oct 20, 2015
@Reimerei
Copy link
Author

There is an sublime-text plugin that does it with temporary files. Works quite well.

@remiq remiq reopened this Oct 21, 2015
@remiq
Copy link
Contributor

remiq commented Oct 21, 2015

@Reimerei Link please.

@Reimerei
Copy link
Author

@remiq
Copy link
Contributor

remiq commented Oct 21, 2015

Looks quite complicated. Pull requests are welcome.

@Arcanemagus
Copy link
Member

It looks like it's just writing a temporary file (since it specifies tempfile_suffix SublimeLinter does this for it), and then specifying all the "ebin" files here.

So you could replicate this with helpers.tempFile and then the -pa command option it's using above relatively simply.

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

No branches or pull requests

3 participants