Yarn Syntax Error - .yarnrc.yml: SyntaxError: ';' expected - yarnpkg

I have an angular project with Yarn (3.2.3) installed. While running yarn run format:check, it reads .yarnrc.yml file and throws below error:
.yarnrc.yml: SyntaxError: ';' expected
[error] 3 | npmRegistryServer: 'SOME_SERVER'
[error] 4 | npmScopes:
[error] > 5 | "my-private-repo":
[error] | ^
[error] 6 | npmRegistryServer: 'SOME_SERVER'
[error] 7 | ionic:
[error] 8 | npmRegistryServer: 'SOME_SERVER'
Here is my .yarnrc.yml configuration:
yarnPath: ".yarn/releases/yarn-3.2.3.cjs"
nodeLinker: node-modules
npmRegistryServer: 'SOME_SERVER'
npmScopes:
"my-private-repo":
npmRegistryServer: 'SOME_SERVER'
ionic:
npmRegistryServer: 'SOME_SERVER'
enableStrictSsl: false
httpRetry: 2
httpTimeout: 60000
Syntax error is thrown at "my-private-repo" . I figured out that maybe the issue is with the hyphens in that private repository as when I removed that repo, the command passes successfully. I cannot rename that private repo as its a legacy repo. Any clues how to fix this issue ?
Node Version : 14.15.4

Related

ERROR: nxp-wlan-sdk-git-r0 do_compile: oe_runmake failed and /bin/sh: 1: scripts/mod/modpost: Permission denied

