Comments (5)
https://github.com/2bad2furious/kotlinx-ast-demo worked with minor tweaks (making gradlew executable, adding gradle folder)
from ast.
And after doing either https://github.com/kotlinx/ast/blob/master/grammar-kotlin-parser-antlr-kotlin/src/jvmTest/kotlin/kotlinx/ast/example/ExampleMain.kt still fails with Unresolved reference: ast
in import kotlinx.ast.common.AstSource
Is there somewhere full example project?
I really tried following readme, but it seems that I screwed something up.
from ast.
Oh, thank you for reporting this. https://github.com/kotlinx/ast is the "main" repository. https://github.com/drieks/antlr-kotlin/ is a fork of https://github.com/Strumenta/antlr-kotlin/ I'm using in kotlinx.ast to support kotlin.js and kotlin native. Currently, all my changes are merged into upstream, so drieks/antlr-kotlin is currently not required.
To make it complicated, https://github.com/drieks/ast is my "private" fork of kotlinx.ast.
I renamed some libraries some time ago, maybe I missed updating the documentation. Is it possible for you to create a repository containing the project where you are getting this? The Gradle files and maybe a copy of the ´Example-main.kt` should be enough.
from ast.
I tried to move the build from jitpack to github actions, but did not find time to finish it right now. I want to add normal version numbers and a github actions based build and to remove everything jitpack related because it seems to confuse users of kotlinx.ast.
But the readme should contain working examples, there must be a missing change that is required to get it working again.
from ast.
I tried again ( https://github.com/matkoniecz/astmine ) :
But the readme should contain working examples, there must be a missing change that is required to get it working again.
Note that "Add the dependency to kotlinx.ast into your project:" is confusing for confused people like me. Looking at other code I have not found where exactly this snippet should be added.
If there would be chance for standalone working example - it would be highly appreciated.
Note: that is my first time when I tried making from scratch a gradle-powered project. It is likely that my failure is entirely caused by doing something the wrong way with gradle.
On retrying, if it will happen, I should use Groovy instead of Kotlin. Maybe instructions in repo are actually for Groovy? (though it mentions build.gradle.kts
...)
api("com.github.kotlinx.ast:grammar-kotlin-parser-antlr-kotlin:14e92f2fa0")
from readme got me
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':app:compileKotlin'
> Could not resolve all files for configuration ':app:compileClasspath'.
> Could not find com.github.kotlinx.ast:grammar-kotlin-parser-antlr-kotlin:14e92f2fa0.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/github/kotlinx/ast/grammar-kotlin-parser-antlr-kotlin/14e92f2fa0/grammar-kotlin-parser-antlr-kotlin-14e92f2fa0.pom
- https://jitpack.io/com/github/kotlinx/ast/grammar-kotlin-parser-antlr-kotlin/14e92f2fa0/grammar-kotlin-parser-antlr-kotlin-14e92f2fa0.pom
Required by:
project :app
https://jitpack.io/#drieks/antlr-kotlin suggested implementation("com.github.drieks:antlr-kotlin:Tag")
(I tried with Kotlin-based build script), it resulted in
> Task :app:compileKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':app:compileKotlin'
> Could not resolve all files for configuration ':app:compileClasspath'.
> Could not find com.github.drieks:antlr-kotlin:Tag.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/github/drieks/antlr-kotlin/Tag/antlr-kotlin-Tag.pom
- https://jitpack.io/com/github/drieks/antlr-kotlin/Tag/antlr-kotlin-Tag.pom
Required by:
project :app
from ast.
Related Issues (20)
- Add a grammar for Kotlin Script
- org.antlr.v4.kotlinruntime.atn.ATNConfig object has a large number of instance counts, OOM
- Need "kts" scripts support
- incorrect breakline parsing HOT 1
- AST Node Tree Refactoring / Insertion / Removal
- Consider editing repository setings to remove "Packages" section HOT 2
- End-of-line comments not available in summary HOT 2
- Property delegate not available in summary HOT 2
- Argument with unary prefix is incomplete in summary AST HOT 2
- Best way to add new keywords like in the Spock test HOT 4
- Can I get the specified method code block HOT 3
- Record syntax error messages
- Why column is called row?
- Unsupported ast node functionType when function type used as generic type
- Publish somewhere different than jitpack.io HOT 10
- Is it possible to insert an element? HOT 2
- Add support for @JvmSuppressWildcards/ Annotations for types. HOT 4
- How can I get the specified method code block!Looking forward to answer
- How do I rely on this project on Maven? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ast.