I'm trying to compile the openindoor6-main library after some changes using Closure compiler and I have JSC_JS_MODULE_LOAD_WARNING messages on the controls.js file.
D:\openindoor>java -jar ./node_modules/google-closure-compiler-java/compiler.jar --flagfile ./node_modules/openindoor6-main/flagfile.conf
./node_modules/openindoor6-main/src/controls.js:1:0: ERROR - [JSC_JS_MODULE_LOAD_WARNING] Failed to load module "#maplibre/maplibre-gl-geocoder"
1| import MaplibreGeocoder from '#maplibre/maplibre-gl-geocoder';
^
./node_modules/openindoor6-main/src/controls.js:4:0: ERROR - [JSC_JS_MODULE_LOAD_WARNING] Failed to load module "#turf/center"
4| import center from '#turf/center';
^
./node_modules/openindoor6-main/src/controls.js:5:0: ERROR - [JSC_JS_MODULE_LOAD_WARNING] Failed to load module "#turf/centroid"
5| import centroid from '#turf/centroid';
I have a flagfile.conf file that includes the --js directive to load these modules that have been installed using npm install.
Any hint on how to proceed ?
Related
parsing C:\Users\USER\Documents_init_.py...
Failed to import module init with error:
No module named init.
I'm developing an app in JavaFX in NetBeans, and in the gitlab the CI jobs always come back as failed.
Specificly:
-do-compile:
[mkdir] Created dir: /builds/szt-c-2020212/group-05/insertnamehere/build/empty
[mkdir] Created dir: /builds/szt-c-2020212/group-05/insertnamehere/build/generated-sources/ap-source-output
[javac] Compiling 9 source files to /builds/szt-c-2020212/group-05/insertnamehere/build/classes
[javac] /builds/szt-c-2020212/group-05/insertnamehere/src/park/Building.java:4: error: package javafx.scene.image does not exist
[javac] import javafx.scene.image.Image;
[javac] ^
[javac] /builds/szt-c-2020212/group-05/insertnamehere/src/park/Building.java:5: error: package javafx.scene.image does not exist
[javac] import javafx.scene.image.ImageView;
[javac] ^
[javac] /builds/szt-c-2020212/group-05/insertnamehere/src/park/Building.java:16: error: cannot find symbol
[javac] private Image image;
[javac] ^
.
.
.
.
`and so on(21x more lines like above)`
BUILD FAILED
/builds/szt-c-2020212/group-05/insertnamehere/nbproject/build-impl.xml:1096: The following error occurred while executing this line:
/builds/szt-c-2020212/group-05/insertnamehere/nbproject/build-impl.xml:346: Compile failed; see the compiler error output for details.
Total time: 2 seconds
section_end:1619005922:step_script
[0Ksection_start:1619005922:cleanup_file_variables
[0K[0K[36;1mCleaning up file based variables[0;m
[0;msection_end:1619005923:cleanup_file_variables
[0K[31;1mERROR: Job failed: exit code 1
[0;
Here is the gitlab-ci-yml's content:
image: ubuntu:20.10
stages:
- build
- test
before_script:
- apt-get update -yqq
- apt-get install -yqq ant junit4 openjdk-15-jdk openjfx
# Build
build_game:
stage: build
script:
- ant compile
- ant jar
# Test
test_model:
stage: test
script:
- >
ant test
-Dlibs.junit_4.classpath=/usr/share/java/junit4.jar
-Dlibs.hamcrest.classpath=/usr/share/java/hamcrest-core.jar
I tried to install openjfx or jdk-8 in the yml file but nothing seems to be working.
What Did I do wrong?
Why can't it see the javafx package?
I'm trying to add sqlite support in my rust project. I found rusqlite on crates.io. I added the version line to Cargo.toml. I added some imports (unused) that I found on the rusqlite docs page. After running car go build I revived an error.
I hadn't implemented anything yet. I just wanted to get the dependency added and compiling. main.rs:
extern crate rusqlite;
use rusqlite::{Connection, Result};
use rusqlite::NO_PARAMS;
Cargo.toml:
[package]
name = "program"
version = "0.1.0"
authors = ["97"]
[dependencies]
argparse = "0.2.2"
rand = "0.4.0"
rusqlite = "0.20.0"
Error recived:
$ cargo build
Compiling pkg-config v0.3.16
Compiling fallible-iterator v0.2.0
Compiling memchr v2.2.1
Compiling bitflags v1.2.1
Compiling lru-cache v0.1.2
error[E0432]: unresolved import `std::ops::Bound`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.16/src/lib.rs:72:16
|
72 | use std::ops::{Bound, RangeBounds};
| ^^^^^ no `Bound` in `ops`
error[E0432]: unresolved import `std::ops::RangeBounds`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.16/src/lib.rs:72:23
|
72 | use std::ops::{Bound, RangeBounds};
| ^^^^^^^^^^^ no `RangeBounds` in `ops`
error[E0658]: `dyn Trait` syntax is unstable (see issue #44662)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.16/src/lib.rs:143:32
|
143 | fn cause(&self) -> Option<&dyn error::Error> {
| ^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors
error: Could not compile `pkg-config`.
warning: build failed, waiting for other jobs to finish...
error[E0658]: `crate` in paths is experimental (see issue #45477)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/fallible-iterator-0.2.0/src/lib.rs:98:5
|
98 | use crate::imports::*;
| ^^^^^
error[E0658]: `dyn Trait` syntax is unstable (see issue #44662)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/fallible-iterator-0.2.0/src/lib.rs:2606:24
|
2606 | fn _is_object_safe(_: &dyn DoubleEndedFallibleIterator<Item = (), Error = ()>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
error: Could not compile `fallible-iterator`.
warning: build failed, waiting for other jobs to finish...
error: build failed
Edit
cargo 0.26.0 (41480f5cc 2018-02-26)
rustc 1.25.0 (84203cac6 2018-03-25)
Most crates support only the latest Rust version. You could try to use an older version of the crate, but the easiest way is to update Rust to a currently-supported version.
If you're using Rust from a Linux distro, then uninstall it, and get it from https://rustup.rs which can keep it up to date. Rust ecosystem moves much faster than most distributions.
Run rustup update.
I want to connect to Mongo DB using Robot Framework.
I have read in the following link that we have to pull the source code and install the library. Robot FrameWork - MongoDB-Library
I installed the Library and it is installed in the location
D:\Python27\Lib\site-packages\MongoDBLibrary
When I add 'MongoDBLibrary' library in the RIDE it showing in red (means library is not installed properly),
when i ran the same using eclipse + Maven project i got the following error
[ ERROR ] Error in file 'D:\Robot_WorkSpace\robotFrameWork\src\test\robotframework\acceptance\MongoQuery.txt': Importing test library 'D:\Python27\Lib\site-packages\MongoDBLibrary' failed: ImportError: No module named bson
Traceback (most recent call last):
File "D:\Python27\Lib\site-packages\MongoDBLibrary\__init__.py", line 2, in <module>
from mongoquery import MongoQuery
File "D:\Python27\Lib\site-packages\MongoDBLibrary\mongoquery.py", line 2, in <module>
from bson.objectid import ObjectId
PYTHONPATH:
C:\Users\akurasa\.m2\repository\org\robotframework\robotframework\3.0\Lib
C:\Users\akurasa\.m2\repository\org\robotframework\robotframework\3.0\robotframework-3.0.jar\Lib
__classpath__
__pyclasspath__/
CLASSPATH:
/D:/Sarada/eclipse/configuration/org.eclipse.osgi/bundles/789/1/.cp/jars/plexus-classworlds-2.4.jar
Please any one help me where i did wrong
Make sure you have installed PyMongo (or bson):
pip install pymongo
pip install bson (don't know if still required then)
2016-02-01 15:02:19,152 | ERROR | FelixStartLevel | BootFeaturesInstaller | 20 - org.apache.karaf.features.core - 3.0.5 | Error installing boot features
java.lang.Exception: Could not start bundle mvn:com.fasterxml.jackson.module/jackson-module-scala_2.11/2.6.2 in feature(s) de-support-0.0.0, swagger-2.11-6.1.0: Unresolved constraint in bundle com.fasterxml.jackson.module.jackson.module.scala [274]: Unable to resolve 274.0: missing requirement [274.0] osgi.wiring.package; (&(osgi.wiring.package=com.fasterxml.jackson.module.paranamer)(version>=2.6.0)(!(version>=3.0.0)))
I am getting above exception, while starting karaf even after providing
<bundle>mvn:com.fasterxml.jackson.module/jackson-module-scala_2.11/2.6.2</bundle>
in features.xml file.
You're getting this message because one of your bundles imports the package com.fasterxml.jackson.module.paranamer but you have not included a bundle in your feature which exports this package. A search for com.fasterxml.jackson.module.paranamer brings up the pom for Jackson Paranamer which shows that it exports the package that you need (look at the osgi.export property). So add:
<bundle>mvn:com.fasterxml.jackson.module/jackson-module-paranamer/2.6.2</bundle>
to your feature in your features.xml