Comments (17)
Use this extension CPH (Jamal's Edition).
It is working for me.
from cph.
Go to the extension and select another version from a month back until the issue is identified.
from cph.
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.
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.
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.
I am also facing the same issue. Please fix this.
from cph.
same issue
v2024.7.1721655847
from cph.
Same issue
from cph.
I'll look into this.
from cph.
same problemmm
from cph.
I can't repro this. Can folks in this thread share the console logs with me.
- Open a problem in VS Code.
- Go to the CPH tab.
- Press Ctrl+Shift+P
- Type
workbench.action.webview.openDeveloperTools
and hit enter - Then follow the steps in the video, open the "Console" tab, press "Ctrl+A" to select logs then "Ctrl+C" to copy.
- Copy the logs to a file and please share the logs here.
CC @boasbakker @opticSquid and others.
good.mp4
from cph.
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.
same for me...
from cph.
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.
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.
VM10:5 Uncaught SyntaxError: Unexpected identifier 'also'
Same error msg here as @ShivamS136 mentioned above.
from cph.
Should be fixed in the new version. Please update to the latest version.
from cph.
Related Issues (20)
- Hope that when CPH encounters Chinese while scraping questions, it can automatically convert them into PinYin
- I want to change the storage path of the .bin file. HOT 2
- Does not support leetcode
- Custom keyboard shortcuts for running tests? HOT 1
- Remove the dependancy on Competitive Helper extension
- Suggestion/Feature request: add the option for multiple correct outputs
- Suggestion/Feature Request: Add multiple files to run at the same test point
- Test tab won't load on versions past v2024.7 (Windows) HOT 3
- Could not launch testcase process. Is 'g++' in your PATH?
- Extension is stuck on Loading...... HOT 2
- The extension is stuck in loading.. tried reinstalling VSCode, extension but still same HOT 7
- The same output but the result is failed HOT 2
- Old Code files says they do not have a CPH Problem associated with them! .cph folder is untouched
- Alaways giving SIGTERM
- spawn g++ ENOENT HOT 1
- can't use in devcontainer
- A Problem
- aborted creation of new file
- How to hide the support and feedback button?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cph.