Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] source: Error while reading file #744

Closed
nibazshab opened this issue Mar 3, 2024 · 1 comment
Closed

[BUG] source: Error while reading file #744

nibazshab opened this issue Mar 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nibazshab
Copy link

General description of bug:

  • What happened: source: Error while reading file '/usr/share/fish/vendor_completions.d/fastfetch.fish'
  • What should happen: Use fish shell, type fastf and Tab and Enter
  • Did it work in an older version: Don't know
  • Where did you get the binary: apt from ppa:zhangsongcui3371/fastfetch / pacman
  • Does this issue still occurs in the latest dev build? Don't know. It's random

Often helpful information:

Screenshot:

image

The content of the configuration file you use (if any):

nothing

Output of fastfetch -c ci.jsonc --format json:

[
  {
    "type": "Title",
    "result": {
      "userName": "root",
      "hostName": "ecsvglt",
      "homeDir": "/root/",
      "exePath": "/usr/bin/fastfetch",
      "userShell": "/usr/bin/fish",
      "pageSize": 4096
    },
    "stat": 0
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0
  },
  {
    "type": "OS",
    "result": {
      "buildID": "",
      "codename": "jammy",
      "id": "ubuntu",
      "idLike": "debian",
      "name": "Ubuntu",
      "prettyName": "Ubuntu 22.04.4 LTS",
      "variant": "",
      "variantID": "",
      "version": "22.04.4 LTS (Jammy Jellyfish)",
      "versionID": "22.04"
    },
    "stat": 0
  },
  {
    "type": "Host",
    "result": {
      "family": "",
      "name": "KVM/QEMU Standard PC (i440FX + PIIX, 1996)",
      "version": "pc-i440fx-5.2",
      "sku": "",
      "vendor": "QEMU",
      "serial": "",
      "uuid": "6cc03b55-853f-22a1-4d0a-34a078eed1de"
    },
    "stat": 1
  },
  {
    "type": "Bios",
    "result": {
      "date": "04/01/2014",
      "release": "0.0",
      "vendor": "SeaBIOS",
      "version": "rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org",
      "type": "BIOS"
    },
    "stat": 0
  },
  {
    "type": "Board",
    "error": "board_name is not set.",
    "stat": 0
  },
  {
    "type": "Chassis",
    "result": {
      "type": "Other",
      "vendor": "QEMU",
      "version": "pc-i440fx-5.2",
      "serial": ""
    },
    "stat": 0
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Linux",
      "release": "5.15.0-97-generic",
      "version": "#107-Ubuntu SMP Wed Feb 7 13:26:48 UTC 2024",
      "displayVersion": ""
    },
    "stat": 0
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 132715989,
      "bootTime": 1709574987518
    },
    "stat": 0
  },
  {
    "type": "Processes",
    "result": 128,
    "stat": 1
  },
  {
    "type": "Packages",
    "result": {
      "all": 625,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 622,
      "emerge": 0,
      "eopkg": 0,
      "flatpakSystem": 0,
      "flatpakUser": 0,
      "nixDefault": 0,
      "nixSystem": 0,
      "nixUser": 0,
      "pacman": 0,
      "paludis": 0,
      "pkg": 0,
      "pkgtool": 0,
      "macports": 0,
      "rpm": 0,
      "scoop": 0,
      "snap": 3,
      "winget": 0,
      "xbps": 0,
      "opkg": 0,
      "pacmanBranch": ""
    },
    "stat": 3
  },
  {
    "type": "Shell",
    "result": {
      "exe": "fish",
      "exeName": "fish",
      "exePath": "/usr/bin/fish",
      "pid": 34702,
      "ppid": 34612,
      "processName": "fish",
      "prettyName": "fish",
      "version": "3.3.1",
      "tty": 0
    },
    "stat": 5
  },
  {
    "type": "Display",
    "error": "Couldn't detect display",
    "stat": 5
  },
  {
    "type": "Brightness",
    "error": "No result is detected.",
    "stat": 0
  },
  {
    "type": "Monitor",
    "error": "No monitors found",
    "stat": 0
  },
  {
    "type": "LM",
    "result": {
      "service": "sshd",
      "type": "TTY",
      "version": "8.9p1 Ubuntu-3ubuntu0.6"
    },
    "stat": 9
  },
  {
    "type": "DE",
    "error": "No DE found",
    "stat": 0
  },
  {
    "type": "WM",
    "error": "No WM found",
    "stat": 0
  },
  {
    "type": "WMTheme",
    "error": "WM Theme needs successful WM detection",
    "stat": 0
  },
  {
    "type": "Theme",
    "error": "No themes found",
    "stat": 0
  },
  {
    "type": "Icons",
    "error": "No icons could be found",
    "stat": 0
  },
  {
    "type": "Font",
    "error": "No fonts found",
    "stat": 0
  },
  {
    "type": "Cursor",
    "error": "Couldn't find cursor",
    "stat": 0
  },
  {
    "type": "Wallpaper",
    "error": "Failed to detect the current wallpaper path",
    "stat": 0
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "/dev/pts/0",
      "exe": "/dev/pts/0",
      "exeName": "0",
      "exePath": "",
      "pid": 0,
      "ppid": 0,
      "prettyName": "/dev/pts/0",
      "version": "",
      "tty": "/dev/pts/0"
    },
    "stat": 0
  },
  {
    "type": "TerminalFont",
    "error": "Terminal font detection is not supported on PTS",
    "stat": 0
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 121,
      "rows": 33,
      "width": 0,
      "height": 0
    },
    "stat": 101
  },
  {
    "type": "TerminalTheme",
    "error": "Failed to detect terminal theme",
    "stat": 100
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "Intel(R) Xeon(R) E5-2680 v4",
      "vendor": "GenuineIntel",
      "cores": {
        "physical": 2,
        "logical": 2,
        "online": 2
      },
      "frequency": {
        "min": 2.3999960000000002,
        "max": 2.3999960000000002
      },
      "temperature": null
    },
    "stat": 1
  },
  {
    "type": "CPUUsage",
    "result": [
      0.0,
      0.0
    ],
    "stat": 200
  },
  {
    "type": "GPU",
    "result": [
      {
        "coreCount": null,
        "memory": {
          "dedicated": {
            "total": null,
            "used": null
          },
          "shared": {
            "total": null,
            "used": null
          }
        },
        "driver": "",
        "name": "GD 5446",
        "temperature": null,
        "type": "Unknown",
        "vendor": "Cirrus Logic",
        "platformApi": "",
        "frequency": null
      }
    ],
    "stat": 4
  },
  {
    "type": "Memory",
    "result": {
      "total": 2059149312,
      "used": 681619456
    },
    "stat": 0
  },
  {
    "type": "Swap",
    "result": {
      "total": 0,
      "used": 0
    },
    "stat": 0
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 47008813056,
          "free": 47025590272,
          "total": 51835101184,
          "used": 4809510912
        },
        "files": {
          "total": 6451200,
          "used": 145917
        },
        "filesystem": "ext4",
        "mountpoint": "/",
        "mountFrom": "/dev/vda1",
        "name": "cloudimg-rootfs",
        "volumeType": [
          "Regular"
        ]
      },
      {
        "bytes": {
          "available": 103088640,
          "free": 103088640,
          "total": 109422592,
          "used": 6333952
        },
        "files": {
          "total": 0,
          "used": 0
        },
        "filesystem": "vfat",
        "mountpoint": "/boot/efi",
        "mountFrom": "/dev/vda15",
        "name": "UEFI",
        "volumeType": [
          "Hidden"
        ]
      }
    ],
    "stat": 1
  },
  {
    "type": "Battery",
    "error": "\"/sys/class/power_supply/\" doesn't contain any battery folder",
    "stat": 0
  },
  {
    "type": "PowerAdapter",
    "error": "No power adapters found",
    "stat": 0
  },
  {
    "type": "Player",
    "error": "No media found",
    "stat": 33
  },
  {
    "type": "Media",
    "error": "No media found",
    "stat": 0
  },
  {
    "type": "PublicIp",
    "result": {
      "ip": "111.92.241.90",
      "location": "Hong Kong, HK"
    },
    "stat": 0
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "defaultRoute": true,
        "ipv4": "111.92.241.90/24",
        "ipv6": "",
        "mac": "",
        "name": "eth0"
      }
    ],
    "stat": 0
  },
  {
    "type": "Wifi",
    "error": "No Wifi interfaces found",
    "stat": 1
  },
  {
    "type": "DateTime",
    "result": 1709442271993,
    "stat": 0
  },
  {
    "type": "Locale",
    "result": "C.UTF-8",
    "stat": 0
  },
  {
    "type": "Vulkan",
    "error": "dlopen libvulkan.so failed",
    "stat": 1
  },
  {
    "type": "OpenGL",
    "error": "dlopen glx failed",
    "stat": 0
  },
  {
    "type": "OpenCL",
    "error": "dlopen libOpenCL.so failed",
    "stat": 0
  },
  {
    "type": "Users",
    "result": [
      {
        "name": "root",
        "hostName": "117.22.124.227",
        "sessionName": "pts/0",
        "clientIp": "3816560245.0.0.0",
        "loginTime": 1709441443282
      }
    ],
    "stat": 0
  },
  {
    "type": "Bluetooth",
    "error": "Failed to call GetManagedObjects",
    "stat": 2
  },
  {
    "type": "Sound",
    "error": "Failed to load libpulse.so",
    "stat": 0
  },
  {
    "type": "Camera",
    "result": [],
    "stat": 0
  },
  {
    "type": "Gamepad",
    "error": "No devices detected",
    "stat": 0
  },
  {
    "type": "Weather",
    "result": "+31°C - Partly cloudy (Phnom Penh, Cambodia)",
    "stat": 116
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "eth0",
        "defaultRoute": true,
        "txBytes": 1316,
        "rxBytes": 1760,
        "txPackets": 16,
        "rxPackets": 14,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 416
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "QEMU QEMU DVD-ROM",
        "devPath": "/dev/sr0",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "0x1af4",
        "devPath": "/dev/vda",
        "bytesRead": 339968,
        "bytesWritten": 0,
        "readCount": 23,
        "writeCount": 0
      }
    ],
    "stat": 1
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "QEMU QEMU DVD-ROM",
        "devPath": "/dev/sr0",
        "interconnect": "ATA",
        "kind": "HDD",
        "size": 385024,
        "serial": "",
        "removable": true,
        "readOnly": false,
        "revision": "",
        "temperature": null
      },
      {
        "name": "0x1af4",
        "devPath": "/dev/vda",
        "interconnect": "",
        "kind": "HDD",
        "size": 53687091200,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "",
        "temperature": null
      }
    ],
    "stat": 0
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "architecture": "x86_64",
      "version": "2.8.6",
      "versionTweak": "",
      "cmakeBuiltType": "RelWithDebInfo",
      "compileTime": "Feb 28 2024, 02:01:40",
      "compiler": "gcc 11.4.0",
      "debugMode": false,
      "libc": "glibc 2.35"
    },
    "stat": 0
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0
  }
]

Output of fastfetch --list-features:

threads
vulkan
wayland
xcb-randr
xcb
xrandr
x11
drm
gio
dconf
dbus
imagemagick6
zlib
xfconf
sqlite3
rpm
egl
glx
osmesa
opencl
libpulse
libnm
libddcutil
videodev2
Directx Headers
Proprietary GPU driver API
@nibazshab nibazshab added the bug Something isn't working label Mar 3, 2024
@CarterLi
Copy link
Member

CarterLi commented Mar 3, 2024

Found a solution here: NixOS/nix#7152 (comment)

You may fix this issue yourself by modifying Line 4 of /usr/share/fish/vendor_completions.d/fastfetch.fish to exit. Or just removing it if you don't need auto completions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants