magurofly / atcoder-easy-test

Easily test your codes on every problem pages
22 stars 7 forks source link

Python(PyPy)でWandboxの環境が表示されない #50

Closed strangerxxxx closed 3 days ago

strangerxxxx commented 6 days ago

v2.12.0で言語をPythonまたはPyPyにしたときに、Wandboxのテスト環境が表示されなくなっています。 おそらくですがAtCoder Easy Test上のkeyはPython3で、Wandbox APIでは"language":"Python"となっているせいですかね。 一応856行目を 5055: "Python Python3 CPython 3.11.4", のように変えると表示はされるようになるのですが、いかにも応急的な感じなのと逆にAtCoder/Wandbox以外は表示されなくなるのでイマイチかなと……

strangerxxxx commented 6 days ago

よく考えたらこう変更すればいいですかね。

fetchWandboxCompilers().then((compilers) => {
    for (const compiler of compilers) {
        if (compiler.name.startsWith('cpython') || compiler.name.startsWith('pypy')) {
            compiler.language = 'Python3';
        };
        const key = compiler.language + " " + compiler.name;
        runners[key] = toRunner(compiler);
        console.log("wandbox", key, runners[key]);
    }
});
magurofly commented 3 days ago

Issueありがとうございます。 そんな感じに解決させていただこうと思います。