Comments (15)
Could you please check build/logs/karma.log
for errors ?
from kotlin-frontend-plugin.
Single line is there:
webpack: wait until bundle finished:
line 243 in https://travis-ci.org/elpassion/todo-kotlin-react-example/builds/221295191
from kotlin-frontend-plugin.
I see, the reason is that bundling takes too long so it kills karma. So actions to be done are:
- increase timeout
- make timeout configurable
- better diagnostics
from kotlin-frontend-plugin.
Should be fixed in 0.0.18. @OrdonTeam Could you please verify ?
from kotlin-frontend-plugin.
I will, thanks
from kotlin-frontend-plugin.
It works in 0.0.18, thanks !
from kotlin-frontend-plugin.
Hm. It still doesn't work on travis.
Same error in the same line:
https://travis-ci.org/elpassion/todo-kotlin-react-example/builds/225899869.
@Anmol92verma Have you tried on travis? Is it open repository? Can we see your setup in travis yml?
from kotlin-frontend-plugin.
@OrdonTeam is it failed in 13 seconds? default timeout is 30 seconds. Are you sure you have upgraded?
from kotlin-frontend-plugin.
@OrdonTeam could you please try to specify in gradle.properties
the following
org.kotlin.frontend.startup.timeout=120
from kotlin-frontend-plugin.
I could reproduce this as well.
Ubuntu 16.04LTS
java -version "1.8.0_101"
node --version v4.2.6
When I executed ./gradlew clean run --debug
within kotlin-frontend-plugin/examples/frontend-only
I've got this ( I copied only the :karma-start related lines ):
11:48:50.255 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':karma-start'.
11:48:50.259 [DEBUG] [org.gradle.api.Task] Running /usr/bin/node /home/zpolgar/workspace/kotlin-frontend-plugin/examples/frontend-only/build/node_modules/karma/bin/karma start
11:48:56.992 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running
11:48:56.992 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
11:48:56.992 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
11:48:56.993 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
11:48:56.993 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
11:48:56.993 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
11:48:56.993 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
11:48:57.770 [ERROR] [org.gradle.api.Task] karma: not actually running so has been killed
11:48:57.770 [ERROR] [system.err] webpack: wait until bundle finished:
11:48:58.823 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context.
11:48:58.823 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':karma-start'
11:48:58.823 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] :karma-start FAILED
When I'm inspecting the running processes with Htop I can see a running karma but after this line karma: not actually running so has been killed
It's disappear.
On the other hand, when I'm running /usr/bin/node /home/zpolgar/workspace/kotlin-frontend-plugin/examples/frontend-only/build/node_modules/karma/bin/karma start
first in a separated terminal window, then ./gradlew clean run
is working.
In this case the :karma-start task related lines are the following.
1111:51:51.467 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':karma-start'.
11:51:51.469 [DEBUG] [org.gradle.api.Task] Running /usr/bin/node /home/zpolgar/workspace/kotlin-frontend-plugin/examples/frontend-only/build/node_modules/karma/bin/karma start
11:51:51.471 [LIFECYCLE] [org.gradle.api.Task] karma started, open http://localhost:9876/ in your browser to run tests and see report
11:51:51.471 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context.
11:51:51.471 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':karma-start'
11:51:51.471 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :karma-start (Thread[Daemon worker Thread 2,5,main]) completed. Took 0.005 secs.
11:51:51.471 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationWorkerRegistry] Worker root.20 completed (0 in use)
11:51:51.472 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationWorkerRegistry] Worker root.21 started (1 in use).
11:51:51.472 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :webpack-run (Thread[Daemon worker Thread 2,5,main]) started.
11:51:51.472 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] :webpack-run
11:51:51.473 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':webpack-run'
11:51:51.473 [INFO] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Putting task artifact state for task ':webpack-run' into context took 0.0 secs.
Hope this help in a way.
from kotlin-frontend-plugin.
@Pozo have you tried with 0.0.18 and org.kotlin.frontend.startup.timeout=120
? from you logs I can see it is 0.0.17
from kotlin-frontend-plugin.
Yes, I've started with your suggestion first.
All in all I tried a fresh clone with org.kotlin.frontend.startup.timeout=120
and I tried tried with 0.0.18 (6d6f4fe) as well with org.kotlin.frontend.startup.timeout=120
( I've tried much bigger number as well ) but it does not work.
from kotlin-frontend-plugin.
Does it actually wait for so long but fails?
from kotlin-frontend-plugin.
Well I must admit I was a dumbass. I just misunderstood what did you mean by version 0.0.18. I thought that I must check out the newest version of the repository but I just had to bump the plugin version in kotlin-frontend-plugin/examples/frontend-only/build.gradle
Now it works like a charm.
Thank you for your help!
from kotlin-frontend-plugin.
Setting timeout fixed this issue.
from kotlin-frontend-plugin.
Related Issues (20)
- Doesn't handle npm dependencies of dependent project HOT 1
- New MPP: Add example how to run js/karma tests
- Error when using org.jetbrains.kotlin.frontend 0.0.44 with gradle 5.1.1 HOT 3
- HMR not working correctly with Kotlin >= 1.3.20 HOT 2
- webpack.config.d directory should be optional HOT 2
- Missing Gradle plugin ID inhibits usage in kotlin gradle scripts HOT 1
- Error: Cannot find module './build/WebPackHelper.js' HOT 1
- ERROR in Entry module not found: Error: Can't resolve 'new-mpp' in '/Users/clegge/Projects/kotlin-frontend-plugin/examples/new-mpp/build'
- Extension with name 'kotlin' does not exist HOT 3
- JQuery externals producing IOException with version 0.0.45 and gradle 5.2.1
- HMR stops working when using Gradle continuous build HOT 1
- Import a js module for its side effects only HOT 2
- are you not supporting the plugin anymore? HOT 6
- Support create-react-kotlin-app scripts
- Seems to be conflicting with new `kotlin("js")` plugin HOT 2
- Add a KotlinJS JAR as a NPM dependency
- missing org.jetbrains.kotlin.core....jar\bin' HOT 1
- error: Source option 6 is no longer supported. Use 7 or later. HOT 1
- [Error] NpmPackageManager$injectDependencies$1$1 overrides final method getBuildDependencies HOT 5
- build.gradle.kts with sourceSets in android project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlin-frontend-plugin.