Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug viewlet section headers are blank #28650

Closed
roblourens opened this issue Jun 13, 2017 · 8 comments
Closed

Debug viewlet section headers are blank #28650

roblourens opened this issue Jun 13, 2017 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority verified Verification succeeded
Milestone

Comments

@roblourens
Copy link
Member

image

@roblourens
Copy link
Member Author

Since yesterday's Insiders

@isidorn isidorn assigned sandy081 and unassigned isidorn Jun 14, 2017
@isidorn
Copy link
Contributor

isidorn commented Jun 14, 2017

Sandeep broke the split view I believe, I have the same behavior for explorer -> @sandy081

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority labels Jun 14, 2017
@sandy081
Copy link
Member

@isidorn I only see in Debug viewlet. Explorer is good for me

image

More strangely, out of sources, on same version of insiders, does not have this issue

image

@jrieken / @michelkaporin Anything to do with translations or nls?

@isidorn
Copy link
Contributor

isidorn commented Jun 15, 2017

I see the same as @sandy081 only for debug and only for insiders, not out of source
Translations is a good guess

@michelkaporin
Copy link
Contributor

@sandy081 translations are good, not sure about nls.

@sandy081
Copy link
Member

sandy081 commented Jun 15, 2017

Debugged and found that following is returning undefined

nls.localize('variables', "Variables")

image

Not sure what caused this

FYI
@michelkaporin and @dbaeumer for translations
@alexandrudima for nls

@alexdima
Copy link
Member

alexdima commented Jun 16, 2017

@joaomoreno At build time, it is expected that all nls.localize calls are patched, that's why the method expects idx to be an integer and it doesn't use defaultValue.

From @sandy081 screenshot it appears that one specific nls.localize call, i.e. nls.localize('variables', "Variables') is not picked up, nor patched at build time. I'm not sure how old the screenshot is w.r.t. to master, but on master the file has 13 externalized strings, and in the screenshot the file has only 9.

The following are also not picked up:

  • nls.localize('watch', "Watch")
  • nls.localize('callStack', "Call Stack")
  • nls.localize('breakpoints', "Breakpoints")

All four of them seem to share the same code pattern.

@joaomoreno
Copy link
Member

joaomoreno commented Jun 16, 2017

The nls patching was working on top of a quite old TypeScript language service (<2)... So when some new syntax came up (object spread), the patching failed to locate certain nls.localize calls. I'm actually surprised things worked thus far. I've updated it to use the same TypeScript version we depend on in the build tools.

@sandy081 Maybe we should build insiders for this?

@weinand weinand added the verified Verification succeeded label Jun 28, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants