cli icon indicating copy to clipboard operation
cli copied to clipboard

main.go calls deprecated code

Open weilanwu opened this issue 12 years ago • 4 comments

main.go calls 'runtime/debug' 's Stack() function, which is deprecated according golang documentation and this closed issue: https://codereview.appspot.com/7004050:

func displayCrashDialog(errorMessage string) {
...
stackTrace := "\t" + strings.Replace(string(debug.Stack()), "\n", "\n\t", -1)
...

weilanwu avatar Jun 03 '14 00:06 weilanwu

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/72493308.

cf-gitbot avatar Jun 03 '14 00:06 cf-gitbot

Cool. Want to issue a pull request?

We're not really too concerned about this so we probably won't fix it until it's actually no longer in golang. As far as I know this will still be in 1.3.

Sent From A Very Small Keyboard

On Jun 2, 2014, at 17:45, weilanwu [email protected] wrote:

main.go calls 'runtime/debug' 's Stack() function, which is deprecated according golang documentation and this closed issue: https://codereview.appspot.com/7004050:

func displayCrashDialog(errorMessage string) {

...

stackTrace := "\t" + strings.Replace(string(debug.Stack()), "\n", "\n\t", -1)

... — Reply to this email directly or view it on GitHub.

tjarratt avatar Jun 03 '14 01:06 tjarratt

Hi Tim,

Yes, I coded a patch and it’s sitting in my sandbox branch. OK, I will send pull request.

Thanks, Weilan

From: Tim Jarratt [mailto:[email protected]] Sent: Monday, June 02, 2014 6:06 PM To: cloudfoundry/cli Cc: Weilan W Wu Subject: Re: [cli] main.go calls deprecated code (#183)

Cool. Want to issue a pull request?

We're not really too concerned about this so we probably won't fix it until it's actually no longer in golang. As far as I know this will still be in 1.3.

Sent From A Very Small Keyboard

On Jun 2, 2014, at 17:45, weilanwu [email protected] wrote:

main.go calls 'runtime/debug' 's Stack() function, which is deprecated according golang documentation and this closed issue: https://codereview.appspot.com/7004050:

func displayCrashDialog(errorMessage string) {

...

stackTrace := "\t" + strings.Replace(string(debug.Stack()), "\n", "\n\t", -1)

... — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/cloudfoundry/cli/issues/183#issuecomment-44909519.

weilanwu avatar Jun 03 '14 17:06 weilanwu

Now under #184 . Closing this one.

lcddave avatar Jun 04 '14 01:06 lcddave