ClojureScript ReFrame - clojurescript

I create project by use https://github.com/day8/re-frame-template
Like: lein new re-frame my-project +10x +garden +test
And receive warnings:
------ WARNING #1 - :redef -----------------------------------------------------
Resource: day8/re_frame_10x/inlined_deps/garden/v1v3v10/garden/color.cljc:390:1
abs already refers to: cljs.core/abs being replaced by: day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.color/abs
--------------------------------------------------------------------------------
------ WARNING #2 - :redef -----------------------------------------------------
Resource: zprint/range.cljc:81:1
abs already refers to: cljs.core/abs being replaced by: zprint.range/abs
--------------------------------------------------------------------------------
------ WARNING #3 - :undeclared-var --------------------------------------------
Resource: cljs/analyzer.cljc:4403:12
Use of undeclared Var cljs.analyzer/Throwable
--------------------------------------------------------------------------------
------ WARNING #4 - :undeclared-var --------------------------------------------
Resource: cljs/analyzer.cljc:4402:7
Use of undeclared Var cljs.analyzer/ns-resolve
--------------------------------------------------------------------------------
How to fix it?

For the 1st warning, try updating re-frame-10x to the latest version (1.5.0 at the time of writing).
The 2nd warning - same for zprint (1.2.4 now).
The 3rd and the 4th warnings - same for ClojureScript itself (if you're using shadow-cljs, update shadow-cljs instead).

Related

Problem with initialization bim's ready example in Octave

On assignment, they gave me a step-by-step example from this article http://wiki.octave.org/Bim_package.
The example was typed manually, without copy-paste.I already install this packages- fpl, bim,msh, image.
Octave example:
pkg load bim
pkg load msh
pkg load fpl
[mesh]=msh2m_gmsh("fuime","scale",1,"clscale",.1); – Error
[mesh]=bim2c_mesh_properties(mesh);
pdemesh(mesh.p,mesh.e,mesh.t);
view(2)
xu=mesh.p(1,:).';
yu=mesh.p(2,:).';
nelems=columns(mesh.t);
nnodes=columns(mesh.p);
epsilon=.1;
phi=xu+yu;
AdvDiff=bim2a_advaction_diffusion(mesh,epsilon,1,1,phi);
Mass=bim2a_reaction(mesh,1,1);
b=bim2a_rhs(mesh,f,g);
A=AdvDiff+Mass;
GammaD=bim2c_unknowns_on_side(mesh,[1 2]);
GammaN=bim2c_unknowns_on_side(mesh,[3 4]);
GammaN=setdiff(GammaN,GammaD);
jn=zeros(length(GammaN),1);
ud=3*xu;
Omega=setdiff(1:nnodes,union(GammaD,GammaN));
Add=A(GammaD,GammaD);
Adn=A(GammaD,GammaN);
Adi=A(GammaD,Omega);
And=A(GammaN,GammaD);
Ann=A(GammaN,GammaN);
Ani=A(GammaN,Omega);
Aid=A(Omega,GammaD);
Ain=A(Omega,GammaN);
Aii=A(Omega,Omega);
bd=b(GammaD);
bn=b(GammaN);
bi=b(Omega);
temp=[Ann Ani;Ain Aii]\[jn+bn-And*ud(GammaD); bi-Aid*ud(GammaD)];
u=ud;
u(GammaN)=temp(1:numel(GammaN));
u(Omega)=temp(length(GammaN)+1:end);
jd=[Add Adi Adn]*u([GammaD;Omega;GammaN])-bd;
[gx,gy]=bim2c_pde_gradient(mesh,u);
[jxglob,jyglob]=bim2c_global_flux(mesh,u,epsilon*ones(nelems,1),ones(nnodes,1),ones(nnodes,1),phi);
fpl_vtk_write_field("vtkdata",mesh,{u,"Solution"},{[gx:gy]',"Gradient"},1);
pdesurf(mesh.p,mesh.t,u);
In this - [mesh]=msh2m_gmsh("fuime","scale",1,"clscale",.1);Error
Generating mesh...
error: 'tmpnam' undefined near line 78, column 78
error: called from
msh2m_gmsh at line 78 column 12
>>
WHAT HAVE I TAKEN TO FIX THE ERROR
I decided that the problem is in uninstalled packages.
According to the answer I was given in this thread Error,when installing a new package in Octave.
I started to install the package mesh, but here another error came out.
error: get_forge_pkg: package not found: "mesh". Maybe you meant "lssa?"
error: called from
get_forge_pkg at line 90 column 5
get_forge_download at line 32 column 14
pkg at line 500 column 31
But the mesh package not found.The package msh already installed.
How I can fixed my problem?

Yii2, Codeception: Setting unknown property: yii\web\Application::class

When I run Codeception, e.g.:
codecept run
I receive the following error message:
[yii\base\UnknownPropertyException]
Setting unknown property: yii\web\Application::class
If I open the test version of the application main page
https://localhost/yii/frontend/web/index-test.php/
then I receive this message:
Exception (Unknown Property) 'yii\base\UnknownPropertyException' with
message 'Setting unknown property: yii\web\Application::class'
in C:\xampp\htdocs\yii\vendor\yiisoft\yii2\base\Component.php:197
Stack trace:
0 C:\xampp\htdocs\yii\vendor\yiisoft\yii2\BaseYii.php(521): yii\base\Component->__set('class', 'yii\db\Connecti...')
1 C:\xampp\htdocs\yii\vendor\yiisoft\yii2\base\Object.php(105): yii\BaseYii::configure(Object(yii\web\Application), Array)
2 C:\xampp\htdocs\yii\vendor\yiisoft\yii2\base\Application.php(206): yii\base\Object->__construct(Array)
3 C:\xampp\htdocs\yii\ap1_epas\web\index-test.php(18): yii\base\Application->__construct(Array)
4 {main}
In the file index-test.php is on the line 18 the following code:
(new yii\web\Application($config))->run();
I use Selenium. Two weeks ago had the tests worked. I have made no changes in Codeception or configuration since then.

How to create a iso file by grub-mkrescue and assign its label?

I'm trying to create a iso bootable file by grub-mkrescue. But I require to assign the iso's label.
After read the man page, I guess here is a correct command line, but failed.
grub-mkrescue -o "my_arch.iso" -- -volid=MY_ARCH my_iso_dir
It will show error as:
xorriso 1.4.2 : RockRidge filesystem manipulator, libburnia project.
Drive current: -outdev 'stdio:my_arch.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 19.1g free
Added to ISO image: directory '/'='/tmp/grub.ZoYEzy'
xorriso : UPDATE : 613 files added in 1 seconds
xorriso : FAILURE : -as mkisofs: Unrecognized option '-volid=MY_ARCH'
xorriso : UPDATE : 613 files added in 1 seconds
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'
According the 'info grub-mkrescue' document:
All arguments not explicitly listed as 'grub-mkrescue' options are
passed on directly to 'xorriso' in 'mkisofs' emulation mode. Options
passed to 'xorriso' will normally be interpreted as 'mkisofs' options;
if the option '--' is used, then anything after that will be interpreted
as native 'xorriso' options.
Non-option arguments specify additional source directories. This is
commonly used to add extra files to the image:
The -as mkisofs emulation of xorriso understands
-V MY_ARCH
or
-volid MY_ARCH
but not
-volid=MY_ARCH
Further be aware that you obviously use the intermediate C version of
grub-mkrescue which does not comply to the documentation you quoted.
This version demands '--' as delimiter between grub-mkrescue options
and xorriso -as mkisofs options.
But if you have '--' among the arguments of old grub-mkrescue shell script
or of current grub-mkrescue C program, then you will drop out of mkisofs
emulation. This will earn you an error message
xorriso : FAILURE : Not a known command: 'my_iso_dir'

How to make Robot Keyword return html result?

I am trying to return html link as a result of Robot Keyword execution. But when I open log.html then instead of "http://www.google.com"
I see
" & lt ; a href=\"http://www.google.com\" & gt ; google &lt ; /a & gt ;"
How to solve this problem?
When keyword returned "*HTML* other html stuff" everything worked.
The built-in Log keyword accepts an optional keyword argument that says whether the message should be treated as HTML or not.
For example:
*** Test Cases ***
| Example of logging HTML using keyword argument
| | log | Danger, Will Robinson! | html=True
You can get a similar effect by using the HTML log level. This makes the message an INFO level message, but won't escape the html tags like with a normal INFO level message:
*** Test Cases ***
| Example of logging HTML using HTML log level
| | log | Danger, Will Robinson! | HTML
Starting with robot framework 2.8 error messages can also contain HTML by beginning the error message with *HTML*. For more information see HTML in error messages in the robot framework user guide.
For example:
*** Test Cases ***
| Example of logging HTML
| | Example keyword that returns HTML error message
*** Keywords ***
| Example keyword that returns HTML error message
| | Fail | *HTML*Danger, Will Robinson!

How to add the SwingLibrary plugin to RobotFramework?

I'm trying to execute the SwingLibrary demo available in https://github.com/robotframework/SwingLibrary/wiki/SwingLibrary-Demo
After setting everything up (Jython, RobotFramework, demo app), I can run the following command:
run_demo.py startapp
, and it works (the demo app starts up).
Now if I try to run the sample tests, it fails:
run_demo.py example.txt
[ ERROR ] Error in file '/home/user1/python-scripts/gui_automation/sample-text.txt': Non-existing setting 'Library SwingLibrary'.
[ ERROR ] Error in file '/home/user1/python-scripts/gui_automation/sample-text.txt': Non-existing setting 'Suite Setup Start Test Application'.
==============================================================================
Sample-Text
==============================================================================
Test Add Todo Item | FAIL |
No keyword with name 'Insert Into Text Field description ${arg}' found.
------------------------------------------------------------------------------
Test Delete Todo Item | FAIL |
No keyword with name 'Insert Into Text Field description ${arg}' found.
------------------------------------------------------------------------------
Sample-Text | FAIL |
2 critical tests, 0 passed, 2 failed
2 tests total, 0 passed, 2 failed
==============================================================================
Output: /home/user1/python-scripts/gui_automation/results/output.xml
Log: /home/user1/python-scripts/gui_automation/results/log.html
Report: /home/user1/python-scripts/gui_automation/results/report.html
I suspect that it cannot find swinglibrary.jar, and therefore my plugin installation is probably messed up.
Any ideas?
Take a look at these error messages in the report:
[ ERROR ] Error in file '...': Non-existing setting 'Library SwingLibrary'.
[ ERROR ] Error in file '...': Non-existing setting 'Suite Setup Start Test Application'.
The first rule of debugging is to always assume error messages are telling you the literal truth.
They are telling you that you have an unknown setting. It thinks you are using a setting literally named "Library SwingLibrary" and one named "Suite Setup Start Test". Those are obviously incorrect setting names. The question is, why is it saying that?
My guess is that you are using the space-separated text format, and you only have a single space between "Library" and "SwingLibrary". Because there is one space, robot thinks that whole line is in the first column of the settings table, and whatever is in the first column is treated as the setting name.
The fix should be as simple as inserting two or more spaces after "Library", and two or more spaces after "Suite Setup".
This type of error is why I always recommend using the pipe-separated format. It makes the boundaries between cells much easier to see.