You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gutterIconPath is not loading correctly in Insider release #12111
The image will not be loaded, and it will output an error in Developer Tools console
GET file:///C:/%5CUsers%5Calefr%5C.vscode-insiders%5Cextensions%5Calefragnani.Bookmarks-0.9.1%5Cimages%5Cbookmark.png net::ERR_FILE_NOT_FOUND
Unfortunattely, I'm also not able to debug in Insider release (this issue). Maybe something in gutterIconPath or Uri has changed and now the file is not being located?
We have hit the exact same issue. Works ok on OSX, but not on Windows.
The workaround we use for now in our extension is replacing backslashes with slashes:
gutterIconPath: pathIcon.split('\\').join('/'),
What's interesting is that the resource URIs didn't seem to change, so perhaps it's moving to the newer electron/v8 had broken it and URIs with encoded slashes don't work anymore.
Hi Artem Govorov (@ArtemGovorov) , that was my first attempt, with no success 😢 . Good to know that at least it fixes for OS X (and probably Linux). Thanks 👍
Uri.ts had some changes last month, but since I don't have a _debugabble source of VS Code` available, I can't check where is the problem.
I hope it to be fixed soon, or at least new tips for adapting to any new API.
that was my first attempt, with no success 😢 . Good to know that at least it fixes for OS X (and probably Linux).
That's not what I meant. I mean the original issue doesn't seem to affect OS X at all.
And the workaround that I suggested (gutterIconPath: pathIcon.split('\\').join('/'),) fixed it for us for all platforms, including Windows. Perhaps your case is different from ours if it doesn't work for you.
Also, as I said, the URI generation in our case didn't change, so I doubt it is the Uri issue. You may check it in your extension in Dev Tools:
In our case the icon URI on Windows in both cases (working in 1.5.2 and non-working in 1.6.0) is similar (just pointing to a different folder).
BUT, updating the code as you suggested, really worked!!! The difference? Your tip replaced the backslashes from the entire path, and not only the added piece. So, I have to add this line, right after that:
pathIcon=pathIcon.replace(/\\/g,"/");
Something related to path separator has changed internally (Uri, Decorator, I don't know), and now it's forced to use /, even context returning \\.
I believe the new electron version drags in a new node version where something changed with casing drive letters. We are seeing issues regarding this change everywhere.
Activity
ArtemGovorov commentedon Sep 17, 2016
We have hit the exact same issue. Works ok on OSX, but not on Windows.
The workaround we use for now in our extension is replacing backslashes with slashes:
What's interesting is that the resource URIs didn't seem to change, so perhaps it's moving to the newer electron/v8 had broken it and URIs with encoded slashes don't work anymore.
alefragnani commentedon Sep 17, 2016
Hi Artem Govorov (@ArtemGovorov) , that was my first attempt, with no success 😢 . Good to know that at least it fixes for OS X (and probably Linux). Thanks 👍
Uri.tshad some changes last month, but since I don't have a _debugabble source of VS Code` available, I can't check where is the problem.I hope it to be fixed soon, or at least new tips for adapting to any new API.
ArtemGovorov commentedon Sep 18, 2016
That's not what I meant. I mean the original issue doesn't seem to affect OS X at all.
And the workaround that I suggested (
gutterIconPath: pathIcon.split('\\').join('/'),) fixed it for us for all platforms, including Windows. Perhaps your case is different from ours if it doesn't work for you.Also, as I said, the URI generation in our case didn't change, so I doubt it is the
Uriissue. You may check it in your extension in Dev Tools:In our case the icon URI on Windows in both cases (working in 1.5.2 and non-working in 1.6.0) is similar (just pointing to a different folder).
alefragnani commentedon Sep 19, 2016
Ops, I read you tip but didn't see your tip 😞 .
I replaced
\\by/in the code below, and id didn't work:BUT, updating the code as you suggested, really worked!!! The difference? Your tip replaced the backslashes from the entire path, and not only the added piece. So, I have to add this line, right after that:
Something related to path separator has changed internally (Uri, Decorator, I don't know), and now it's forced to use
/, evencontextreturning\\.Thanks again 👍
alexdima commentedon Sep 20, 2016
I believe the new electron version drags in a new node version where something changed with casing drive letters. We are seeing issues regarding this change everywhere.
fyi Johannes Rieken (@jrieken) Benjamin Pasero (@bpasero) João Moreno (@joaomoreno) -- I'm not sure where we ended up with a systematic workaround the drive letter casing change?
This used to work fine before the new electron version:
On the main side I do:
18 remaining items
allow to define gutter and content icons paths as string OR uri, #12111
Revert "allow to define gutter and content icons paths as string OR u…
baby steps, #12111
gutterIconPath is string or Uri, #12111
Revert "gutterIconPath is string or Uri, #12111"
simpler, but less clean fix for #12111
take shortcut to fix microsoft#12111
Revert "take shortcut to fix microsoft#12111"