Giter Club home page Giter Club logo

vscode-kotlin's Introduction

Kotlin IDE for Visual Studio Code

Version Build Downloads Installs Chat

Smart code completion, linting, debugging, formatting and more for Kotlin in VSCode using the Kotlin language server and the Kotlin debug adapter.

To use, make sure that JDK 11+ is installed and open a Kotlin file inside a Gradle or Maven project. Support for Kotlin source files with a standalone compiler (kotlinc) is experimental. The language server will then automatically launch in the background.

Features

  • Code completion
  • Linting
  • Semantic highlighting
  • Debugging
  • Go-to-definition
  • Signature help
  • Hover
  • Formatting
  • Document symbols
  • Find references

Usage

Debugging

  • Setup:
    • Open the launch.json file in your project and invoke code completion to create a new launch configuration (or select Add Configuration... in the debug tab)
  • Launch:
    • Build your project (before every launch)
    • Click the Run button in the Debug tab or press F5

vscode-kotlin's People

Contributors

daplf avatar dependabot[bot] avatar dundargoc avatar fwcd avatar ks-korovina avatar lewstherintelescope avatar mrmyhuang avatar themkat avatar thunderz99 avatar tony-sol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-kotlin's Issues

Multi-build projects not supported?

That's just a guess in the title, but when I open a file in my Gradle-based Kotlin project, I just get a sea of red squiggles with unresolved imports, basically.

If I recall correctly when trying to get the previous iteration of this working, I remember hearing multi-build projects (if I'm using that term correctly) were not supported.

If that's the problem, it should be documented prominently in the README. I'd write it and submit a PR but 1. I'm not sure that I'm correct, and 2. I'm not a Gradle expert and would want to get my terminology right.

Infinite Unpacking

I've installed Kotlin and tried to use it.

In the last 30 minutes (as I installed), for two times (15 minutes each) I've stucked on two messages in VS Code status bar:

  • Unpaking Kotlin Language Server 0.6.0...
  • Unpaking Kotlin Debug Adapter 0.2.6...

image

The extension is not activate and I cannot start my Project.

Make tab sizes configurable

Motivation

When using a mono-repo with pre-existing tab sizes of 2, this extension seems to force global tab sizing to 4.

Description

Ideally, we could configure this extension to use 2-space tabs.

Alternatives considered

Allow users to disable the formatting portion of the extension.

How to support gradle kotlin scripts?

Hello,
I'd like to use VSCode to edit gradle kotlin scripts in projects that are not kotlin projects.
The syntax highlighting works, but of course the gradle DSL is not found so there are errors everywhere.

Is there a way to declare dependencies such as the gradle DSL?

Documentation should mention user has to "Open Folder"

The documentation says "To use, open a Kotlin file inside a Gradle or Maven project" in bold letters. But the user may not understand that it means to Open Folder (or a Workspace).

This is especially true when no Gradle/Maven project is involved, as when using kotlinc directly for small scripts (in such case the user may launch the editor by doing "code hello.kt", which is wrong).

Unless the user does Open Folder, she'll get such messages:

  • "Unresolved reference: println"
  • "Cannot access built-in declaration '????'. Ensure that you have a dependency on the Kotlin standard library".

(That's because CompilerClassPath::addWorkspaceRoot(), which calls defaultClassPathResolver(), isn't triggered.)

Kotlin is not able to resolve all dependencies

I have a android/flutter/kotlin project and I am currently not able to work with kotlin code from within VS Code as some dependencies are marked as unresolved (what is wrong).
I can't give you a description how to reproduce it because this is a bigger project in early edevelopment, but I could provide you a link to the repository so you can try it yourself: https://drive.google.com/file/d/1230fAbYajg9nR2Ug8K-oulbDQW4f77mq/view?usp=sharing

I don't know if I would have to configure someting else in VS Code but the build works fine with Gradle.

Change default launch debug

I proposal change default config with the build section before launch debug. I hope it can to resolve more trouble
launch.json:

{
    "version": "0.2.0",
    "tasks": [
        {
            "label": "gradle: build",
            "type": "shell",
            "command": "./gradlew clean build",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation": {
                "reveal": "always",
                "panel": "new"
            },
        }
    ],
    "configurations": [
        {
            "type": "kotlin",
            "request": "launch",
            "name": "Kotlin Launch",
            "projectRoot": "${workspaceFolder}",
            "mainClass": "com.example.AppKt",
            "preLaunchTask": "gradle: build"
        }
    ]
}```

The extension downloads binaries without asking

It's ok to provide easy onboarding, but the extension should ask before downloading anything. What if the user is on a metered connection or prefers to install the Kotlin Language Server themselves.

That's what the official Rust Language Server extension for VS Code does.

Activating extension `fwcd.kotlin` failed

Hi!

I'm having issues opening a folder which contains multiple projects in subdirectories. They contain Maven projects and are made up of a mixture of Java and Kotlin files. The Java language server works fine, but the Kotlin one doesn't start (it works fine when I open single projects).

The exception thrown is:

[Extension Host] Here is the error stack:  Error: Internal error.
	at handleResponse (/Users/martinliersch/.vscode/extensions/fwcd.kotlin-0.1.12/node_modules/vscode-jsonrpc/lib/main.js:436:48)
	at processMessageQueue (/Users/martinliersch/.vscode/extensions/fwcd.kotlin-0.1.12/node_modules/vscode-jsonrpc/lib/main.js:263:17)
	at Immediate.setImmediate [as _onImmediate] (/Users/martinliersch/.vscode/extensions/fwcd.kotlin-0.1.12/node_modules/vscode-jsonrpc/lib/main.js:247:13)
	at runCallback (timers.js:789:20)
	at tryOnImmediate (timers.js:751:5)
	at processImmediate [as _immediateCallback] (timers.js:722:5)

Any ideas?

Goddchen

States that I don't have a debugger installed

Issue Type: Bug

I've installed the compiler and checked in cmd that its working properly. I've also installed the Kotlin and the Kotlin Language extensions but vsc tells me that I don't have any extensions for debugging installed. I've tried to reinstall the extensions but nothing works.

Extension version: 0.2.22
VS Code version: Code 1.56.2 (054a9295330880ed74ceaedda236253b4f39a335, 2021-05-12T17:13:13.157Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.92GB (18.39GB free)
Process Argv --crash-reporter-id 10814073-eda6-406d-89bd-93dfcfaf47f0
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt678:30270856
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30311713
vspre833:30267464
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158cf:30286554
vscgsv2:30307504
vscorehov:30309549
bridgeflight:30312182
vscod805:30301674

Support for syntax highlighting in markdown documents

Is your feature request related to a problem? Please describe.
The following section is not highlighted in an .md document

> ```kotlin
> var x=3
> ```

Describe the solution you'd like
Sytax highlighting support for kotlin in markdown documents.

Describe alternatives you've considered

Additional context

Issues with Gradle Kotlin DSL

Thanks for creating this extension!

Describe the bug
I want to use Kotlin DSL to configure Gradle build for a project which uses Java. However, the extension produces a lot of errors.

To Reproduce
Here is my build.gradle.kts file:

plugins {
    java
    application
}

repositories {
    jcenter()
}

dependencies {
    implementation("junit:junit:4.13")
    testImplementation("junit:junit:4.13")
}

configurations {
    implementation {
        resolutionStrategy.failOnVersionConflict()
    }
}

sourceSets {
    main {
        java.setSrcDirs(listOf("src"))
    }
    test {
        java.setSrcDirs(listOf("src"))
    }
}

java {
    sourceCompatibility = JavaVersion.VERSION_11
    targetCompatibility = JavaVersion.VERSION_11
}

application {
    mainClassName = "app.App"
}

val test by tasks.getting(Test::class) {
    useJUnitPlatform()
}

Here are the errors:
Kotlin errors

Extension version
0.2.11

Language server does not find openjdk installation (sdkman)

Describe the bug
When I want open up a kotlin file the language server fails to startup.

No Java runtime present, requesting install.
[Info  - 2:44:28 PM] Connection to server got closed. Server will restart

I also get the modal To use the "java" comand-line tool you need to install a JDK.

To Reproduce
Steps to reproduce the behavior:

  1. Open up a *.kt file

Expected behavior
The language server succeeds in starting

Extension version
0.2.11

Additional context
I am using sdkman and have openjdk 11 and kotlin 1.3.72 installed and set to default.
java is accessible in the path and JAVA_HOME is set.
OSX Catalina.

[Bug] Extension seems to be not registered in VSCode

Description

  1. Launching a kotlin debug configuration results in the following error message:

    Couldn't find a debug adapter descriptor for debug type 'kotlin' (extension might have failed to activate)

    And the following error in the developer tools console:

     ERR timeout after 1000 ms: Error: timeout after 1000 ms
       at t.RawDebugSession.handleErrorResponse (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3061:355)
       at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3060:679
       at async t.RawDebugSession.shutdown (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3058:772)
    
  2. Running "Kotlin: Restart the Language Server" from the Command Palette results in the following error message:

    Command 'Kotlin: Restart the Language Server' resulted in an error (command kotlin.languageServer.restart' not found)

    (the same error is also in developer tools console)

Additional context

There is also no mention of kotlin in my Extension Host log

Reproducing

    1. Create the following debug configuration:

      {
          "version": "0.2.0",
          "configurations": [
              {
                  "type": "kotlin",
                  "request": "launch",
                  "name": "Kotlin Launch",
                  "projectRoot": "${workspaceFolder}",
                  "mainClass": "path.to.your.MainClassKt"
              },
          ]
      }
    2. Launch the configuration

    3. See error

    1. Run "Kotlin: Restart the Language Server" from the Command Palette
    2. See error

Environment

Extension: 0.2.11
VSCode: 1.45.0 microsoft/vscode@d69a79b
OS: Microsoft Windows 10.0.18363

Kotlin Language Client Crash

Describe the bug
When starting the editor, the extension does not start and throws the following error:

[2020-07-08 10:12:01.035] [exthost] [error] Error: Internal error.
	at /home/sam/.vscode/extensions/fwcd.kotlin-0.2.18/dist/extension.js:1:39853
	at /home/sam/.vscode/extensions/fwcd.kotlin-0.2.18/dist/extension.js:1:40147
	at Immediate.<anonymous> (/home/sam/.vscode/extensions/fwcd.kotlin-0.2.18/dist/extension.js:1:40506)
	at processImmediate (internal/timers.js:439:21)

It also gets stuck in an infinite loop of "initializing the Kotlin Language Server"
To Reproduce
Steps to reproduce the behavior:

  1. Install the extension
  2. See error

Expected behavior
For the Kotlin Language Client to not crash

Extension version
Which version of the VSCode extension you are running.
0.2.18
Additional context
I'm running VSCode 1.46 on Arch Linux.
/

Could not update/download Kotlin Debug Adapter

Describe the bug
I just installed the extension, but soonly got an error like

Could not update/download Kotlin Debug Adapter: Error: Could not fetch from GitHub releases API: StatusCodeError: 403 - "{\"message\":\"API rate limit exceeded for 202.66.38.130. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\",\"documentation_url\":\"https://developer.github.com/v3/#rate-limiting\"}".

It seems that the API of Github the extension calling met some trouble.

To Reproduce
Steps to reproduce the behavior:

  1. Just install it

Expected behavior
I hope it works.

Extension version
v0.2.10

Additional context
Nothing else

Kotlin intellisense

Motivation

As java intellisense, it would be a perfect feature to improve kotlin programing on VScode

Description

Intellisense like there is in java extension pack. So it could autocomplete the code importing the package selected

Not supporting KTS and/or latest gradle

Issue Type: Bug

  1. Install latest gradle (7.2)
  2. Generate kotlin project with gradle build script in KTS format.
  3. Open up in vscode

Language server does not pick up imports from gradle file in .kt files.

Extension version: 0.2.23
VS Code version: Code 1.60.0 (e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff, 2021-09-01T10:54:53.442Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 2, 2
Memory (System) 16.00GB (0.10GB free)
Process Argv . --crash-reporter-id a951880c-ed38-4800-9d01-259cc3d1db29
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt700cf:30270857
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805:30301674
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwtct:30364498
pythonvssor306:30344512
bridge0708:30335490
pygetstartedc2:30360494
bridge0723:30353136
pythonrunftest32:30365366
pythonf5test824cf:30361778
javagetstartedt:30364666
pythonvspyt187cf:30365362
pydsgsc2:30361791
vscus224cf:30358040
vssid140:30363603

Uses the client's proxy settings on the server when working with the Remote Plugin

Describe the bug
Because I have very little privileges on my managed windows machine, I use a Linux VM in the cloud where I have full admin access and I run Visual Studio Code with the "Remote-SSH" extension (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh). The GUI Client runs on my managed windows desktop machine, the server runs on the Cloud Linux VM.

Now when I open a Kotlin project, it tries to download some stuff from Github and I get the following error message:

Could not update/download Kotlin Debug Adapter: Error: Could not fetch from GitHub releases 
API: RequestError: Error: getaddrinfo ENOTFOUND my-companys-proxy.net:80.

My educated guess is that it tries to download the Kotlin adapter on the Linux server, but it uses the proxy settings from the windows machine, which is an internal DNS name not visible to the cloud instance.

To Reproduce

  • Install the Remote SSH extension
  • Install the Kotlin extension
  • Add a proxy URL in your windows settings
  • Establish an SSH connection to a remote machine as described here: https://code.visualstudio.com/docs/remote/remote-overview
  • Open a kotlin project via the SSH connection
  • Observe the error message as described above

Expected behavior
Any code that runs on the server side should use the proxy settings from the linux server environment (actually, no proxy in my case).

Extension version
0.2.10

Additional context
Add any other context about the problem here.

External sources

Hello!

For example, I'm using Kotlin, gradle and protobuf.
I want to include external sources directory (which contains protoc output Java files).

Example hierarchy:

myproject
- gen
    java
      src
        main
          com
            example
              ProtobufOutput.java
- src
    main
       kotlin
          com
            example
              MyProjectFile.kt

Where ProtobufOutput.java contains some class ProtobufOutput.
I want to import com.example.ProtobufOutput in MyProjectFile.kt, how I can do this?

Thanks!

Misleading error when java executable not found

Description

There is no java installed on my system

  1. Install extension
  2. Do you want to download the LSP server? yes

Status bar shows permanently 'Initializing Kotlin Language Server...'

Error popup:

The Kotlin Language Client server crashed 5 times in the last 3 minutes. The server will not be restarted.

Extension version

0.2.18

Additional context

There already seems to be some handling for this in languageSetup.ts

const javaExecutablePath = await findJavaExecutable('java');
if (javaExecutablePath == null) {
vscode.window.showErrorMessage("Couldn't locate java in $JAVA_HOME or $PATH");

But as far as I can see this won't work because javaExecutablePath will never be null, because findJavaExecutable('java'); defaults to return the binary name.

Execution failed for task ':app:cleanMergeDebugAssets' while running the app in flutter

Main error while running the app in Visual Studio Code 1.46.1

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:cleanMergeDebugAssets'.
> Unable to delete directory 'E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out'
    Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
    - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\assets
    - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\packages\cupertino_icons
    - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\packages
    - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 50s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

This error gets resolved after flutter clean but even that shows the following error

The output of flutter clean -v

Console log
[  +28 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +102 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] 1ad9baa8b99a2897c20f9e6e54d3b9b359ade314
[        ] executing: [C:\src\flutter/] git tag --contains HEAD
[ +266 ms] Exit code 0 from: git tag --contains HEAD
[        ] 1.17.4
[  +15 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +51 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[  +46 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +126 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +48 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +49 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +52 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[  +58 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +61 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +57 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +109 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +80 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[  +64 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[  +68 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +103 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ +151 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +80 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +83 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +84 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +8 ms] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ +154 ms] Deleting build...
[  +13 ms] Failed to remove build. A program may still be using a file in the directory or the directory itself. To find and stop such a program, see:
           https://superuser.com/questions/1333118/cant-delete-empty-folder-because-it-is-used
[ +301 ms] Deleting build... (completed in 295ms)
[  +92 ms] Deleting .dart_tool...
[   +7 ms] Failed to remove E:\ACNO\Flutter\jots_mobile\.dart_tool. A program may still be using a file in the directory or the directory itself. To find and stop such a      
program, see:
           https://superuser.com/questions/1333118/cant-delete-empty-folder-because-it-is-used
[   +6 ms] Deleting .dart_tool... (completed in 12ms)
[ +375 ms] Deleting Generated.xcconfig...
[   +6 ms] Deleting Generated.xcconfig... (completed in 4ms)
[ +126 ms] Deleting flutter_export_environment.sh...
[   +1 ms] Deleting flutter_export_environment.sh... (completed in 0ms)
[  +10 ms] "flutter clean" took 2,286ms.
Even when I kill the processes which are using *build* and *.dart_tool* folders as mentioned in [this answer][1], `flutter clean` will show the same error

So, now I've to manually go to file explorer and delete the build & .dart_tool folders, which is the main issue here!

Summary: Main error while running the app gets resolved after flutter clean but even that is showing an error, so now I've to manually go and delete build & .dart_tool folders!

Role of Kotlin extension: This issue got completely fixed after I removed Kotlin v0.2.17 from VS Code

Note: This error occurs when I use "f5" to run my program in VS code and not when I use flutter run command in terminal or in Android Studio, but once it has occurred with "f5", it happens with flutter run command and Android Studio both. There is something wrong with the extension in VS Code that enables this "f5" shortcut, I guess!

Checkout this StackOverflow question for more details!

Steps to Reproduce

  1. Keep all the packages version similar to flutter doctor -v output
  2. Try running the app in debug mode in vs code.

Note: I'm using Flutter v3.11.0 extension in VS Code

Logs

Output of flutter --verbose run

Console logs
[  +26 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +77 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 1ad9baa8b99a2897c20f9e6e54d3b9b359ade314
[        ] executing: [C:\src\flutter/] git tag --contains HEAD
[ +263 ms] Exit code 0 from: git tag --contains HEAD
[   +2 ms] 1.17.4
[  +12 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +69 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[  +66 ms] Exit code 0 from: git ls-remote --get-url origin
[  +10 ms] https://github.com/flutter/flutter.git
[ +139 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +56 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +66 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +16 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +27 ms] executing: C:\Users\Arsh\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +65 ms] List of devices attached
           614ddc7d               device product:CPH1933 model:CPH1933 device:OP4B79L1 transport_id:1
[  +15 ms] C:\Users\Arsh\AppData\Local\Android\sdk\platform-tools\adb.exe -s 614ddc7d shell getprop
[ +163 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +5 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +29 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +151 ms] Found plugin cloud_firestore at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.13.6\
[  +55 ms] Found plugin cloud_firestore_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore_web-0.1.1+2\
[  +42 ms] Found plugin firebase_auth at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.16.1\
[  +40 ms] Found plugin firebase_auth_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth_web-0.1.3+1\
[  +48 ms] Found plugin firebase_core at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.4.5\
[  +47 ms] Found plugin firebase_core_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-0.1.1+2\
[  +44 ms] Found plugin firebase_messaging at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-6.0.16\
[   +6 ms] Found plugin firebase_storage at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage-3.1.6\
[  +60 ms] Found plugin flutter_local_notifications at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-1.4.4+1\
[ +111 ms] Found plugin flutter_plugin_android_lifecycle at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.8\
[  +25 ms] Found plugin google_sign_in at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\google_sign_in-4.5.1\
[  +73 ms] Found plugin google_sign_in_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\google_sign_in_web-0.9.1+1\
[  +78 ms] Found plugin image_picker at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\image_picker-0.6.7+1\
[  +83 ms] Found plugin shared_preferences at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.7+3\
[  +52 ms] Found plugin shared_preferences_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-0.0.1+10\
[  +71 ms] Found plugin shared_preferences_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_web-0.1.2+7\
[  +77 ms] Found plugin url_launcher at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher-5.4.10\
[  +53 ms] Found plugin url_launcher_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_macos-0.0.1+7\
[   +3 ms] Found plugin url_launcher_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_web-0.1.1+6\
[   +8 ms] Found plugin workmanager at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\workmanager-0.2.2\
[ +299 ms] Found plugin cloud_firestore at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.13.6\
[  +12 ms] Found plugin cloud_firestore_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore_web-0.1.1+2\
[   +8 ms] Found plugin firebase_auth at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.16.1\
[  +57 ms] Found plugin firebase_auth_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth_web-0.1.3+1\
[   +2 ms] Found plugin firebase_core at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.4.5\
[  +53 ms] Found plugin firebase_core_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core_web-0.1.1+2\
[  +48 ms] Found plugin firebase_messaging at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-6.0.16\
[   +7 ms] Found plugin firebase_storage at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage-3.1.6\
[  +37 ms] Found plugin flutter_local_notifications at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-1.4.4+1\
[ +124 ms] Found plugin flutter_plugin_android_lifecycle at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.8\
[  +51 ms] Found plugin google_sign_in at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\google_sign_in-4.5.1\
[  +46 ms] Found plugin google_sign_in_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\google_sign_in_web-0.9.1+1\
[  +48 ms] Found plugin image_picker at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\image_picker-0.6.7+1\
[  +62 ms] Found plugin shared_preferences at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.7+3\
[  +38 ms] Found plugin shared_preferences_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-0.0.1+10\
[  +51 ms] Found plugin shared_preferences_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences_web-0.1.2+7\
[   +8 ms] Found plugin url_launcher at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher-5.4.10\
[   +2 ms] Found plugin url_launcher_macos at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_macos-0.0.1+7\
[   +5 ms] Found plugin url_launcher_web at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher_web-0.1.1+6\
[ +147 ms] Found plugin workmanager at C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\workmanager-0.2.2\
[  +57 ms] Generating E:\ACNO\Flutter\jots_mobile\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +43 ms] ro.hardware = qcom
[  +84 ms] Launching lib\main.dart on CPH1933 in debug mode...
[  +19 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true
--output-dill C:\Users\Arsh\AppData\Local\Temp\flutter_tool.57d2a7b0-b46f-11ea-8881-ec8eb55a2030\app.dill --packages E:\ACNO\Flutter\jots_mobile\.packages
-Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --filesystem-scheme org-dartlang-root
[  +50 ms] executing: C:\Users\Arsh\AppData\Local\Android\sdk\build-tools\29.0.1\aapt dump xmltree E:\ACNO\Flutter\jots_mobile\build\app\outputs\apk\app.apk
AndroidManifest.xml
[  +58 ms] Exit code 0 from: C:\Users\Arsh\AppData\Local\Android\sdk\build-tools\29.0.1\aapt dump xmltree E:\ACNO\Flutter\jots_mobile\build\app\outputs\apk\app.apk
AndroidManifest.xml
[  +29 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.jots_mobile" (Raw: "com.example.jots_mobile")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.RECEIVE_BOOT_COMPLETED" (Raw: "android.permission.RECEIVE_BOOT_COMPLETED")
               E: uses-permission (line=17)
                 A: android:name(0x01010003)="android.permission.VIBRATE" (Raw: "android.permission.VIBRATE")
               E: uses-permission (line=18)
                 A: android:name(0x01010003)="android.permission.REQUEST_COMPANION_USE_DATA_IN_BACKGROUND" (Raw: "android.permission.REQUEST_COMPANION_USE_DATA_IN_BACKGROUND")               E: uses-permission (line=19)
                 A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE")
               E: uses-permission (line=20)
                 A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw: "android.permission.WRITE_EXTERNAL_STORAGE")
               E: uses-permission (line=21)
                 A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
               E: uses-permission (line=22)
                 A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
               E: uses-permission (line=23)
                 A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw:
                 "com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
               E: uses-permission (line=24)
                 A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw: "com.google.android.c2dm.permission.RECEIVE")
               E: application (line=26)
                 A: android:label(0x01010001)="Jots" (Raw: "Jots")
                 A: android:icon(0x01010002)=@0x7f090000
                 A: android:name(0x01010003)="com.example.jots_mobile.Application" (Raw: "com.example.jots_mobile.Application")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=32)
                   A: android:theme(0x01010000)=@0x7f0b0000
                   A: android:name(0x01010003)="com.example.jots_mobile.MainActivity" (Raw: "com.example.jots_mobile.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=39)
                     E: action (line=40)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=42)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                   E: intent-filter (line=46)
                     E: action (line=47)
                       A: android:name(0x01010003)="FLUTTER_NOTIFICATION_CLICK" (Raw: "FLUTTER_NOTIFICATION_CLICK")
                     E: category (line=49)
                       A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
                 E: receiver (line=55)
                   A: android:name(0x01010003)="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver" (Raw:
                   "com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver")
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw: "android.intent.action.BOOT_COMPLETED")
                 E: receiver (line=60)
                   A: android:name(0x01010003)="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" (Raw:
                   "com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver")
                 E: meta-data (line=62)
                   A: android:name(0x01010003)="com.google.firebase.messaging.default_notification_channel_id" (Raw:
                   "com.google.firebase.messaging.default_notification_channel_id")
                   A: android:value(0x01010024)="DUE_DATE_REMINDER" (Raw: "DUE_DATE_REMINDER")
                 E: meta-data (line=70)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: service (line=74)
                   A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")    
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0xffffffff
                   E: meta-data (line=78)
                     A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebaseauth.FlutterFirebaseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebaseauth.FlutterFirebaseAppRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=81)
                     A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.storage.FlutterFirebaseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebase.storage.FlutterFirebaseAppRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=84)
                     A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.cloudfirestore.FlutterFirebaseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebase.cloudfirestore.FlutterFirebaseAppRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=87)
                     A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=90)
                     A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebasemessaging.FlutterFirebaseAppRegistrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebasemessaging.FlutterFirebaseAppRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=93)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=96)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=99)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.iid.Registrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=102)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=105)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=108)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.storage.StorageRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.storage.StorageRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=111)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=114)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
                 E: provider (line=119)
                   A: android:name(0x01010003)="io.flutter.plugins.imagepicker.ImagePickerFileProvider" (Raw: "io.flutter.plugins.imagepicker.ImagePickerFileProvider")        
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.jots_mobile.flutter.image_provider" (Raw: "com.example.jots_mobile.flutter.image_provider")
                   A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff
                   E: meta-data (line=124)
                     A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS")
                     A: android:resource(0x01010025)=@0x7f0d0000
                 E: service (line=129)
                   A: android:name(0x01010003)="io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService" (Raw:
                   "io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService")
                   E: intent-filter (line=130)
                     E: action (line=131)
                       A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw: "com.google.firebase.MESSAGING_EVENT")
                 E: activity (line=135)
                   A: android:theme(0x01010000)=@0x01030007
                   A: android:name(0x01010003)="io.flutter.plugins.urllauncher.WebViewActivity" (Raw: "io.flutter.plugins.urllauncher.WebViewActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: service (line=143)
                   A: android:name(0x01010003)="com.google.firebase.messaging.FirebaseMessagingService" (Raw: "com.google.firebase.messaging.FirebaseMessagingService")        
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   E: intent-filter (line=146)
                     A: android:priority(0x0101001c)=(type 0x10)0xfffffe0c
                     E: action (line=147)
                       A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw: "com.google.firebase.MESSAGING_EVENT")
                 E: receiver (line=151)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementReceiver")  
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=156)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver" (Raw:
                   "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
                   A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw: "android.permission.INSTALL_PACKAGES")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=161)
                     E: action (line=162)
                       A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw: "com.android.vending.INSTALL_REFERRER")
                 E: service (line=166)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw: "com.google.android.gms.measurement.AppMeasurementService")    
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: service (line=170)
                   A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw:
                   "com.google.android.gms.measurement.AppMeasurementJobService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=176)
                   A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw: "com.google.firebase.iid.FirebaseInstanceIdReceiver")
                   A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw: "com.google.android.c2dm.permission.SEND")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=180)
                     E: action (line=181)
                       A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE")
                 E: activity (line=185)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.firebase.auth.internal.FederatedSignInActivity" (Raw: "com.google.firebase.auth.internal.FederatedSignInActivity")  
                   A: android:permission(0x01010006)="com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN" (Raw:
                   "com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x2
                 E: provider (line=193)
                   A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.jots_mobile.firebaseinitprovider" (Raw: "com.example.jots_mobile.firebaseinitprovider")
                   A: android:initOrder(0x0101001a)=(type 0x10)0x64
                 E: activity (line=199)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" (Raw:
                   "com.google.android.gms.auth.api.signin.internal.SignInHubActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                 E: service (line=208)
                   A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.RevocationBoundService" (Raw:
                   "com.google.android.gms.auth.api.signin.RevocationBoundService")
                   A: android:permission(0x01010006)="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" (Raw:
                   "com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                 E: activity (line=213)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: meta-data (line=218)
                   A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
                   A: android:value(0x01010024)=@0x7f070001
                 E: provider (line=222)
                   A: android:name(0x01010003)="androidx.work.impl.WorkManagerInitializer" (Raw: "androidx.work.impl.WorkManagerInitializer")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:multiprocess(0x01010013)=(type 0x12)0xffffffff
                   A: android:authorities(0x01010018)="com.example.jots_mobile.workmanager-init" (Raw: "com.example.jots_mobile.workmanager-init")
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                 E: service (line=229)
                   A: android:name(0x01010003)="androidx.work.impl.background.systemalarm.SystemAlarmService" (Raw:
                   "androidx.work.impl.background.systemalarm.SystemAlarmService")
                   A: android:enabled(0x0101000e)=@0x7f020000
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                 E: service (line=234)
                   A: android:name(0x01010003)="androidx.work.impl.background.systemjob.SystemJobService" (Raw: "androidx.work.impl.background.systemjob.SystemJobService")    
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
                   A: android:enabled(0x0101000e)=@0x7f020001
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                 E: receiver (line=241)
                   A: android:name(0x01010003)="androidx.work.impl.utils.ForceStopRunnable$BroadcastReceiver" (Raw:
                   "androidx.work.impl.utils.ForceStopRunnable$BroadcastReceiver")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                 E: receiver (line=246)
                   A: android:name(0x01010003)="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryChargingProxy" (Raw:
                   "androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryChargingProxy")
                   A: android:enabled(0x0101000e)=(type 0x12)0x0
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                   E: intent-filter (line=251)
                     E: action (line=252)
                       A: android:name(0x01010003)="android.intent.action.ACTION_POWER_CONNECTED" (Raw: "android.intent.action.ACTION_POWER_CONNECTED")
                     E: action (line=253)
                       A: android:name(0x01010003)="android.intent.action.ACTION_POWER_DISCONNECTED" (Raw: "android.intent.action.ACTION_POWER_DISCONNECTED")
                 E: receiver (line=256)
                   A: android:name(0x01010003)="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryNotLowProxy" (Raw:
                   "androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryNotLowProxy")
                   A: android:enabled(0x0101000e)=(type 0x12)0x0
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                   E: intent-filter (line=261)
                     E: action (line=262)
                       A: android:name(0x01010003)="android.intent.action.BATTERY_OKAY" (Raw: "android.intent.action.BATTERY_OKAY")
                     E: action (line=263)
                       A: android:name(0x01010003)="android.intent.action.BATTERY_LOW" (Raw: "android.intent.action.BATTERY_LOW")
                 E: receiver (line=266)
                   A: android:name(0x01010003)="androidx.work.impl.background.systemalarm.ConstraintProxy$StorageNotLowProxy" (Raw:
                   "androidx.work.impl.background.systemalarm.ConstraintProxy$StorageNotLowProxy")
                   A: android:enabled(0x0101000e)=(type 0x12)0x0
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                   E: intent-filter (line=271)
                     E: action (line=272)
                       A: android:name(0x01010003)="android.intent.action.DEVICE_STORAGE_LOW" (Raw: "android.intent.action.DEVICE_STORAGE_LOW")
                     E: action (line=273)
                       A: android:name(0x01010003)="android.intent.action.DEVICE_STORAGE_OK" (Raw: "android.intent.action.DEVICE_STORAGE_OK")
                 E: receiver (line=276)
                   A: android:name(0x01010003)="androidx.work.impl.background.systemalarm.ConstraintProxy$NetworkStateProxy" (Raw:
                   "androidx.work.impl.background.systemalarm.ConstraintProxy$NetworkStateProxy")
                   A: android:enabled(0x0101000e)=(type 0x12)0x0
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                   E: intent-filter (line=281)
                     E: action (line=282)
                       A: android:name(0x01010003)="android.net.conn.CONNECTIVITY_CHANGE" (Raw: "android.net.conn.CONNECTIVITY_CHANGE")
                 E: receiver (line=285)
                   A: android:name(0x01010003)="androidx.work.impl.background.systemalarm.RescheduleReceiver" (Raw:
                   "androidx.work.impl.background.systemalarm.RescheduleReceiver")
                   A: android:enabled(0x0101000e)=(type 0x12)0x0
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                   E: intent-filter (line=290)
                     E: action (line=291)
                       A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw: "android.intent.action.BOOT_COMPLETED")
                     E: action (line=292)
                       A: android:name(0x01010003)="android.intent.action.TIME_SET" (Raw: "android.intent.action.TIME_SET")
                     E: action (line=293)
                       A: android:name(0x01010003)="android.intent.action.TIMEZONE_CHANGED" (Raw: "android.intent.action.TIMEZONE_CHANGED")
                 E: receiver (line=296)
                   A: android:name(0x01010003)="androidx.work.impl.background.systemalarm.ConstraintProxyUpdateReceiver" (Raw:
                   "androidx.work.impl.background.systemalarm.ConstraintProxyUpdateReceiver")
                   A: android:enabled(0x0101000e)=@0x7f020000
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                   E: intent-filter (line=301)
                     E: action (line=302)
                       A: android:name(0x01010003)="androidx.work.impl.background.systemalarm.UpdateProxies" (Raw: "androidx.work.impl.background.systemalarm.UpdateProxies")  
                 E: service (line=306)
                   A: android:name(0x01010003)="androidx.room.MultiInstanceInvalidationService" (Raw: "androidx.room.MultiInstanceInvalidationService")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: service (line=309)
                   A: android:name(0x01010003)="com.google.android.datatransport.runtime.backends.TransportBackendDiscovery" (Raw:
                   "com.google.android.datatransport.runtime.backends.TransportBackendDiscovery")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   E: meta-data (line=312)
                     A: android:name(0x01010003)="backend:com.google.android.datatransport.cct.CctBackendFactory" (Raw:
                     "backend:com.google.android.datatransport.cct.CctBackendFactory")
                     A: android:value(0x01010024)="cct" (Raw: "cct")
                 E: service (line=316)
                   A: android:name(0x01010003)="com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService" (Raw:
                   "com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=322)
                   A: android:name(0x01010003)="com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcastReceiver" (Raw:
                   "com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcastReceiver")
                   A: android:exported(0x01010010)=(type 0x12)0x0
[+1632 ms] executing: C:\Users\Arsh\AppData\Local\Android\sdk\platform-tools\adb.exe -s 614ddc7d shell -x logcat -v time -t 1
[ +179 ms] Exit code 0 from: C:\Users\Arsh\AppData\Local\Android\sdk\platform-tools\adb.exe -s 614ddc7d shell -x logcat -v time -t 1
[   +1 ms] --------- beginning of main
           06-22 15:31:37.025 W/Settings(11349): Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning       
           read-only value.
[  +48 ms] <- compile package:jots_mobile/main.dart
[  +84 ms] executing: C:\Users\Arsh\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +98 ms] Android Debug Bridge version 1.0.41
           Version 29.0.6-6198805
           Installed as C:\Users\Arsh\AppData\Local\Android\sdk\platform-tools\adb.exe
[  +13 ms] executing: C:\Users\Arsh\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[ +122 ms] Building APK
[  +30 ms] Running Gradle task 'assembleDebug'...
[  +50 ms] gradle.properties already sets `android.enableR8`
[   +9 ms] Using gradle from E:\ACNO\Flutter\jots_mobile\android\gradlew.bat.
[  +48 ms] E:\ACNO\Flutter\jots_mobile\android\gradlew.bat mode: 33279 rwxrwxrwx.
[  +53 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +154 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[        ] openjdk version "1.8.0_212-release"
           OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
           OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
[   +7 ms] executing: [E:\ACNO\Flutter\jots_mobile\android/] E:\ACNO\Flutter\jots_mobile\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=E:\ACNO\Flutter\jots_mobile\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+6981 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[ +759 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[ +589 ms] > Task :app:preBuild UP-TO-DATE
[ +473 ms] > Task :app:preDebugBuild UP-TO-DATE
[  +40 ms] > Task :cloud_firestore:preBuild UP-TO-DATE
[   +2 ms] > Task :cloud_firestore:preDebugBuild UP-TO-DATE
[ +144 ms] > Task :cloud_firestore_web:preBuild UP-TO-DATE
[  +69 ms] > Task :cloud_firestore_web:preDebugBuild UP-TO-DATE
[ +211 ms] > Task :firebase_core:preBuild UP-TO-DATE
[   +1 ms] > Task :firebase_core:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :firebase_core_web:preBuild UP-TO-DATE
[   +2 ms] > Task :firebase_core_web:preDebugBuild UP-TO-DATE
[   +3 ms] > Task :firebase_core_web:compileDebugAidl NO-SOURCE
[ +307 ms] > Task :firebase_auth:preBuild UP-TO-DATE
[  +20 ms] > Task :firebase_auth:preDebugBuild UP-TO-DATE
[  +49 ms] > Task :firebase_auth_web:preBuild UP-TO-DATE
[ +187 ms] > Task :firebase_auth_web:preDebugBuild UP-TO-DATE
[  +87 ms] > Task :firebase_auth_web:compileDebugAidl NO-SOURCE
[  +31 ms] > Task :firebase_messaging:preBuild UP-TO-DATE
[  +58 ms] > Task :firebase_messaging:preDebugBuild UP-TO-DATE
[  +53 ms] > Task :firebase_core:compileDebugAidl NO-SOURCE
[   +7 ms] > Task :cloud_firestore_web:compileDebugAidl NO-SOURCE
[ +198 ms] > Task :cloud_firestore:compileDebugAidl NO-SOURCE
[ +114 ms] > Task :firebase_auth:compileDebugAidl NO-SOURCE
[ +174 ms] > Task :firebase_messaging:compileDebugAidl NO-SOURCE
[ +123 ms] > Task :firebase_storage:preBuild UP-TO-DATE
[ +156 ms] > Task :firebase_storage:preDebugBuild UP-TO-DATE
[  +31 ms] > Task :firebase_storage:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :flutter_local_notifications:preBuild UP-TO-DATE
[   +2 ms] > Task :flutter_local_notifications:preDebugBuild UP-TO-DATE
[   +3 ms] > Task :flutter_plugin_android_lifecycle:preBuild UP-TO-DATE
[ +350 ms] > Task :flutter_plugin_android_lifecycle:preDebugBuild UP-TO-DATE
[  +51 ms] > Task :flutter_plugin_android_lifecycle:compileDebugAidl NO-SOURCE
[ +149 ms] > Task :google_sign_in:preBuild UP-TO-DATE
[ +160 ms] > Task :google_sign_in:preDebugBuild UP-TO-DATE
[  +23 ms] > Task :image_picker:preBuild UP-TO-DATE
[  +34 ms] > Task :image_picker:preDebugBuild UP-TO-DATE
[ +112 ms] > Task :image_picker:compileDebugAidl NO-SOURCE
[   +3 ms] > Task :flutter_local_notifications:compileDebugAidl NO-SOURCE
[   +2 ms] > Task :shared_preferences:preBuild UP-TO-DATE
[ +103 ms] > Task :shared_preferences:preDebugBuild UP-TO-DATE
[ +257 ms] > Task :url_launcher:preBuild UP-TO-DATE
[   +1 ms] > Task :url_launcher:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :url_launcher_web:preBuild UP-TO-DATE
[   +1 ms] > Task :url_launcher_web:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :url_launcher_web:compileDebugAidl NO-SOURCE
[ +233 ms] > Task :url_launcher:compileDebugAidl NO-SOURCE
[  +89 ms] > Task :shared_preferences:compileDebugAidl NO-SOURCE
[  +71 ms] > Task :workmanager:preBuild UP-TO-DATE
[   +1 ms] > Task :workmanager:preDebugBuild UP-TO-DATE
[        ] > Task :workmanager:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :google_sign_in:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :app:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :cloud_firestore:packageDebugRenderscript NO-SOURCE
[ +172 ms] > Task :cloud_firestore_web:packageDebugRenderscript NO-SOURCE
[  +50 ms] > Task :firebase_auth:packageDebugRenderscript NO-SOURCE
[        ] > Task :firebase_auth_web:packageDebugRenderscript NO-SOURCE
[        ] > Task :firebase_core:packageDebugRenderscript NO-SOURCE
[   +1 ms] > Task :firebase_core_web:packageDebugRenderscript NO-SOURCE
[   +1 ms] > Task :firebase_messaging:packageDebugRenderscript NO-SOURCE
[        ] > Task :firebase_storage:packageDebugRenderscript NO-SOURCE
[        ] > Task :flutter_local_notifications:packageDebugRenderscript NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:packageDebugRenderscript NO-SOURCE
[        ] > Task :google_sign_in:packageDebugRenderscript NO-SOURCE
[        ] > Task :image_picker:packageDebugRenderscript NO-SOURCE
[   +1 ms] > Task :shared_preferences:packageDebugRenderscript NO-SOURCE
[   +1 ms] > Task :url_launcher:packageDebugRenderscript NO-SOURCE
[ +125 ms] > Task :url_launcher_web:packageDebugRenderscript NO-SOURCE
[ +121 ms] > Task :workmanager:packageDebugRenderscript NO-SOURCE
[   +1 ms] > Task :app:compileDebugRenderscript NO-SOURCE
[   +1 ms] > Task :app:checkDebugManifest UP-TO-DATE
[ +149 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE
[  +51 ms] > Task :app:cleanMergeDebugAssets FAILED
[  +59 ms] FAILURE: Build failed with an exception.
[   +3 ms] * What went wrong:
[   +7 ms] Execution failed for task ':app:cleanMergeDebugAssets'.
[ +122 ms] > Unable to delete directory 'E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out'
[   +1 ms]     Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
[   +1 ms]     - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\assets\fonts
[        ]     - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\assets\images
[  +62 ms]     - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\assets\vectors
[   +3 ms]     - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\assets
[   +3 ms]     - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\fonts
[  +71 ms] 5 actionable tasks: 1 executed, 4 up-to-date
[  +89 ms]     - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\packages\cupertino_icons\assets
[  +71 ms]     - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\packages\cupertino_icons
[  +17 ms]     - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets\packages
[  +92 ms]     - E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out\flutter_assets
[   +1 ms] * Try:
[   +1 ms] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[   +1 ms] * Get more help at https://help.gradle.org
[ +213 ms] BUILD FAILED in 12s
[  +22 ms] Running Gradle task 'assembleDebug'... (completed in 14.3s)
[+2784 ms] Exception: Gradle task assembleDebug failed with exit code 1
[   +3 ms] "flutter run" took 22,482ms.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:569:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:723:18)
#3      _rootRunUnary (dart:async/zone.dart:1192:38)
#4      _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#5      _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#6      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#7      Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#8      Future._completeWithValue (dart:async/future_impl.dart:526:5)
#9      _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#10     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#11     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#12     _rootRunUnary (dart:async/zone.dart:1192:38)
#13     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#14     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#16     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#17     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#18     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#19     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#20     AndroidDevice.isLocalEmulator (package:flutter_tools/src/android/android_device.dart)
#21     _rootRunUnary (dart:async/zone.dart:1192:38)
#22     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#23     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#24     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#25     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#26     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#27     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7)
#28     _rootRun (dart:async/zone.dart:1184:13)
#29     _CustomZone.run (dart:async/zone.dart:1077:19)
#30     _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#31     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
#32     _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#33     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#34     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#35     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

The output of flutter doctor -v

Console logs
[√] Flutter (Channel stable, v1.17.4, on Microsoft Windows [Version 10.0.18362.900], locale en-US)
    • Flutter version 1.17.4 at C:\src\flutter
    • Framework revision 1ad9baa8b9 (5 days ago), 2020-06-17 14:41:16 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4
 
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at C:\Users\Arsh\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    • All Android licenses accepted.

[√] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[!] IntelliJ IDEA Community Edition (version 2017.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.4
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[√] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.2
    • Flutter plugin version 43.0.3
    • Dart plugin version 193.6015.53

[√] VS Code (version 1.46.1)
    • VS Code at C:\Users\Arsh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.11.0

[√] Connected device (1 available)
    • CPH1933 • 614ddc7d • android-arm64 • Android 9 (API 28)

! Doctor found issues in 1 category.

Publish a newer, stable release to the VSCode Extension Marketplace

As of August 3, 2019, the latest published version of this project on the VSCode Extension Marketplace is v0.1.13. However, I notice that there have been version bumps of v0.1.14 and v0.1.15. Was there any reason why those versions didn’t make it to the marketplace? (Or to GitHub as releases?)

I ask because the bugs I was experiencing with v0.1.13 in VSCode seem to have gone away when I manually cloned, compiled master, packaged, and installed the extension.

BTW, thank you so much for maintaining this project. Please feel free to continue tagging issues that are good first contributions so folks who are new to this project, like me, can help.

Support for WSL

In a WSL environment the extension simply does nothing (despite being enabled on WSL). The language server is never downloaded and Kotlin code is without syntax highlighting, etc.

It would be great if we could get WSL support.

The only alternative so far is to use the language server by Matthias Frohlich, which works in WSL.

Kotlin Language Server does not install

this problem appears when i install Kotlin extention and after that when i press F5 to debug a simple code of kotlin nothing happens and when Vscode wan't to install the Kotlin Language Server this Error appears : "The Kotlin Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted" and after that, in the status bar a progress is running which says "Initializing Kotlin language server . well as a poor programmer my laptop can't handle android studio or Intellij IDEA because it's old and has low specs. so VScode is my only option and this problem stopped me to learn Kotlin language untill it get fixed or i find a solution.
.Thank You!.

Extension version: 0.2.11
VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:45:59.656Z)
OS version: Windows_NT x64 6.1.7601

| File types: kt(1) json(1)
| Conf files: launch.json(1)
| Launch Configs: kotlin(2);

Offline language-server & debug adapter support/instruction

Motivation

I work with an offline system that I want to use this extension on. Since there is no direct internet connection, the current version (0.2.23) fails to download the Kotlin language server and debug adapter from Github. No further instruction is provided on how to manually find and install these two dependencies after the error message displays and none is provided in the README.md file.

It would improve the user experience if the extension somehow instructed the user (maybe in the error messages or through a pop-up) on how to manually obtain and install these dependencies when this situation occurs.

Calling out these dependencies and their manual installation process in the README.md file would also help limit the number of transfers over the air-gap.

Description

  1. Either update the error messages displayed by VSCode or add some kind of pop-up with instructions on how to manually download and install the language server and debug adapter when the download fails.
  2. Provide this instruction in the README.md file.

Alternatives considered

Just providing the instruction in the README.md would still be a major improvement for the situation that would not require any code changes.

Consider publishing on open-vsx.org as well?

Open VSX is a website that's meant to be an alternative to Microsoft's marketplace. From the sound of it, there may be some legal issues with forks of VS Code using the Marketplace (although the answer is not really clear at this point, from reading the issue?), so VSCodium (which I use) has switched to Open VSX. Because this extension is not published there, anyone using VSCodium needs to install this manually (which admittedly isn't incredibly difficult, but not as simple as just installing from the market).

You can publish the extension manually, or just add it here and their CI will publish it automatically. Would you mind doing this? Or alternatively, anyone can add an extension to their CI (as long as it's open source), so I could do that, if you have no objection.

Improve uncaught exception handling ("Internal Error" popups)

Currently uncaught exceptions on the server side result in a generic "Internal Error" popup in VSCode:

grafik

The reason for this is that LSP4J places the stacktrace in the data field which is apparently ignored on the client side:

Content-Length: 2789

{
    "jsonrpc": "2.0",
    "id": 0,
    "error": {
        "code": -32603,
        "message": "Internal error.",
        "data": "java.lang.RuntimeException: java.lang.reflect.InvocationTargetException\r\n\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:67)\r\n\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)\r\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)\r\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)\r\n\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:192)\r\n\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)\r\n\tat org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:99)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nCaused by: java.lang.reflect.InvocationTargetException\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)\r\n\t... 11 more\r\nCaused by: java.lang.IllegalArgumentException\r\n\tat sun.nio.fs.WindowsFileSystem.getPathMatcher(WindowsFileSystem.java:288)\r\n\tat org.javacs.kt.classpath.FindClassPathKt.ignoredPathPatterns(FindClassPath.kt:75)\r\n\tat org.javacs.kt.classpath.FindClassPathKt.workspaceResolvers(FindClassPath.kt:62)\r\n\tat org.javacs.kt.classpath.FindClassPathKt.access$workspaceResolvers(FindClassPath.kt:1)\r\n\tat org.javacs.kt.classpath.FindClassPathKt$findClassPath$resolver$1.invoke(FindClassPath.kt:14)\r\n\tat org.javacs.kt.classpath.FindClassPathKt$findClassPath$resolver$1.invoke(FindClassPath.kt)\r\n\tat kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:279)\r\n\tat kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:267)\r\n\tat org.javacs.kt.classpath.FindClassPathKt.findClassPath(FindClassPath.kt:116)\r\n\tat org.javacs.kt.CompilerClassPath.refresh(CompilerClassPath.kt:13)\r\n\tat org.javacs.kt.CompilerClassPath.addWorkspaceRoot(CompilerClassPath.kt:33)\r\n\tat org.javacs.kt.KotlinLanguageServer.initialize(KotlinLanguageServer.kt:68)\r\n\t... 16 more\r\n"
    }
}

Unfortunately, VSCode's output log also disappears once the language server terminates. The question is thus whether there is a better way to display uncaught exceptions, ideally featuring the stacktrace.

Support no folder debugging

Hi VS Code PM here 👋

  1. Purple no folder VS Code -> create a new kotlin file
  2. Press F5 -> notice how we offer the user to download your extension 👏
  3. Now the user presses F5 again and wants to debug, but nothing happens since kotlin is not supporting single folder debugging

Easiest to do this is to have a dynamic resolveDebugConfiguartion that will provide a launch configuration on the fly. Example

Apart from that consider contributing to the Editor title area menu, such that a Play button would appear in the Editor Title area (picture below). Example how to do this https://github.com/microsoft/vscode-mock-debug/blob/main/package.json#L80

I think both of these are super important and would really love that we improve this experience 💯
Let me know if I can help somehow. I am also open to a quick 30 min meeting where we can discuss about the new cool VS Code debug features that kotlin could potentially adopt.

Environment / Property Variables during Linting

Motivation

A brief explanation why you need the new feature, e.g. "I'm always frustrated when [...]"

I am currently using a private repository which requires credentials. To conform to CI practices, the username and password can never be in the source code which is the build.gradle

Description

The feature you would like to see.

Allow lsp to include variables when fetching dependencies while activating extension

Alternatives considered

Any alternative solutions or features you have considered.

Donations?

Our company has a donations program for open source projects that we use on the job.
But I don't see a way to donate for the development of this extension.

Unresolved reference: println

I just installed this and I have a file that is only a main function with println, the extension however tells me "Unresolved reference: println", im sure this is a mistake on my side. I tried with the kotlin and kotlinc binaries in the path (im on windows 10 18362). Help would be much apreciated

Activate on more specific debug events

Motivation

Activation is currently quite heavyweight due to the download of both the language server and a debug adapter. Making this more lightweight (e.g. by not awaiting the download in the activate function) would be nice too, but something to explore in a future issue.

Proposal

Instead of onDebug, listen to more specific debug activation events.

fs.mkdir isn't recursive and download fails

Describe the bug
Hello, I'm trying to add this extension as Kotlin plugin for Eclipse Che using Eclipse Theia supporting VSCode extensions, but I can't have it working because download of extension is failing due this code snippet can't create recursively the path:

await fs.promises.mkdir(this.installDir, { recursive: true });

Error I get is:

Activating extension 'Kotlin' failed: ENOENT: no such file or directory,
mkdir '/home/theia/home/theia/fwcd.kotlin'

so context.defaultGlobalStorage lands to /home/theia/home/theia, while only /home/theia exists.

Shoudn't fs.mkdir with recursive=true create it anyway?
https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_fs_mkdir_path_options_callback

Is there any way to pass the installDir as parameter from package.json ?
To Reproduce
PR open with all details and how to reproduce it:
eclipse-che/che-plugin-registry#611

Expected behavior
ServerDownloader.installDir is created on Eclipse Che using this VSCode extension

Extension version
0.2.18

VSCode Auto Imports

Unlike when editing .java files, it seems that auto-importing does not work with Kotlin and this plug-in. For example, I include a dependency in my gradle.build file, the library appears in my Java Dependencies list, but referencing a class in that library from within a .kt file does not trigger an import of the class from the library. The class remains unresolved.

All around, this plug-in seems very promising, but this feature gap prevents me from using VS Code with the Kotlin language. If auto-importing worked just as it does with Java, that would be a tremendous productivity enhancement!

Nothing is running when I press f5 > kotlin

Describe the bug
I can not run with the extension.
I have the simple program:

fun main(args: Array<String>) {
    println("Hello World!")
}

I have build the gradle project using the terminal (using gradle build).
The project works when I use gradle run in terminal.

When I press f5 in vscode then in Select Environment I get a list with:
Java Kotlin, Node.js, More.... When I choose Kotlin, nothing happens, no error message either. I have no clue what to do next.

extension version 0.2.10

Passing vmArgs (JavaFX11+ support)

Unless I am missing something which could very much be the case, It seems impossible to specify some vm arguments for the JVM.

This is mandatory with JavaFX11+ where one has to pass something like that:
--module-path /usr/local/javafx/javafx-sdk-13.0.1/lib/ --add-modules javafx.controls,javafx.fxml

The java launcher supports passing a vmArgs configuration for example to address this.

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.