when I am creating image first time for imx8mm board via these command 
$source sources/poky/oe-init-build-env
`$bitbake phytec-qt5demo-image
it is showing ERROR: nxp-wlan-sdk-git-r0 do_compile: oe_runmake failed   , and 
/bin/sh: 1: scripts/mod/modpost: Permision denied .
typehost#host-OptiPlex-3010:~/yocto_imx8mm/yocto_source/build$ bitbake phytec-qt5demo-image
Loading cache: 100% |#################################################################################################| Time: 0:00:00 Loaded 5018 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies`
Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-phytec-linux" MACHINE = "phyboard-polis-imx8mm-3"
DISTRO = "yogurt-vendor-xwayland" `DISTRO_VERSION = "BSP-Yocto-FSL-i.MX8MM-PD21.1.0" `TUNE_FEATURES = "aarch64 cortexa53 crc crypto" `TARGET_FPU = "" `meta `meta-poky = "HEAD:d88d62c20d7d8da85f02edb170dae0280624ad7e" `meta-oe `meta-networking `meta-python `meta-multimedia `meta-filesystems `meta-perl `meta-gnome = "HEAD:2b5dd1eb81cd08bc065bc76125f2856e9383e98b" meta-bsp
meta-sdk meta-ml = "HEAD:63665ab70ca609451533101cded2a620b340768c"
meta-browser = "HEAD:ee3be3b5986a4aa0e73df2204a625ae1fe5df37e" meta-clang = "HEAD:711e593d5984aad3bf35c51b7ac4482982bc16c7"
meta-freescale = "HEAD:14f1a630a47375432f93c556927b879b51d84c4e" meta-freescale-3rdparty = "HEAD:dbcc686f52c3c84db8cb86aa8973a4e373651b98"
meta-freescale-distro = "HEAD:ca27d12e4964d1336e662bcc60184bbff526c857" meta-phytec = "HEAD:dcb4b2b9ddf26649f4487c07c3250b3d8233893b"
meta-qt5 = "HEAD:21ce4c124d9a972d9122f87c64ac2773bf04c284" meta-rauc = "HEAD:cc7d622b2d49c8c7d426bb9965ad1d58806ef52f"
meta-rust = "HEAD:53bfa324891966a2daf5d36dc13d4a43725aebed" meta-python2 = "HEAD:4400f9155ec193d028208cf0c66aeed2ba2b00ab"
meta-yogurt = "HEAD:12d36b8433d4730dbf7445bfac2b5cea618d94fd" meta-security
`meta-tpm = "HEAD:52e83e6b7e57bf352fd6770466996530dece3da5"
Initialising tasks: 100% |############################################################################################| Time: 0:00:03 Sstate summary: Wanted 1478 Found 0 Missed 1478 Current 909 (0% match, 38% complete)
NOTE: Executing Tasks NOTE: Setscene tasks completed
`ERROR: nxp-wlan-sdk-git-r0 do_compile: oe_runmake failed
``ERROR: nxp-wlan-sdk-git-r0 do_compile: Execution of '/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/temp/run.do_compile.9800' failed with exit code 1:
`make[1]: Entering directory '/lib/modules/5.4.0-59-generic/build'
` Building modules, stage 2.
` MODPOST 0 modules
`/bin/sh: 1: scripts/mod/modpost: Permission denied
`scripts/Makefile.modpost:93: recipe for target '__modpost' failed
`make[2]: *** [__modpost] Error 126
`Makefile:1670: recipe for target 'modules' failed
`make[1]: *** [modules] Error 2
`make[1]: Leaving directory '/lib/modules/5.4.0-59-generic/build'
`Makefile:412: recipe for target 'default' failed
`make: *** [default] Error 2
`WARNING: exit code 1 from a shell command.
``
`ERROR: Logfile of failure stored in: `/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/temp/log.do_compile.9800`
`Log data follows:
`| DEBUG: Executing shell function do_compile
`| NOTE: make -j 4 build
``| make -C /lib/modules/5.4.0-59-generic/build M=/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/git/mxm_wifiex/wlan_src modules
`| make[1]: Entering directory '/lib/modules/5.4.0-59-generic/build'
| Building modules, stage 2.
| MODPOST 0 modules
| /bin/sh: 1: scripts/mod/modpost: Permission denied
| scripts/Makefile.modpost:93: recipe for target '__modpost' failed
| make[2]: *** [__modpost] Error 126
| Makefile:1670: recipe for target 'modules' failed
| make[1]: *** [modules] Error 2
| make[1]: Leaving directory '/lib/modules/5.4.0-59-generic/build'
| Makefile:412: recipe for target 'default' failed
| make: *** [default] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/temp/run.do_compile.9800' failed with exit code 1:
| make -C /lib/modules/5.4.0-59-generic/build M=/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/git/mxm_wifiex/wlan_src modules
| make[1]: Entering directory '/lib/modules/5.4.0-59-generic/build'
| Building modules, stage 2.
| MODPOST 0 modules
| /bin/sh: 1: scripts/mod/modpost: Permission denied
| scripts/Makefile.modpost:93: recipe for target '__modpost' failed
| make[2]: *** [__modpost] Error 126
| Makefile:1670: recipe for target 'modules' failed
| make[1]: *** [modules] Error 2
| make[1]: Leaving directory '/lib/modules/5.4.0-59-generic/build'
| Makefile:412: recipe for target 'default' failed
| make: *** [default] Error 2
| WARNING: exit code 1 from a shell command.`
|
`ERROR: Task (/home/host/yocto_imx8mm/yocto_source/sources/poky/../meta-imx/meta-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.bb:do_compile) failed with exit code '1'
Second Keyboard Interrupt, stopping...
Summary: 1 task failed:
/home/host/yocto_imx8mm/yocto_source/sources/poky/../meta-imx/meta-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.`
here
 anyone can help on this I have attached ss too ?
Thanks  
I am expecting successful image creation in yocto

Quarkus native exception : java.lang.RuntimeException: Cannot find the `native-image.cmd` in the GRAALVM_HOME

Getting this error while trying to build natively. The issue here is native-image.cmd is not present in the bin folder. I have also verified it in different versions as well.
> Failed to execute goal
> io.quarkus.platform:quarkus-maven-plugin:2.7.4.Final:build (default)
> on project code-with-quarkus: Failed to build quarkus application:
> io.quarkus.builder.BuildException: Build failure: Build failed due to
> errors [ERROR] [error]: Build step
> io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an
> exception: java.lang.RuntimeException: Cannot find the
> `native-image.cmd` in the GRAALVM_HOME, JAVA_HOME and System PATH.
> Install it using `gu install native-image` [ERROR] at
> io.quarkus.deployment.pkg.steps.NativeImageBuildStep.getNativeImageBuildRunner(NativeImageBuildStep.java:294)
> [ERROR] at
> io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:184)
> [ERROR] at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) [ERROR] at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> [ERROR] at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [ERROR] at
> java.base/java.lang.reflect.Method.invoke(Method.java:564) [ERROR]
> at
> io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:882)
> [ERROR] at
> io.quarkus.builder.BuildContext.run(BuildContext.java:277) [ERROR]
> at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
> [ERROR] at
> org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
> [ERROR] at
> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
> [ERROR] at java.base/java.lang.Thread.run(Thread.java:832)
> [ERROR] at
> org.jboss.threads.JBossThread.run(JBossThread.java:501) [ERROR] ->
> [Help 1]

