question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

deep cleanup is not working with demo for kt and java

See original GitHub issue

as per the instruction, running demo/stale_feature_flag_cleanup_demos.py is expected to do deep clean ups. Version : polyglot-piranha-0.1.2 , Apple M1 Max, Version 12.5.1

Before the stale_feature_flag_cleanup_demos

class SampleKotlin {

     fun print_status_enabled() {
        if (experimentation.isToggleEnabled(SAMPLE_STALE_FLAG)) {
            println("SAMPLE_STALE_FLAG is enabled")
        } else {
            println("SAMPLE_STALE_FLAG is disabled")
        }
    }

    fun print_status_disabled() {
        if (experimentation.isToggleDisabled(SAMPLE_STALE_FLAG)) {
            println("SAMPLE_STALE_FLAG is disabled")
        } else {
            println("SAMPLE_STALE_FLAG is enabled")
        }
    }
}

After the stale_feature_flag_cleanup_demos

class SampleKotlin {

     fun print_status_enabled() {
        if (true) {
            println("SAMPLE_STALE_FLAG is enabled")
        } else {
            println("SAMPLE_STALE_FLAG is disabled")
        }
    }

    fun print_status_disabled() {
        if (false) {
            println("SAMPLE_STALE_FLAG is disabled")
        } else {
            println("SAMPLE_STALE_FLAG is enabled")
        }
    }
} 

isn’t it expected to have deep clean ups with piranha-polyglot ?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
nagraj-eccommented, Sep 21, 2022

Have virtual environment activated before running pip install ., i guess its MAC M1 causing the issue. rustup show causes Default host: aarch64-apple-darwin

running rustup target add x86_64-apple-darwin solved the issue of building local source.

Executing demos now performs the deep cleaning. Thanks 😃

0reactions
ketkarameyacommented, Sep 21, 2022

do you have a virtual environment activated before you tried pip install .? If not, can u please try :

cd polyglot/piranha
python3 -m venv .env
source .env/bin/activate
pip install .
Read more comments on GitHub >

github_iconTop Results From Across the Web

deep cleanup is not working with demo for kt and java - PullAnswer
Yes I observed this issue on ubuntu too. The problem was that the built-in cleanup rules are not being packaged in the wheel....
Read more >
Kotlin Cleanup · Issue #10489 · ankidroid/Anki-Android - GitHub
Currently, I'm working on CardTemplatePreviewer.kt . Others also please mention which files they are working on to avoid merge conflicts.
Read more >
How to port existing Android applications from Java to Kotlin
This technique will help you convert code on the whole project effortlessly without much effort. The Java files will be converted automatically ...
Read more >
A failure occurred while executing org.jetbrains.kotlin.gradle ...
In Android studio go to Analyze menu and click on Inspect Code; check whole project, click OK and wait for the inspection to...
Read more >
Coding conventions | Kotlin
Package and class naming rules in Kotlin are quite simple: Names of packages are always lowercase and do not use underscores ( org.example....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found