francis36012 / linter-kotlin Goto Github PK
View Code? Open in Web Editor NEWA kotlin linter package for the Atom editor
License: MIT License
A kotlin linter package for the Atom editor
License: MIT License
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.
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:
Changing the Kotlin compiler path to a different location (not the default one) results in a mysterious error message appearing in Atom.
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.
When the .atom_jvm_classpath
file is not present, compiler messages are not emitted for some reason.
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.)
Please add support for linting Kotlin Script (.kts) files.
The supposed error catching isn't working, could something be wrong with the coffeescript file for it in lib?
Falls into the same category as #9 I believe
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.