Comments (8)
Hi @Licheng-Xu
可以提供一下题号吗?
from vscode-leetcode.
不好意思,这几天忙着其他事情了。
题号:[13]
Roman to Integer
选择直接输入测试样例,输入 "LVIII",之后返回了
Input data:
LVIIIActual
× Runtime Error
× runtime: N/A
× answer:
× stdout: ''
× error: terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not validExpected
× Runtime Error
× runtime: N/A
× answer:
× stdout: ''
× error: Line 68: ValueError: No JSON object could be decoded
from vscode-leetcode.
@Licheng-Xu It looks like a bug. Thank you for the feedback. 👍
from vscode-leetcode.
Hi @jdneo , looks like the bug happened because in test.ts: when we get the test string, we replace all /" with "", which drops quotes. Thus in leetcode, it can't recognize the input as a string.
from vscode-leetcode.
@LiuLiC Yeah, I know that. Because I remember that there is a problem if we do not do the replacement.
Not quite sure how the current status is. PR is welcome if you are willing to fix this. 😄
from vscode-leetcode.
Fixed in #111.
Will get released in 0.10.2
from vscode-leetcode.
Hmm...
Actually, this bug is not well fixed in #111. I did some experiments on different platforms and found that the test string needs to be parsed in different ways:
Bash (Mac)
'"XX"'
CMD (Windows)
"\"XX\""
PowerShell (Windows)
'\"XX\"'
I have no Linux machine to verify, but guess the behavior should be similar with that in Bash
.
So I created another PR: #113, to fix it.
from vscode-leetcode.
@ALL 0.10.2 has been released with this fix.
from vscode-leetcode.
Related Issues (20)
- (SOLVED)Unable to login to Leetcode.com HOT 15
- is env supported in eetcode.workspaceFolder?/是否支持环境变量指定 leetcode.workspaceFolder
- > > Any step-by-step instructions to solve the problem temporily ? thanks! HOT 1
- Error: Command "wsl wslpath,-u,""C://Program Files//nodejs//node.exe""" failed with exit code "1".
- In version 0.18.2, there is an issue where local vscode.exe cannot be opened after redirecting to the authorized login page on the web. HOT 3
- Are there plans to add a studyplan category?
- (SOLVED) Please help me: Can't load any questions and test, submit HOT 3
- 不能登录leetcode.cn HOT 6
- workspace floder 支持工作区设置 HOT 1
- If vsc-leetcode-cli is no longer maintained, can you fork it for development?
- Failed to log in without any output HOT 3
- The problem set is incomplete HOT 1
- With the extension i am not getting login option for Cookies HOT 2
- show top voted solution bug
- Not able to login as mentioned in the readme file HOT 1
- Failed to fetch list problems and stuck on fetching user data HOT 1
- [SOLUTION] Here's how to login with this plugin. HOT 10
- Show Perfectly Matched Problem When Searching by Problem ID HOT 1
- Unable to login using the default login method in vscode-insiders HOT 3
- DeprecationWarning: The punycode' module is deprecated. HOT 1
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 vscode-leetcode.