Dart: "Invalid argument(s): Illegal character in path" when building on Windows - dart

The offending line in my index.html file reads
<script src="main.dart" type="application/dart"></script>
The error report is:
Build error:
Transform polymer (PolymerBootstrapTransformer) on myproj_frontend|web/index.html threw error: Invalid argument(s): Illegal character in path
dart:core/uri.dart 855 Uri._checkWindowsPathReservedCharacters
dart:core/uri.dart 956 Uri._makeWindowsFileUrl
The entire path to the project is
D:\Projects\MyProj\MyProj_Project
I'm building from command line on Windows 7 using Dart VM version: 1.16.0
I honestly have no idea how to continue diagnosing or fixing this. Any help would be greatly appreciated.

I have the same problem. Looks like it is an issue with the analyzer package 0.27.0 and later.
I solved it by pinning the version in pubspec.yaml to <0.27.0.

I found that analyzer 0.27.2 is ok, but analyzer 0.27.3 will cause exception “Invalid argument(s): Illegal character in path” on my Win 10.
ps. I use Dart 1.16.0

Related

Bazel not building correctly. Error with os.bzl

I've pulled the most recent drake repo "https://github.com/RobotLocomotion/drake" and I am trying to
$run bazel build //...
but bazel is returning the following error
ERROR: /home/nathan/drake/tools/workspace/os.bzl:73:13: invalid escape sequence: \(. You can enable unknown escape sequences by passing the flag --incompatible_restrict_string_escapes=false ERROR: /home/nathan/drake/tools/workspace/os.bzl:73:19: invalid escape sequence: \|. You can enable unknown escape sequences by passing the flag --incompatible_restrict_string_escapes=false ERROR: /home/nathan/drake/tools/workspace/os.bzl:73:31: invalid escape sequence: \). You can enable unknown escape sequences by passing the flag --incompatible_restrict_string_escapes=false ERROR: error loading package '': in /home/nathan/drake/tools/workspace/default.bzl: in /home/nathan/drake/tools/workspace/blas/repository.bzl: Extension 'tools/workspace/os.bzl' has errors INFO: Elapsed time: 0.139s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded).
It seems to not like line 73 in os.bzl, but I'm not sure how to fix it. Any suggestions would be very helpful.
I've just run a build using those same versions of Bazel, Ubuntu, and Drake, with no problems.
There was a problem on that line several months ago, that we fixed in https://github.com/RobotLocomotion/drake/pull/12696. Can you confirm you're using a new-enough version of Drake? For example, what does git log -1 report?

How to eliminate warning in sca

I am new to source analyzer.These are the warnings
sourceanalyzer -b opmbuild -Xmx2G -cp '/vx/vom/BUILD/nightly/sfm/tot/02_16/06_00_14/linux/opm/jars/*.jar' '/vx/vom/BUILD/nightly/sfm/tot/
02_16/06_00_14/linux/opm/src/**/*.java'
[warning]: Assuming Java source level to be 1.4 as it was not specified. Note that the default value may change in future versions.
[warning]: Unexpected exception while parsing file DMPSolutionDao.java
[warning]: Unexpected exception while parsing file DMPWaitingOperations.java
[warning]: Unexpected exception while parsing file DmpOperations.java
[warning]: Unexpected exception while parsing file EsxDmpJob.java
[warning]: Unexpected exception while parsing file MyAppsController.java
[warning]: Multiple definitions found for class VOMBackup (/vx/vom/BUILD/nightly/sfm/tot/02_16/06_00_14/linux/opm/src/pkg/unix/linux/stage/opt/VRTSsfmcs/config/adm/VOMBackup.java:20:1 and /vx/vom/BUILD/nightly/sfm/tot/02_16/06_00_14/linux/opm/src/db/config/common/VOMBackup.java
:20:1).
The first thing you need to do is to set the Java version using -version. This may resolve the warnings you are getting since you may be utilizing constructs that are not valid in Java 1.4. Those warnings are important and you need to investigate the cause. To get to the root of the issue, use -debug-verbose -logfile opmbuild_translate.log. The log entries should provide you with a lot more assistance in diagnosing the issue. If you feel that there is a valid construct that Fortify is not parsing correctly, you should contact Fortify support and provide an example.

Failed to check license ilog.rules.res.xu.IlrLocalizedResourceException: error code: XU.ERROR.10700

