skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.65k stars 457 forks source link

No source code is downloaded #126

Closed kgfly closed 5 years ago

kgfly commented 6 years ago

Problem Summary

The downloaded template does not have code.

How to reproduce

  1. which command failed, what parameters used

leetcode show 1 -g -x -l cpp

  1. actual/expected output

Actual: [1] Two Sum

https://leetcode.com/problems/two-sum/description/

Tags: algorithms

Langs: c cpp csharp golang java javascript kotlin python python3 ruby scala swift

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

Example:

Given nums = [2, 7, 11, 15], target = 9,

Because nums[0] + nums[1] = 2 + 7 = 9, return [0, 1].

Expected: cpp code template should be downloaded

_[1] Two Sum

https://leetcode.com/problems/two-sum/description/

Tags: algorithms

Langs: c cpp csharp golang java javascript kotlin python python3 ruby scala swift

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

Example:

Given nums = [2, 7, 11, 15], target = 9,

Because nums[0] + nums[1] = 2 + 7 = 9, return [0, 1].

class Solution { public: vector twoSum(vector& nums, int target) {

}

};_

  1. if possible, run command with "-vv" will give more outputs of the HTTP data, do REMEMBER to delete your cookies before paste here!!

Environment

[Environment] Node v8.12.0 OS linux 4.15.0-36-generic Cache /home/xxx/.lc/cache Config /home/xxx/.lc/config.json

[Configuration] autologin {"enable":false,"retry":2} code {"editor":"vim","lang":"cpp"} color {"enable":true,"theme":"default"} icon {"theme":""} network {"concurrency":10}

[Themes] Colors blue,dark,default,molokai,orange,pink,solarized,solarized.light Icons ascii,default,win7

[Plugins] solution.discuss 2018.04.14 company 2017.12.18 cache default retry default cookie.chrome 2018.05.30 leetcode default

kgfly commented 6 years ago

Note: this is a random issue. Not always repro.

skygragon commented 6 years ago

@9527KGG in your paste above, here is "Source Code: 1.two-sum.2.cpp", you mean there is no code generated in that file?

kgfly commented 5 years ago

The issue no longer repro.