when using vim .bash_profile I get this
# Setting PATH for Python 3.8
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
export PATH
# added by Anaconda3 2018.12 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then
. "/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
".bash_profile" 24L, 771C
I want to set path for flutter which should be this line
export PATH="$PATH:/Users/Ahmed/Developer/flutter/bin"
Related
I tried finding the version compatible with coq 8.10 and installing it via opam pin but it's output is odd:
opam pin add -y coq-serapi git+https://github.com/ejgallego/coq-serapi.git#b6c7a46a8942b43cfd6a6e7d5fa3b155f17f1766
output:
(iit_synthesis) brando9~ $ opam pin add -y coq-serapi git+https://github.com/ejgallego/coq-serapi.git#b6c7a46a8942b43cfd6a6e7d5fa3b155f17f1766
[coq-serapi.8.10.0+0.7.2] synchronised (git+https://github.com/ejgallego/coq-serapi.git#b6c7a46a8942b43cfd6a6e7d5fa3b155f17f1766)
[WARNING] Failed checks on coq-serapi package definition from source at
git+https://github.com/ejgallego/coq-serapi.git#b6c7a46a8942b43cfd6a6e7d5fa3b155f17f1766:
warning 62: License doesn't adhere to the SPDX standard, see https://spdx.org/licenses/: "GPL 3"
coq-serapi is now pinned to git+https://github.com/ejgallego/coq-serapi.git#b6c7a46a8942b43cfd6a6e7d5fa3b155f17f1766 (version 8.10.0+0.7.2)
The following actions will be performed:
↻ recompile coq-serapi 8.10.0+0.7.2*
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved coq-serapi.8.10.0+0.7.2 (git+https://github.com/ejgallego/coq-serapi.git#b6c7a46a8942b43cfd6a6e7d5fa3b155f17f1766)
[ERROR] The compilation of coq-serapi.8.10.0+0.7.2 failed at "dune build -p coq-serapi -j 127".
#=== ERROR while compiling coq-serapi.8.10.0+0.7.2 ============================#
# context 2.1.4 | linux/x86_64 | ocaml-base-compiler.4.07.1 | pinned(git+https://github.com/ejgallego/coq-serapi.git#b6c7a46a8942b43cfd6a6e7d5fa3b155f17f1766#b6c7a46a)
# path ~/.opam/coq-8.10/.opam-switch/build/coq-serapi.8.10.0+0.7.2
# command ~/.opam/coq-8.10/bin/dune build -p coq-serapi -j 127
# exit-code 1
# env-file ~/.opam/log/coq-serapi-807247-646161.env
# output-file ~/.opam/log/coq-serapi-807247-646161.out
### output ###
# Error: The implementation serlib/plugins/ltac/ser_tacentries.ml
# [...]
# type 'a grammar_tactic_prod_item_expr =
# 'a Ltac_plugin.Tacentries.grammar_tactic_prod_item_expr
# File "serlib/plugins/ltac/ser_tacentries.mli", line 19, characters 0-83:
# Expected declaration
# File "plugins/ltac/tacentries.mli", line 25, characters 0-156:
# Actual declaration
# (cd _build/default && /lfs/ampere1/0/brando9/.opam/coq-8.10/bin/ocamlopt.opt -w -40 -rectypes -g -ppx '.ppx/57e0400f3b219ff4fc65d1fbd820e35d/ppx.exe --as-ppx --cookie '\''library-name="serlib_ltac"'\''' -I serlib/plugins/ltac/.serlib_ltac.objs/byte -I serlib/plugins/ltac/.serlib_ltac.objs/native -I /lfs/ampere1/0/brando9/.opam/coq-8.10/lib/base/caml -I /lfs/ampere1/0/brando9/.opam/coq-8.10/li[...]
# File "plugins/ltac/tacenv.mli", line 74, characters 0-379:
# Error: This variant or record definition does not match that of type
# Ltac_plugin.Tacenv.ltac_entry
# The types for field tac_body are not equal.
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build coq-serapi 8.10.0+0.7.2
└─
╶─ No changes have been performed
[NOTE] Pinning command successful, but your installed packages may be out of sync.
does someone know how to fix it? Is it just trying other commits until it works?
commits: https://github.com/ejgallego/coq-serapi/commits/b6c7a46a8942b43cfd6a6e7d5fa3b155f17f1766
related: requesting commit for coq-serapi from mantainer: https://github.com/ejgallego/coq-serapi/issues/319
Using fish for the installation of denon don't recognize it
steps:
Open fish terminal
deno install -qAf --unstable https://deno.land/x/denon/denon.ts
export PATH="/Users/user/.deno/bin:$PATH"
denon --init
output:
fish: Unknown command: denon
Deno version:
deno 1.28.3 (release, x86_64-apple-darwin)
v8 10.9.194.5
typescript 4.8.3
Denon 2.5.0
Solution:
export PATH="/Users/user/.deno/bin:$PATH" ✔ ⬢ 16.17.0
source ~/.profile
you could get the next error:
~/.cargo/env (line 4): 'case' builtin not inside of switch block
case ":${PATH}:" in
^
from sourcing file ~/.cargo/env
called on line 1 of file ~/.profile
from sourcing file ~/.profile
.: Error while reading file '/Users/user/.cargo/env'
go to .config/fish/
and nano config.fish
and paste the next exports so, it looks like this:
if status is-interactive
# Commands to run in interactive sessions can go here
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="/Users/user/.deno/bin:$PATH"
end
After having forked scully, running npm test from the root folder launches jest tests but doesn't launch the unit tests with jasmine under ./schematics/scully.
When running npm test from under ./schematics/scully, it doesn't work:
git clone git#github.com:atao60/scully.git
cd scully/schematics/scully
npm i
npm i -D guess-parser#^0.4.13 #angular/core#"^8.0.0 || ^9.0.0-0" #angular/common#"^8.0.0 || ^9.0.0-0"
npm i -D bufferutil#^4.0.1 utf-8-validate#^5.0.2 zone.js#~0.10.3 typescript#"~3.7.5 || ~3.8.0"
npm test
#
# > #scullyio/init#0.0.26 test /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully
# > npm run build && jasmine src/**/*_spec.js
#
#
# > #scullyio/init#0.0.26 build /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully
# > tsc -p tsconfig.json
#
# Randomized with seed 75077
# Started
# FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
#
# Failures:
# 1) add-post when using `metaDataFile` option should add the meta data but keep title from options
# Message:
# Error: Cannot find module '#schematics/angular/package.json'
# Require stack:
# - /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully/node_modules/#angular-devkit/schematics/tools/node-module-engine-host.js
# - /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully/node_modules/#angular-devkit/schematics/tools/workflow/node-workflow.js
# - /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully/node_modules/#angular-devkit/schematics/tools/index.js
# - /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully/node_modules/#angular-devkit/schematics/testing/schematic-test-runner.js
# - /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully/node_modules/#angular-devkit/schematics/testing/index.js
# - /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully/src/add-blog/index_spec.js
# - /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully/node_modules/jasmine/lib/jasmine.js
# - /home/pierre/DevSpace/gh-pages-explo/scully/schematics/scully/node_modules/jasmine/bin/jasmine.js
# Stack:
# error properties: Object({ code: 'MODULE_NOT_FOUND', requireStack: [ '/home/pierre/DevSpace/
# [...]
#
# 33 specs, 33 failures
# Finished in 0.465 seconds
# Randomized with seed 75077 (jasmine --random=true --seed=75077)
# npm ERR! Test failed. See above for more details.
It seems I missed something obvious but I can't figure out what. Any clue'd be welcome.
In order to have code-completion and functioning linting, I'd like VSCode to include a specific path.
https://code.visualstudio.com/docs/python/environments#_environment-variable-definitions-file
I created a test environment
$ pwd
==> /Users/stephan/saitc/test_ws
$ ls -a
==> . .env tst_pckg
==> .. __init__.py
==> .DS_Store testing.code-workspace
$ cat .env
==> PYTHONPATH="/Users/stephan/saitc"
$ ls tst_pckg/
==> CONST.py __init__.py testing.py
$ cat tst_pckg/CONST.py
==> # -*- coding: utf-8 -*-
==>
==> TEST_CONSTANT = "Test constant's value"
$ cat tst_pckg/testing.py
==> # -*- coding: utf-8 -*-
==>
==> from test_ws.tst_pckg.CONST import TEST_CONSTANT
The setting "python.envFile" is set to "${workspaceFolder}/.env"
With this setup I would expect that VSCode is aware of the package "test_ws" but typing the line:
from test_ws.tst_pckg.CONST import TEST_CONSTANT
in the file "testing.py" gives my no reasonable code completion and "test_ws.tst_pckg.CONST" can not be resolved ("unresolved import"-error in the VSCode ui).
I'm using Anaconda on macos and the Visual Studio Code 1.30.1 which comes with it. Can it be that I have to start visual studio code from the directory "/Users/stephan/saitc/test_ws"? (if so how?)
With every start of Visual Studio Code I'm asked if I want to start the pylint extension. How can I turn this on permanently? (Python›Linting: Pylint Enabled, Python›Linting: Enabled)
Thank you,
Stephan
You can use the configuration "python.autoComplete.extraPaths": ["./your-source/folder"].
As far as I understand is the env file only used when you start a terminal and so on but not for the extensions.
I have the following script to start, stop, restart apache2 in my debian 7
#!/bin/sh
### BEGIN INIT INFO
# Provides: apache2
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: apache2
# Description: Start apache2
### END INIT INFO
case "$1" in
start)
echo "Starting Apache ..."
# Change the location to your specific location
/usr/local/apache2/bin/apachectl start
;;
stop)
echo "Stopping Apache ..."
# Change the location to your specific location
/usr/local/apache2/bin/apachectl stop
;;
graceful)
echo "Restarting Apache gracefully..."
# Change the location to your specific location
/usr/local/apache2/bin/apachectl graceful
;;
restart)
echo "Restarting Apache ..."
# Change the location to your specific location
/usr/local/apache2/bin/apachectl restart
;;
*)
echo "Usage: '$0' {start|stop|restart|graceful}"
exit 64
;;
esac
exit 0
When I add the script to update-rc.d I see the following warnings:
root#pomelo:/etc/init.d# update-rc.d apache2 defaults
update-rc.d: using dependency based boot sequencing
insserv: Script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: missing `Default-Stop:' entry: please add even if empty.
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `jexec'
But I already added Required-Stop and Default-Stop to the script.
Does anybody know how to solve this problem?
The issue is not in your apache2 init script, it is in 'jexec' it says so 'Script jexec is broken'.
That one is missing the Required-Stop and Default-Stop
Had the same issue on my SLES boxen. Don't worry though, even if it shows you these errors, everything still just runs fine!
HTH