km45 / devenv-server Goto Github PK
View Code? Open in Web Editor NEWdevelopment environment as code
License: MIT License
development environment as code
License: MIT License
現行では以下の警告が出るので対応する
warning: push.default is unset; its implicit value has changed in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the traditional behavior, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.
Since Git 2.0, Git defaults to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
インストール後に起動したら表示されない文字があったため、
インストール処理の追加以外にも対応が必要かもしれない。
Resolve following error because currently it is ignored by false-positives-skipping-rules.
$ make lint
docker-compose exec node bash -c "find src/playbooks/ -name '*.json' -type f | xargs npx jsonlint -q"
docker-compose exec python bash -c "ansible-lint -x 301,305,306,701 src/playbooks/site.yml"
[503] Tasks that run when changed should likely be handlers
/usr/src/app/src/playbooks/roles/apt/tasks/main.yml:16
Task/Handler: update cache if repository changed
Makefile:22: recipe for target 'ansiblelint' failed
make: *** [ansiblelint] Error 2
The command "make lint" exited with 2.
shellscript の lint ツールである shellcheck を検討する。
apt でインストールできるはず。
大きなプロジェクトを rtags の対象にして、
git のブランチ変更などを行うとスキャンが走るが処理が重たいため不都合が生じている。
並列数を抑えるなどして負荷を抑えられないか調査する。
マルチスレッドプログラムを gdbserver を用いてリモートデバッグするために
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
を導入したがデバッグ以外の機能も含まれているため機能の重複が起きている。
現在把握している限りでは、フォーマッタとインデクサが重複している。
これらを整理したい。
window.titleBarStyle
~/.config/git/ignore
に以下のような内容を追加したい。
# Visual Studio Code
/.vscode
apt install libxml2-utils
for xenial
"gitlens.codeLens.authors.enabled": false,
"gitlens.codeLens.recentChange.enabled": false
現在は ubuntu 14.04 を対象に playbook を記述しているが、
2019年4月でサポートが切れるため変更できるようにする。
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:
git config pull.rebase false # merge (the default strategy)
git config pull.rebase true # rebase
git config pull.ff only # fast-forward only
You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.
Install MS-CEINTL.vscode-language-pack-ja for the future
Refer:
ppa を使う
clang-format と cquery でフォーマット機能が重複しているためなのか、
おかしな挙動になることがあるため cquery の format を無効化する。
"cquery.formatting.enabled": false
を設定すればよさそう。
https://marketplace.visualstudio.com/items?itemName=goessner.mdmath
"mdmath.delimiters": "gitlab"
と設定することでコードブロックの math
指定が使用可能になる。
git 2.16 にすると ansible で clone できない問題への対処として git を 2.15.1 にしていたが、
この問題は解消しているようなのでgitのロールを削除する。
以下のエラーが出てrtagsのビルドが失敗する。
libclang-dev を apt でインストールしても変化はなかった。
TASK [rtags : compile and install] *********************************************
failed: [default] (item=./configure --prefix /usr/local/stow/rtags-2.18 --no-elisp-files-install) => {"changed": true, "cmd": "./configure --prefix /usr/local/stow/rtags-2.18 --no-elisp-files-install", "delta": "0:00:00.518532", "end": "2018-07-12 10:07:21.557549", "item": "./configure --prefix /usr/local/stow/rtags-2.18 --no-elisp-files-install", "msg": "non-zero return code", "rc": 1, "start": "2018-07-12 10:07:21.039017", "stderr": "-- Using Clang version 6.0.1 from /usr/lib/llvm-6.0/lib with CXXFLAGS -I/usr/lib/llvm-6.0/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS\nCMake Error at src/CMakeLists.txt:90 (message):\n We can't seem to compile a small clang test app. Maybe you need to install\n the libclang dev package?", "stderr_lines": ["-- Using Clang version 6.0.1 from /usr/lib/llvm-6.0/lib with CXXFLAGS -I/usr/lib/llvm-6.0/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS", "CMake Error at src/CMakeLists.txt:90 (message):", " We can't seem to compile a small clang test app. Maybe you need to install", " the libclang dev package?"], "stdout": "Running cmake:\n\"cmake\" \".\" -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_INSTALL_PREFIX=\"/usr/local/stow/rtags-2.18\" -DRTAGS_NO_ELISP_FILES=1\n\n-- The C compiler identification is GNU 4.8.5\n-- The CXX compiler identification is GNU 4.8.5\n-- Check for working C compiler: /usr/local/bin/cc\n-- Check for working C compiler: /usr/local/bin/cc -- works\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Check for working CXX compiler: /usr/local/bin/c++\n-- Check for working CXX compiler: /usr/local/bin/c++ -- works\n-- Detecting CXX compiler ABI info\n-- Detecting CXX compiler ABI info - done\n-- llvm-config executable found: /usr/bin/llvm-config-6.0\n-- Found LibClang: -L/usr/lib/llvm-6.0/lib;-lclang;-Wl,-rpath,/usr/lib/llvm-6.0/lib \n-- Performing Test LIBCLANG_COMPILES\n-- Performing Test LIBCLANG_COMPILES - Failed\n-- Configuring incomplete, errors occurred!\nSee also \"/usr/local/src/rtags-2.18/CMakeFiles/CMakeOutput.log\".\nSee also \"/usr/local/src/rtags-2.18/CMakeFiles/CMakeError.log\".", "stdout_lines": ["Running cmake:", "\"cmake\" \".\" -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_INSTALL_PREFIX=\"/usr/local/stow/rtags-2.18\" -DRTAGS_NO_ELISP_FILES=1", "", "-- The C compiler identification is GNU 4.8.5", "-- The CXX compiler identification is GNU 4.8.5", "-- Check for working C compiler: /usr/local/bin/cc", "-- Check for working C compiler: /usr/local/bin/cc -- works", "-- Detecting C compiler ABI info", "-- Detecting C compiler ABI info - done", "-- Check for working CXX compiler: /usr/local/bin/c++", "-- Check for working CXX compiler: /usr/local/bin/c++ -- works", "-- Detecting CXX compiler ABI info", "-- Detecting CXX compiler ABI info - done", "-- llvm-config executable found: /usr/bin/llvm-config-6.0", "-- Found LibClang: -L/usr/lib/llvm-6.0/lib;-lclang;-Wl,-rpath,/usr/lib/llvm-6.0/lib ", "-- Performing Test LIBCLANG_COMPILES", "-- Performing Test LIBCLANG_COMPILES - Failed", "-- Configuring incomplete, errors occurred!", "See also \"/usr/local/src/rtags-2.18/CMakeFiles/CMakeOutput.log\".", "See also \"/usr/local/src/rtags-2.18/CMakeFiles/CMakeError.log\"."]}
failed: [default] (item=make) => {"changed": true, "cmd": "make", "delta": "0:00:00.005629", "end": "2018-07-12 10:07:21.746928", "item": "make", "msg": "non-zero return code", "rc": 2, "start": "2018-07-12 10:07:21.741299", "stderr": "make: *** No targets specified and no makefile found. Stop.", "stderr_lines": ["make: *** No targets specified and no makefile found. Stop."], "stdout": "", "stdout_lines": []}
failed: [default] (item=make install) => {"changed": true, "cmd": "make install", "delta": "0:00:00.004476", "end": "2018-07-12 10:07:21.903772", "item": "make install", "msg": "non-zero return code", "rc": 2, "start": "2018-07-12 10:07:21.899296", "stderr": "make: *** No rule to make target `install'. Stop.", "stderr_lines": ["make: *** No rule to make target `install'. Stop."], "stdout": "", "stdout_lines": []}
to retry, use: --limit @/vagrant/km45-playbooks/host/site.retry
v2.21が指定されているが、現在そのようなバージョンは存在しないのでv2.20にする
smbpasswd
ではなく pdbedit
を使用する必要があるかもしれない。
コマンドのエイリアスの ll
に --color=auto
を追加する。
~/.bashrc で定義する
TASK [cpplint : install packages] **********************************************
fatal: [default]: FAILED! => {"changed": false, "cmd": "/home/vagrant/.anyenv/envs/pyenv/shims/pip2 install cpplint", "msg": "\n:stderr: pyenv: pip2: command not found\n\nThe `pip2' command exists in these Python versions:\n 2.7.14\n\n"}
to retry, use: --limit @/vagrant/km45-playbooks/site.retry
executable: pip3
と指定すれば解消する。
https://docs.ansible.com/ansible/latest/modules/pip_module.html
https://stackoverflow.com/questions/44455240/install-pip3-package-using-ansible-instead-of-pip2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.