Problem with fstab file when opening vscode

Hi,
last night I updated Manjaro and after the restart, I can’t open VSCode. I think the problem is in my fstab file. here how it looks:

and this is the error I get when I run VSCode.

    2021/07/29 11:55:21.782111 system_key.go:129: cannot determine nfs usage in 
    generateSystemKey: cannot parse /etc/fstab: expected between 3 and 6 fields, found 1
    /var/lib/snapd/snap/code/70/command-code.wrapper: line 2: /snap/code/70/electron-launch: No 
    such file or directory    

any idea?
thanks

How does the file look if you just cat /etc/fstab?

Please post the output in code blocks.

I would assume that the ^[??a:q line is an error and should be removed.

4 Likes
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=B6F4-3B3C                            /boot/efi      vfat    umask=0077 0 2
UUID=16817bea-e6bc-4c71-8ad3-f681a4deeb09 /              ext4    defaults,noatime 0 1
�a:q
LABEL=E /mnt/E auto nosuid,nodev,nofail,x-gvfs-show 0 0

this is cat /etc/fstab

I removed that part that you said now the error shrank to
/var/lib/snapd/snap/code/70/command-code.wrapper: line 2: /snap/code/70/electron-launch: No
such file or directory
btw, this file (/snap/code/70/electron-launch) does exist!

1 Like

This seems like an issue with the snap package.

Are you using vscode from a snap? I would re-install the snap in that case to see if that brings in the missing file.

1 Like

yes, I do. but as I said, the file is there and it’s not missing!

  1. Remove the snap

  2. install from the AUR:

    pamac install visual-studio-code-bin 
    

:crossed_fingers:

2 Likes