vlang

/

v Public
0 commits 39 issues 0 pull requests 0 contributors Discussions Projects CI

v share does not work as expected #10

Describe the bug

Running the V Compiler command share should upload a given file into the v playground (https://play.vlang.io/). In my environment it produces the following error:

> **v share dummy.v**
V panic: result not set (failed to decode JSON string)
 v hash: 130caaf
    pid: 0x1a5b74
    tid: 0x1a5b74
/tmp/v_1000/vshare.01KV11CQMJRG172P9RM5Z9XV2X.tmp.c:1117: at v_stable_sort: Backtrace
/tmp/v_1000/vshare.01KV11CQMJRG172P9RM5Z9XV2X.tmp.c:1117: by v_stable_sort
/tmp/v_1000/vshare.01KV11CQMJRG172P9RM5Z9XV2X.tmp.c:1117: by v_stable_sort
/tmp/v_1000/vshare.01KV11CQMJRG172P9RM5Z9XV2X.tmp.c:1117: by v_stable_sort
0x7fc765e27741: by ???
0x7fc765e27879: by ???
0x00606655: by ???

As I understood the source of vshare.v, the output should be a URL - probably pointing to the v playground with the loaded file.

The environment is:

v doctor
|V full version      |V 0.5.1 defdc5e07036eedd0f6c784fbb24bbc1da7e0616.130caaf
|:-------------------|:-------------------
|OS                  |linux, "Manjaro Linux"
|Processor           |16 cpus, 64bit, little endian, AMD Ryzen 7 8845HS w/ Radeon 780M Graphics
|Memory              |1.97GB/60.61GB
|                    |
|V executable        |/home/user/Dokumente/v/v/v
|V last modified time|2026-06-13 17:44:59
|                    |
|V home dir          |OK, value: /home/user/Dokumente/v/v
|VMODULES            |OK, value: /home/user/.vmodules
|VTMP                |OK, value: /tmp/v_1000
|Current working dir |OK, value: /home/user/Dokumente/v/trials
|                    |
|Git version         |git version 2.54.0
|V git status        |130caaf0
|.git/config present |true
|                    |
|cc version          |cc (GCC) 16.1.1 20260430
|gcc version         |gcc (GCC) 16.1.1 20260430
|clang version       |N/A
|tcc version         |tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux)
|tcc git status      |thirdparty-linux-amd64 696c1d84
|emcc version        |N/A
|glibc version       |ldd (GNU libc) 2.43

Reproduction Steps

To reproduce just run:

> **v share **

Expected Behavior

As far as I understand, v share should produce a URL starting with https://https://play.vlang.io/...

Current Behavior

Producing the error:

V panic: result not set (failed to decode JSON string)
 v hash: 130caaf
    pid: 0x1a5b74
    tid: 0x1a5b74
/tmp/v_1000/vshare.01KV11CQMJRG172P9RM5Z9XV2X.tmp.c:1117: at v_stable_sort: Backtrace
/tmp/v_1000/vshare.01KV11CQMJRG172P9RM5Z9XV2X.tmp.c:1117: by v_stable_sort
/tmp/v_1000/vshare.01KV11CQMJRG172P9RM5Z9XV2X.tmp.c:1117: by v_stable_sort
/tmp/v_1000/vshare.01KV11CQMJRG172P9RM5Z9XV2X.tmp.c:1117: by v_stable_sort
0x7fc765e27741: by ???
0x7fc765e27879: by ???
0x00606655: by ???

Possible Solution

unknown

Additional Information/Context

No response

V version

V 0.5.1 defdc5e07036eedd0f6c784fbb24bbc1da7e0616.130caaf

Environment details (OS name and version, etc.)

OS: linux, "Manjaro Linux" Processor: 16 cpus, 64bit, little endian, AMD Ryzen 7 8845HS w/ Radeon 780M Graphics Memory: 1.97GB/60.61GB

[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.