为什么我的 dockerfile 中的 ARG 变量始终为空?
docker build --rm --force-rm --no-cache -f ./Dockerfile
Run Code Online (Sandbox Code Playgroud)
ARG APP_NAME='ground-station'
FROM node:current AS build-node
WORKDIR /${APP_NAME}
RUN echo "APP_NAME=${APP_NAME}"
Run Code Online (Sandbox Code Playgroud)
Sending build context to Docker daemon 1.199MB
Step 1/4 : ARG APP_NAME='ground-station'
Step 2/4 : FROM node:current AS build-node
---> 6e72986b1b6e
Step 3/4 : WORKDIR /${APP_NAME}
---> Running in 39f12e36d4a1
Removing intermediate container 39f12e36d4a1
---> 93f5cdef6402
Step 4/4 : RUN echo "APP_NAME=${APP_NAME}"
---> Running in a18ac6f3bee8
APP_NAME=
Removing intermediate container a18ac6f3bee8
---> 746cea84bb8f
Successfully …Run Code Online (Sandbox Code Playgroud) 我正在使用SCSS来改变bootstrap 4的样式来创建我自己的样式,但是当我编译我的SCSS时,我得到了这个错误:
{
"status": 1,
"file": "H:/!WEBSITE/modules/The Force - Bootstrap/content/scss/variables/variables.scss",
"line": 330,
"column": 34,
"message": "Incompatible units: 'px' and 'px*px'.",
"formatted":
"Error: Incompatible units: 'px' and 'px*px'.
on line 330 of scss/variables/variables.scss
>> $input-height: (($font-size-base * $input-line-height) + ($input-padding-y * 2)) !default;"
}
Run Code Online (Sandbox Code Playgroud)
我的变量值:
$font-size-base: 14px !default;
$line-height-base: 1.846 !default;
$input-line-height: floor(($font-size-base * $line-height-base)) !default;
$input-padding-y: 6px !default;
Run Code Online (Sandbox Code Playgroud)
弹出错误的行:
$input-height: (($font-size-base * $input-line-height) + ($input-padding-y * 2)) !default;
Run Code Online (Sandbox Code Playgroud)
我不明白为什么它不起作用,我更了解如何解决它.我使用node-sass编译SCSS,我不认为问题来自node-sass,因为它不是我第一次使用它而且我整天都在使用它而没有出现任何类似的错误.
我已经将Android Studio更新到v3.0.0,现在我无法构建我的项目.Android Studio 在构建和构建崩溃时将.flat添加到资源文件名,因为它无法识别.flat扩展名.
我试图清理项目并重建它,但我仍然得到这个错误.我不知道是什么原因引起的.
我希望有人可以帮助我解决我的问题,因为Studio无法成功构建,它找不到我的依赖项,我无法工作.
Executing tasks: [clean, :TP2A:assembleDebug, :TP2B:assembleDebug]
Configuration on demand is an incubating feature.
Configuration 'compile' in project ':TP2A' is deprecated. Use 'implementation' instead.
Configuration 'androidTestCompile' in project ':TP2A' is deprecated. Use 'androidTestImplementation' instead.
Configuration 'testCompile' in project ':TP2A' is deprecated. Use 'testImplementation' instead.
Configuration 'compile' in project ':TP2B' is deprecated. Use 'implementation' instead.
Configuration 'androidTestCompile' in project ':TP2B' is deprecated. Use 'androidTestImplementation' instead.
Configuration 'testCompile' in project ':TP2B' is deprecated. …Run Code Online (Sandbox Code Playgroud) android gradle android-studio android-gradle-plugin android-studio-3.0
我知道,在Java中有一个双冒号(::)拉姆达它允许你写的回调像以下:Stream.of(new Object(), new Object()).map(Object::toString)。
所以我想知道是否有 Babel 插件或任何其他方式在 Javascript (NodeJS) 中有类似的 lambda?
编辑:不仅仅是本机对象。(例如:Person::name)
我正在尝试运行我编写的 PL/SQL 脚本,但出现错误:
PLS-00653: aggregate/table functions are not allowed in PL/SQL scope
这里的问题不是错误本身,而是抛出错误的行。
这是我的 PL/SQL 块,它抛出此错误:
DECLARE
TYPE l_code_arr_typ IS VARRAY(3) OF VARCHAR2(100);
l_code_arr l_code_arr_typ;
l_objet objet_interface_pkg.objet_interface_typ;
l_resultat CLOB;
l_valeur valeur_pkg.valeur_typ;
l_liens lien_objet_interface_pkg.lien_objet_interface_tab;
l_rows NUMBER;
BEGIN
l_code_arr := l_code_arr_typ('champ.fonctions.dossier.particulier',
'champ.fonctions.region.admin',
'champ.fonctions.ministere.organisme');
l_resultat := '{';
FOR l_idx IN 1 .. l_code_arr.count LOOP
l_objet := objet_interface_pkg.obtenir_fnc(p_code => l_code_arr(l_idx),
p_acron_sys => :acronyme);
l_resultat := l_resultat || '"' || l_objet.code || '":[';
l_liens := lien_objet_interface_pkg.obtenir_par_objet_fnc(p_id_objet => l_objet.id_obj);
FOR l_lien IN (SELECT * FROM TABLE(l_liens)) …Run Code Online (Sandbox Code Playgroud) node.js ×2
android ×1
babeljs ×1
bootstrap-4 ×1
css ×1
docker ×1
dockerfile ×1
gradle ×1
javascript ×1
lambda ×1
plsql ×1
sass ×1