GithubHelp home page GithubHelp logo

francis36012 / linter-kotlin Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 2.0 28 KB

A kotlin linter package for the Atom editor

License: MIT License

CoffeeScript 100.00%
atom-editor atom-package checker kotlin linter

linter-kotlin's People

Contributors

eternalmelody avatar francis36012 avatar tsedlar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

linter-kotlin's Issues

Linter support for kotlin-js

I get linter errors in my project that uses kotlin-js.
On external and the js functions exposed.

Is this on my end or do we need to update something in this package?
I'd be willing to submit a PR, if I can get a pointer ๐Ÿ‘

I guess setting the executable to be kotlinc-js fixes it for me.
But we probably want to be able to detect that, and use the proper executable for the project.

Plugin Doesn't Work In Atom 1.16.0

Started up Atom after its update to v1.16.0 (via Deb package install in Linux Mint 17.3) and found that the linter-kotlin plugin isn't working. See the following screenshot:

broken kotlin linter in atom 1 16 0

Changing the Kotlin compiler path to a different location (not the default one) results in a mysterious error message appearing in Atom.

Lints not appearing

I'm running Ubuntu 18.04, Atom 1.28.2, linter-kotlin 0.6.0, and linter 2.2.0. Lints are not appearing on my Kotlin files. There are not error notifications from Atom. When I save files in my project the linter indicator turns yellow and shows that it had run Kotlin, but then no lints appear in my code.

Example file in the root of my project.

fun main(args: Array<String>) {
    banana
}

If I run $ kotlinc . from the root of my project, then it returns:

test.kt:6:5: error: unresolved reference: banana
    banana
    ^

However, linter-kotlin doesn't mark anything on the same file.

[Enhancement] Add Maven support.

This allows for linting to be correct for outer-dependency retrieval.

I'm going to be busy for the next few days, but this is something I was starting to work on.

Here's a POC on how I'm currently supporting it.

Essentially, if a project contains a 'pom.xml' file, retrieving the dependency listing can be done via:

mvn dependency:resolve (only needs to be called when pom.xml is changed)
and
mvn dependency:tree which is then parsed and tampered with to make the paths correct.

The parsed/pathized content then needs to be added to the classpath.

This type of support could also be abstracted to allow different services to work (gradle, etc.)

No linting is going on

The supposed error catching isn't working, could something be wrong with the coffeescript file for it in lib?

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.