gradlew build is been failed,only for grunt default it was getting failed

I am trying to do gradlew build in my local machine:
I am getting an error message:
Running "sprite:all" (sprite) task
Fatal error: Unsupported file type: .jpg
:build FAILED
FAILURE: Build failed with an exception.
Where:
Build file 'D:\DL\build.gradle' line: 52
What went wrong:
Execution failed for task ':grunt_default'.
Process 'command 'cmd'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output
BUILD FAILED
Total time: 21.972 secs
using code in Gruntfile.js:
sprite:{
all: {
src: baseDir + 'web/sass/sprites/*',
destImg: baseDir + 'web/webroot/_ui/desktop/theme/images/sprites.png',
destCSS: baseDir + 'web/sass/sprites.scss',
'cssVarMap': function (sprite) {
sprite.name = 'sprite-' + sprite.name;
},
'padding': 2,
'algorithm': 'alt-diagonal',
'imgPath': '../images/sprites.png',
}
},
Tried to setup imagemagick still it wasn't working

SeleniumRC Script error - selenium-browserbot.js

Problem:
In our application, we have same locators(id) for submit images (link + form submit) in Popup and main window. Main window submit image executes two javascript functions for click event. While trying through selenium, I'm getting following selenium error and submit action not happened. Unable to process, even if I clicked manually on the browser, which was opened by Selenium. But this scenario is working fine if I do manually end to end.
I tried with FormSubmit and ClickAt..No luck... Any trick/solution?
I found similar thread without any solution --> Selenium RC - selenium-browserbot.js error (http://stackoverflow.com/questions/2380543/selenium-rc-selenium-browserbot-js-error)
Environment:
Browser: IE8
Java: Sun Microsystems Inc. 16.0-b13
OS: Windows XP 5.1 x86
Selenium RC- selenium-server-1.0.3
Selenium Error Message
An error has occured in the script on this page
Line: 2120
Char: 9
Error: Permission denied
Code: 0
URL: file:///C:/DOCUME~1/script1/LOCALS~1/Temp/customProfileDira540839f44a5460e8f29cdcb8f3632a7/core/scripts/selenium-browserbot.js
Do you want to continue running scripts on this page?
HTML Source
<A onmouseover="imgOn('cmdSubmitbutton', 'submit');" onmouseout="imgOff('cmdSubmitbutton', 'submit');" onclick="return verifyAttachmentJS();submitOrder();" href="javascript:void(0);"><IMG title="Submit this form." border=0 name=cmdSubmitbutton src="/webtop/images/buttons/submit_off.gif"> </A>
selenium RC command history
type(desc1, asdasdas)
click(cmdAttachbutton)
click(cmdSubmitbutton)
click(cmdFinishbutton)
selectWindow(null)
type(ORD_TrackingNbr, 6666)
isElementPresent(cmdSubmitbutton)
clickAt(cmdSubmitbutton, 20,8)
Selenium Log Console
info(1331131785603): Executing: |type | findCnum | ABCDP60 |
info(1331131789088): Executing: |click | gobutton | |
error(1331131792666): Caught an exception attempting to log location; this should get noticed soon!
error(1331131792666): Unexpected Exception: Permission denied
error(1331131792666): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied
info(1331131795494): Executing: |selectFrame | relative=up | |
info(1331131796275): Executing: |selectFrame | relative=up | |
info(1331131797056): Executing: |getLocation | | |
info(1331131797494): Executing: |click | xpath=//a[#id="ABCDP60" or #name="ABCDP60" or #href="ABCDP60" or normalize-space(descendant-or-self::text())="ABCDP60" or #href="http://172.18.70.63/webtop/ABCDP60"] | |
error(1331131806338): Caught an exception attempting to log location; this should get noticed soon!
error(1331131806338): Unexpected Exception: Permission denied
error(1331131806338): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied
info(1331131808056): Executing: |click | //form[#id='form1']/table/tbody/tr/td[6]/a[4]/font/b | |
info(1331131815478): Executing: |click | cmdZipbutton | |
error(1331131815712): Caught an exception attempting to log location; this should get noticed soon!
error(1331131815712): Unexpected Exception: Permission denied
error(1331131815712): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied
info(1331131835384): Executing: |selectWindow | name=attachdoc | |
info(1331131865634): Executing: |type | desc1 | asdasdas |
info(1331131876431): Executing: |click | cmdAttachbutton | |
info(1331131882290): Executing: |click | cmdSubmitbutton | |
info(1331131888290): Executing: |click | cmdFinishbutton | |
info(1331131894196): Executing: |selectWindow | null | |
info(1331131894306): Executing: |type | ORD_TrackingNbr | 6666 |
info(1331131898399): Executing: |isElementPresent | cmdSubmitbutton | |
info(1331131902290): Executing: |clickAt | cmdSubmitbutton | 20,8 |
info(1331132070023): Done appending missed logging messages
error(1331132070023): Caught an exception attempting to log location; this should get noticed soon!
error(1331132070023): Unexpected Exception: Permission denied
error(1331132070039): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied
error(1331132115492): Caught an exception attempting to log location; this should get noticed soon!
error(1331132115492): Unexpected Exception: Permission denied
error(1331132115492): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied

Propel: No database selected

I'm want to start to use Propel inside my Kohana 3.x Project. But when I try to run the following command:
C:\propel\generator\projects\myProject>propel-gen reverse
I get the following error:
[propel-schema-reverse] There was an error building XML from metadata: SQLSTATE[
3D000]: Invalid catalog name: 1046 No database selected
[propel-schema-reverse] Schema reverse engineering finished
Anybody know how to solve that?
Additional Information:
Among others I have the folder myProject containing the build.properties file:
C:/propel/generator/projects/myProject/build.properties
This is the "sourcecode" of build.properties:
propel.project = myProject
propel.database = mysql
propel.database.url = mysql:dbname = myProject;host=localhost
propel.database.user = root
propel.database.password =
This is the complete output when I run the command:
C:\propel\generator\projects\myProject>propel-gen reverse
Buildfile: C:\propel\generator\bin\..\build.xml
[resolvepath] Resolved C:\propel\generator\projects\myProject to C:\propel\generator\
projects\myProject
propel-project-builder > check-project-or-dir-set:
propel-project-builder > check-project-set:
propel-project-builder > set-project-dir:
propel-project-builder > check-buildprops-exists:
propel-project-builder > check-buildprops-for-propel-gen:
propel-project-builder > check-buildprops:
propel-project-builder > configure:
[echo] Loading project-specific props from C:\propel\generator\projects\myProject/build.properties
[property] Loading C:\propel\generator\projects\myProject\build.properties
propel-project-builder > reverse:
[phing] Calling Buildfile 'C:\propel\generator\build-propel.xml' with target
'reverse'
[property] Loading C:\propel\generator\.\default.properties
propel > reverse:
[echo] +-----------------------------------------------+
[echo] | |
[echo] | Generating XML from PDO connection ! |
[echo] | |
[echo] +-----------------------------------------------+
[propel-schema-reverse] There was an error building XML from metadata: SQLSTATE[
3D000]: Invalid catalog name: 1046 No database selected
[propel-schema-reverse] Schema reverse engineering finished
BUILD FINISHED
Total time: 0.4205 seconds
Try in build.properties :
propel.database.url = 'mysql:host=localhost;dbname=myProject'
(following Propel http://www.propelorm.org/wiki/Documentation/1.5/BuildConfiguration#DatabaseSettings and PDO http://www.php.net/manual/en/pdo.connections.php docs)
For anyone trying to locate the exact error use the -verbose and -debug mode with propel-gen
propel-gen . reverse -verbose -debug
as this gives each output of the query that php/propel hits during script execution.

Resources