windows-terminal-tweaker icon indicating copy to clipboard operation
windows-terminal-tweaker copied to clipboard

JavaScript error on run

Open PrismaWeaver opened this issue 4 years ago • 12 comments

error reads:

Uncaught Exception: TypeError: Cannot read property 'toString' of undefined at ReadFileContext.callback (...\wind-unpacked\resources\app.asar\build\electron.js:47:47) at FSReqCallback.readFileAfterOpen [as oncomplete] (fs:js:247:13)

results in Terminal Tweaker running successfully, but there are no available options under each tab.

PrismaWeaver avatar Aug 27 '20 02:08 PrismaWeaver

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.94. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Aug 27 '20 02:08 issue-label-bot[bot]

confirmed

KrunchMuffin avatar Sep 01 '20 17:09 KrunchMuffin

Confirmed x2, same here.

creizlein avatar Sep 10 '20 03:09 creizlein

Also confirmed, no idea on a workaround.

dominic-ks avatar Sep 29 '20 12:09 dominic-ks

Same here Uncaught Exception: TypeError: Cannot read property 'toString' of undefined at ReadFileContext.callback (C:\Downloads\Terminal.Tweaker.Portable\win-unpacked\resources\app.asar\build\electron.js:47:47) at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:247:13)

umernalla avatar Feb 12 '21 14:02 umernalla

Confirmed here as well.

jhilker98 avatar Feb 15 '21 18:02 jhilker98

mostly the issue here is that microsoft have changed the location to their terminal configuration file and that's why its not able to find that file in the location which was there before.

i am having issues in booting up my windows machine currently. so it will take some time to set all this up. i plan to do it when i get some time.

Meanwhile , if anyone wants to open a PR, that would be very helpful. It will be a small change i think in this particular function :

https://github.com/nateshmbhat/windows-terminal-tweaker/blob/6df689a8579c1d094c2e7c58fb7fff2a28e5ad04/main/src/electron.ts#L33

nateshmbhat avatar Feb 24 '21 23:02 nateshmbhat

mostly the issue here is that microsoft have changed the location to their terminal configuration file and that's why its not able to find that file in the location which was there before.

i am having issues in booting up my windows machine currently. so it will take some time to set all this up. i plan to do it when i get some time.

Meanwhile , if anyone wants to open a PR, that would be very helpful. It will be a small change i think in this particular function :

https://github.com/nateshmbhat/windows-terminal-tweaker/blob/6df689a8579c1d094c2e7c58fb7fff2a28e5ad04/main/src/electron.ts#L33

I ran the code on my machine and it found a match, path seems correct, I think you only need to publish a new release.

enxg avatar Apr 19 '21 08:04 enxg

Unfortunately Microsoft has changed the format of the file now in latest versions.

I will have to do quite some changes to this to work. I will see if I can tweak this up some places to fix it.

nateshmbhat avatar Apr 19 '21 11:04 nateshmbhat

Any plans on resolving this issue? The tool is essentially useless....

andyrz avatar Dec 08 '21 14:12 andyrz

Not yet fixed, still reproduced that error, on windows 11. 2022-01-16 17_35_56-Error

binbard avatar Jan 16 '22 12:01 binbard

Bump

manusoftar avatar Feb 03 '22 00:02 manusoftar