Comment 13 for bug 1662456

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

Didn't work for me sadly.

$ snap info snapcraft

name: snapcraft
summary: "easily create snaps"
publisher: canonical
contact: <email address hidden>
description: |
  Snapcraft aims to make upstream developers' lives easier and as such is not a
  single toolset, but instead is a collection of tools that enable the natural
  workflow of an upstream to be extended with a simple release step into Snappy
  enabled system.
commands:
  - snapcraft
tracking: stable/new-cli
installed: 2.29.1+git51.3e5e2d8 (154) 53MB classic
refreshed: 2017-05-16 20:30:30 +0100 BST
channels:
  latest/beta: 2.29.1 (99) 53MB classic
  latest/edge: 2.29.1+git38.6387808 (168) 53MB classic

Here is the Traceback:

'ascii' codec can't decode byte 0xc3 in position 463: ordinal not in range(128)
Stopping local:snapcraft-nonnoumenally-insentient-despina
Traceback (most recent call last):
  File "/snap/snapcraft/154/bin/snapcraft", line 32, in <module>
    obj=dict(project=snapcraft.ProjectOptions()))
  File "/snap/snapcraft/154/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/snap/snapcraft/154/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/snap/snapcraft/154/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/snap/snapcraft/154/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/snap/snapcraft/154/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/snap/snapcraft/154/lib/python3.6/site-packages/snapcraft/cli/lifecycle.py", line 202, in cleanbuild
    lifecycle.cleanbuild(project_options, remote)
  File "/snap/snapcraft/154/lib/python3.6/site-packages/snapcraft/internal/lifecycle.py", line 343, in cleanbuild
    metadata=config.get_metadata(), remote=remote).execute()
  File "/snap/snapcraft/154/lib/python3.6/site-packages/snapcraft/internal/lxd.py", line 125, in execute
    raise e
  File "/snap/snapcraft/154/lib/python3.6/site-packages/snapcraft/internal/lxd.py", line 119, in execute
    self._container_run(command)
  File "/snap/snapcraft/154/lib/python3.6/site-packages/snapcraft/internal/lxd.py", line 86, in _container_run
    'HOME=/{}'.format(self._project_folder), '--'] + cmd)
  File "/snap/snapcraft/154/usr/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['lxc', 'exec', 'local:snapcraft-nonnoumenally-insentient-despina', '--env', 'HOME=/build_vscode', '--', 'snapcraft', 'snap', '--output', 'vscode_1.12.2-1494422229_amd64.snap']' returned non-zero exit status 1.

And this is the .desktop file:

[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/share/code/code --unity-launch %U
Icon=/usr/share/pixmaps/code.png
Type=Application
StartupNotify=true
StartupWMClass=Code
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;
Actions=new-window;
Keywords=vscode;

[Desktop Action new-window]
Name=New Window
Name[de]=Neues Fenster
Name[es]=Nueva ventana
Name[fr]=Nouvelle fenêtre
Name[it]=Nuova finestra
Name[ja]=新規ウインドウ
Name[ko]=새 창
Name[ru]=Новое окно
Name[zh_CN]=新建窗口
Name[zh_TW]=開新視窗
Exec=/usr/share/code/code --new-window %U
Icon=/usr/share/pixmaps/code.png