I am trying to execute iLog jRules (Version 7.1) from Plain Java program. I am using J2SE session factory. Still I am getting below error. Can someone please enlighten ? Also what is the best and simple way to execute jRules rules from java main method ?
6/9/14 4:48 PM [SEVERE] 10700 - -.- - Failed to check license ilog.rules.res.xu.IlrLocalizedResourceException: Failed to check license, error code: XU.ERROR.10700
at ilog.rules.res.xu.util.IlrResourceExceptionHelper.createResourceException(IlrResourceExceptionHelper.java:44)
at ilog.rules.res.xu.util.IlrResourceExceptionHelper.createResourceException(IlrResourceExceptionHelper.java:78)
at ilog.rules.res.xu.spi.IlrManagedXUConnectionFactory.verifyRESLicense(IlrManagedXUConnectionFactory.java:1108)
at ilog.rules.res.xu.spi.IlrManagedXUConnectionFactory.getRulesetProvider(IlrManagedXUConnectionFactory.java:883)
at ilog.rules.res.xu.spi.IlrManagedXUConnection.getRulesetProvider(IlrManagedXUConnection.java:280)
at ilog.rules.res.xu.spi.IlrManagedXUConnection.createEngineManager(IlrManagedXUConnection.java:1659)
at ilog.rules.res.xu.spi.IlrManagedXUConnection.getEngineManager(IlrManagedXUConnection.java:1591)
at ilog.rules.res.xu.spi.IlrManagedXUConnection.getRulesetParameters(IlrManagedXUConnection.java:1508)
at ilog.rules.res.xu.cci.IlrXUConnection.getRulesetParameters(IlrXUConnection.java:499)
at ilog.rules.res.xu.cci.IlrXUInteraction.getRulesetInformation(IlrXUInteraction.java:739)
at ilog.rules.res.xu.cci.IlrXUInteraction.dispatchExecution(IlrXUInteraction.java:185)
at ilog.rules.res.xu.cci.IlrXUInteraction.execute(IlrXUInteraction.java:343)
at ilog.rules.res.xu.cci.IlrXUInteraction.execute(IlrXUInteraction.java:459)
at ilog.rules.res.xu.cci.IlrCCIClient.executeInteraction(IlrCCIClient.java:189)
at ilog.rules.res.xu.cci.IlrCCIRuleEngineClient.getRulesetArchiveProperties(IlrCCIRuleEngineClient.java:699)
at ilog.rules.res.session.util.IlrTraceHelper.<init>(IlrTraceHelper.java:111)
at ilog.rules.res.session.impl.IlrStatelessSessionBase.execute(IlrStatelessSessionBase.java:97)
at poc.PojoClientRunnerImpl.executeentpocrules(PojoClientRunnerImpl.java:88)
at poc.Main.main(Main.java:28)
Caused by: ilog.jum.client700.IluSAMAccessDeniedException: At 2014-06-09 11:18:33 GMT, SAM 3.0.0.1040: Access denied to module 'RES4J'.
If you want to inspect your access key, please do the following:
java -cp [location]sam.jar ilog.jum.client700.IluSAMAccessKey -summary
I got this issue resolved. It was because jar version mismatch. I was using jRules Studio version 7.1.1 and was executing using jRules version 7.0.0 jars .
I modified my classpath to use version 7.1.1 jars for jRules version 7.1.1 rule studio.

Errors when trying to build iOS with cordova in Mavericks (10.9.1)

Days ago I built the application for Android, zero problems, but now, when I try to do the same for iOS (obviously not the same commands) I always receive an error.
I use the following command:
cordova platform add ios
And I get the following error:
Downloading cordova library for ios...
Download complete
Creating ios project...
Error: An error occured during creation of ios sub-project.
File "/Users/xxxxx/.cordova/lib/ios/cordova/3.3.0/bin/update_cordova_subproject", line 31
print __doc__
^
SyntaxError: invalid syntax
at /usr/local/lib/node_modules/cordova/src/platform.js:282:30
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
I tried also with:
phonegap build ios
But I get the same error and I don't know how to fix it. I've been looking on the Internet and I found some guy with the same problem but nobody could help him.
I run the commands with sudo, that isn't the problem.
I recently got the same error.
My problem was that I'm using Python3 by default. print in Python2 is a statement wherease in Python3 it's a function.
.cordova/lib/ios/cordova/3.3.0/bin/update_cordova_subproject has a shebang that calls /bin/python.
I had to replace #!/bin/python with #!/bin/python2.7 to use python2.7 on this script.
I have the exactly same problem with you. However, the way replace "#!/bin/python with #!/bin/python2.7" doesn't work for me.
Inspired by the explanation of Matthieu Riegler, I change print __doc__ to print(__doc__) in line 31 and print line to print(line) in line 97. Eventually, it works.

Dart: Float32Array not loaded

While trying to run some three.dart example codes, I get the following exception:
Exception: 'package:three/src/core/Matrix4.dart': Error: line 25 pos 24: type 'Float32Array' >is not loaded
: elements = new Float32Array(16) {
^
malformed type used.
Breaking on exception: 'package:three/src/core/Matrix4.dart': Error: line 25 pos 24: type 'Float32Array' is not loaded
I'm Running the code from Fedora 18 64.
Btw, I have Dart M4.
Did I miss the installation of some Dart package?
Did I miss the installation of some Fedora 32 package?
It seems to be a problem with three.dart, it's not ready to support Dart M4. Am I right?
You are probably running an outdated version of the three.dart benchmark. Float32Array has been renamed to Float32List and now lives in dart:typed_data.

Resources