tobiastimm / code-theme-converter

Convert any Visual Studio Code Theme to Sublime Text 3 or IntelliJ IDEA
MIT License
138 stars 11 forks source link

TypeError: Cannot read property 'id' of undefined #31

Closed yemreak closed 2 years ago

yemreak commented 3 years ago

Error at npm\node_modules\code-theme-converter\dist\idea\convert.js:81:49 while converting theme

I used this command: code2idea https://github.com/yedhrab/DarkCode-Theme.git

tobiastimm commented 3 years ago

I will take a look at code2idea next. Atm the sublime conversion was in my focus, but I will revisit the IDEA converter now. Thank you for reporting the issue!

Zaknarfen commented 3 years ago

I have the same error

Zaknarfen commented 3 years ago

I changed line 63 of the convert.js file to what shows in the image below and it seems to convert fine now.

image

tobiastimm commented 3 years ago

Since I'm not using the JetBrains IDEs on a daily basis, my time for digging into this is really limited. Can't tell you atm when this will be fixed

Zaknarfen commented 3 years ago

That change I made actually makes it work. I am using the Rider IDE from JetBrains and I could convert a color theme from VSCode to it. The only problem is that Rider won't recognize the files you generate with your library on import. I had to get a working color theme file (.icls file), open it with a text editor, and paste the contents of the theme .xml the library generated to me there.

In the end, I gave up because most of the colors were not translated to what I expected, so I had to manually create my theme. I was trying to get the Kimbie Dark from VSCode to Rider.