Code Monkey home page Code Monkey logo

Comments (17)

Ease-at-Bhumesh avatar Ease-at-Bhumesh commented on August 22, 2024 5

Use this extension CPH (Jamal's Edition).
It is working for me.

from cph.

imeanup avatar imeanup commented on August 22, 2024 4

Go to the extension and select another version from a month back until the issue is identified.

from cph.

ShivamS136 avatar ShivamS136 commented on August 22, 2024 2

Error for me in the console is:

VM10:5 Uncaught SyntaxError: Unexpected identifier 'also'

And the opened file is below:


                        // Since the react script takes time to load, the problem is sent to the webview before it has even loaded.
                        // So, for the initial request, ask for it again.
                        window.vscodeApi = acquireVsCodeApi();
                        window.remoteMessage = Now also for Google Chrome: Submit directly to Codeforces using <a href="https://github.com/agrawal-d/cph-submit">CPH-Submit</a>!
                                                    ^^^ // Error is here
;
                        document.addEventListener(
                            'DOMContentLoaded',
                            (event) => {
                                vscodeApi.postMessage({
                                    command: 'get-initial-problem',
                                });
                                vscodeApi.postMessage({
                                    command: 'online-judge-env',
                                    value:false,
                                });
                                console.log("Requested initial problem");
                            },
                        );

I think value of window.remoteMessage should have been a string (enclosed in double quotes instead of plain text).

from cph.

opticSquid avatar opticSquid commented on August 22, 2024

Yes it also happens for me. I found another nuanse when I change the extension in output window the main window comes but no problem is created as shown in this recording:

cph-problem.mp4

CPH version: v2024.7.1721655847
OS: Ubuntu 24.04 LTS
VS Code Version: 1.91

from cph.

pratyush2331 avatar pratyush2331 commented on August 22, 2024

afbeelding

Extension Version: v2024.7.1721655847

Visual Studio Code information: Version: 1.91.1 Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729 Date: 2024-07-09T22:08:12.169Z Electron: 29.4.0 ElectronBuildId: 9728852 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Linux x64 6.5.0-44-generic snap

Ubuntu 22.04 LTS

I tried:

  • Restarting VScode
  • Different folder
  • Reinstalling extension

same issue

from cph.

ShivamS136 avatar ShivamS136 commented on August 22, 2024

I am also facing the same issue. Please fix this.

from cph.

AprLsity avatar AprLsity commented on August 22, 2024

same issue
v2024.7.1721655847

from cph.

tr1ten avatar tr1ten commented on August 22, 2024

Same issue

from cph.

agrawal-d avatar agrawal-d commented on August 22, 2024

I'll look into this.

from cph.

suraj1771singh avatar suraj1771singh commented on August 22, 2024

same problemmm

from cph.

agrawal-d avatar agrawal-d commented on August 22, 2024

I can't repro this. Can folks in this thread share the console logs with me.

  1. Open a problem in VS Code.
  2. Go to the CPH tab.
  3. Press Ctrl+Shift+P
  4. Type workbench.action.webview.openDeveloperTools and hit enter
  5. Then follow the steps in the video, open the "Console" tab, press "Ctrl+A" to select logs then "Ctrl+C" to copy.
  6. Copy the logs to a file and please share the logs here.

CC @boasbakker @opticSquid and others.

good.mp4

from cph.

jugshaurya avatar jugshaurya commented on August 22, 2024

@agrawal-d

frontend.module.js:2 ReferenceError: vscodeApi is not defined
    at frontend.module.js:2:144009
    at Object.Uo [as useState] (frontend.module.js:2:65734)
    at t.useState (frontend.module.js:2:138842)
    at f (frontend.module.js:2:143994)
    at xo (frontend.module.js:2:62817)
    at xi (frontend.module.js:2:119649)
    at ws (frontend.module.js:2:108801)
    at ys (frontend.module.js:2:108729)
    at vs (frontend.module.js:2:108592)
    at os (frontend.module.js:2:105399)
du @ frontend.module.js:2
n.callback @ frontend.module.js:2
Ua @ frontend.module.js:2
ki @ frontend.module.js:2
wi @ frontend.module.js:2
bi @ frontend.module.js:2
(anonymous) @ frontend.module.js:2
Ss @ frontend.module.js:2
as @ frontend.module.js:2
S @ frontend.module.js:2
T @ frontend.module.js:2
frontend.module.js:2 Uncaught ReferenceError: vscodeApi is not defined
    at frontend.module.js:2:144009
    at Object.Uo [as useState] (frontend.module.js:2:65734)
    at t.useState (frontend.module.js:2:138842)
    at f (frontend.module.js:2:143994)
    at xo (frontend.module.js:2:62817)
    at xi (frontend.module.js:2:119649)
    at ws (frontend.module.js:2:108801)
    at ys (frontend.module.js:2:108729)
    at vs (frontend.module.js:2:108592)
    at os (frontend.module.js:2:105399)
    ```

from cph.

Readiz avatar Readiz commented on August 22, 2024

same for me...

from cph.

opticSquid avatar opticSquid commented on August 22, 2024

Now the issue is resolved for me. When I checked today morning. Other folks also can comment. If it works for everyone we can close this issue

from cph.

ShivamS136 avatar ShivamS136 commented on August 22, 2024

I switched to old version (1 month ago) and it started working. After seeing previous update in this thread, I tried to auto update again but the latest version was the same 5 days ago version. I reloaded the extensions and surprisingly it extension was working. But when I quitted VS code and restarted it then again the extension is not working.

from cph.

T2hhbmEK avatar T2hhbmEK commented on August 22, 2024

VM10:5 Uncaught SyntaxError: Unexpected identifier 'also'

Same error msg here as @ShivamS136 mentioned above.

from cph.

agrawal-d avatar agrawal-d commented on August 22, 2024

Should be fixed in the new version. Please update to the latest version.

from cph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.