You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With the awscli2 package, the bash / zsh completion is broken as mentioned in 80956. It seems it is because it tries to open in read/write a database file in the /nix/store (next to the source code).
Expected behavior
The shell displays completions options
Screenshots
❯ aws Traceback (most recent call last):
File "/nix/store/rscxkjs268qr4cjv0lzlmdcphwxp4g4h-awscli2-2.0.46/bin/.aws_completer-wrapped", line 37, in<module>main()
File "/nix/store/rscxkjs268qr4cjv0lzlmdcphwxp4g4h-awscli2-2.0.46/bin/.aws_completer-wrapped", line 29, in main
autocomplete(command_line, command_index)
File "/nix/store/rscxkjs268qr4cjv0lzlmdcphwxp4g4h-awscli2-2.0.46/lib/python3.8/site-packages/awscli/autocomplete/main.py", line 61, in autocomplete
results = completer.autocomplete(command_line, position)
File "/nix/store/rscxkjs268qr4cjv0lzlmdcphwxp4g4h-awscli2-2.0.46/lib/python3.8/site-packages/awscli/autocomplete/completer.py", line 42, in autocomplete
parsed = self._parser.parse(command_line, index)
File "/nix/store/rscxkjs268qr4cjv0lzlmdcphwxp4g4h-awscli2-2.0.46/lib/python3.8/site-packages/awscli/autocomplete/parser.py", line 145, in parse
global_args = self._index.arg_names(lineage=[], command_name='aws')
File "/nix/store/rscxkjs268qr4cjv0lzlmdcphwxp4g4h-awscli2-2.0.46/lib/python3.8/site-packages/awscli/autocomplete/local/model.py", line 104, in arg_names
results = db.execute(self._ARG_NAME_QUERY,
File "/nix/store/rscxkjs268qr4cjv0lzlmdcphwxp4g4h-awscli2-2.0.46/lib/python3.8/site-packages/awscli/autocomplete/db.py", line 33, in execute
return self._connection.execute(query, kwargs)
File "/nix/store/rscxkjs268qr4cjv0lzlmdcphwxp4g4h-awscli2-2.0.46/lib/python3.8/site-packages/awscli/autocomplete/db.py", line 23, in _connection
self._db_conn = sqlite3.connect(
sqlite3.OperationalError: unable to open database file
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
system: "x86_64-linux"
host os: Linux 5.4.74, NixOS, 20.09.1632.a6a3a368dda (Nightingale)
Describe the bug
With the awscli2 package, the bash / zsh completion is broken as mentioned in 80956. It seems it is because it tries to open in read/write a database file in the
/nix/store
(next to the source code).To Reproduce
Steps to reproduce the behavior:
nix-env -i awscli2
source /nix/store/rscxkjs268qr4cjv0lzlmdcphwxp4g4h-awscli2-2.0.46/share/zsh/site-functions/aws_zsh_completer.sh
Expected behavior
The shell displays completions options
Screenshots
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
"x86_64-linux"
Linux 5.4.74, NixOS, 20.09.1632.a6a3a368dda (Nightingale)
yes
yes
nix-env (Nix) 2.3.7
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: