platformio / platformio-core

Your Gateway to Embedded Software Development Excellence :alien:
https://platformio.org
Apache License 2.0
7.87k stars 792 forks source link

Help wanted - PlatformIO will not render correctly in Atom environment #1737

Closed Mikeinnc closed 5 years ago

Mikeinnc commented 6 years ago

You can erase any parts of this template not applicable to your Issue.


Configuration

Windows7 Ultimate 64 bit

PlatformIO Version v3.6.0a7

Description of problem

Downloaded and installed Atom v1.28.2x64 with no problems. Installed Clang as requested and following instructions. Then added package Platformio from 'Install packages' tab. Package (v3.6.0a7) appeared to install correctly. Restarted Atm and opened PlatformIO home. Plainly obvious that PlatformIO is NOT rendering correctly in Atom - see attached image:

platformio_problem

Have tried reinstalling PlatformIO; reinstalling Atom and PlatformIO - always the same problem! Unable to do anything further (although Atom appears to be OK?). Any help or advice gratefully received!

Mikeinnc commented 6 years ago

Also tried uninstalling 64 bit version of Atom and reinstalling 32 bit version. Then reinstalled PlatformIO - exactly the same rendering problem, which makes PlatformIO totally unusable.

ivankravets commented 6 years ago

Please try to remove %HOME_DIR%/.platformio/packages folder and restart IDE

Mikeinnc commented 6 years ago

Thanks for your advice. I did exactly as you suggested - got a dialog telling me PlatformIO core was 'downloading' and to be 'patient while PlatformIO installed' - which I was.....and have exactly the same problem! Closed machine down; rebooted and still the same issue. Everything else in Atom appears to work correctly - text renders correctly. Just PlatformIO is totally unusable. Any other advice is welcome!! Thanks - Mike

ivankravets commented 6 years ago

Please open PIO IDE Terminal and type pio home. Does it work in your browser?

Mikeinnc commented 6 years ago

Hello Ivan - thanks for the advice. Unfortunately, the answer is no - it doesn't render correctly in a browser. I tried Chrome; Firefox; Opera; Vivaldi and SeaMonkey and they all look the same as the picture I sent. IEv11 was interesting - nothing showed at all! Blank screen! (That's leaving Atom open with the terminal command having run and the line 'PlatformIO Plus (https://pioplus.com) v1.4.0' and a 'little house' showing - and putting 127.0.0.1:8008 in URL field). But - I never use IE so maybe that's a red herring? One thing - the first time I used the terminal command, a red dialog appeared in the top rh corner telling me to 'remove /.platformio/packages/tool-pioplus/pioplus.exe'. I had to close Atom, of course, to do that, but it hasn't reappeared and doesn't seem to have made any difference? Unfortunately, I didn't grab a pic of the dialog. This is strange - it works fine on my laptop which is also Win 7.

ivankravets commented 6 years ago

We have just released new PIO Core+ and PIO Home. Please open IDE Terminal and type

pio upgrade --dev
pio update

Next. If you still have this issue, please open this URL in Chrome, then "Chrome > More tools > Developer Tools > Console". Do you see any errors?

Mikeinnc commented 6 years ago

Hello Ivan - Still the same, unfortunately, even after upgrading / updating as suggested. If I try to open in Chrome using the 'pio home' response you advised before, I get the following comment in console:

(index):39 Resource interpreted as Stylesheet but transferred with MIME type application/x-css: "http://127.0.0.1:8008/themes/platformio-dark.css".

With my limited knowledge, this would appear to be significant? I really appreciate your help with this!

On 17 July 2018 at 23:17, Ivan Kravets notifications@github.com wrote:

We have just released new PIO Core+ and PIO Home. Please open IDE Terminal and type

pio upgrade --dev pio update

Next. If you still have this issue, please open this URL in Chrome, then "Chrome > More tools > Developer Tools > Console". Do you see any errors?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-core/issues/1737#issuecomment-405620063, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFflu7QGzaP7J-Zb_ktJ8PIUt8IZzwjks5uHgASgaJpZM4VPsyK .

-- Mike Weaver

Mikeinnc commented 6 years ago

Just as an aside, I have just installed a new instance of Atom and PlatformIO on a Windows10 computer, and it is working perfectly! There must be an issue with my other computer that transcends all browsers - I now have it on 3 computers and it works on 2! Hope this helps? Regards - Mike

On 17 July 2018 at 23:17, Ivan Kravets notifications@github.com wrote:

We have just released new PIO Core+ and PIO Home. Please open IDE Terminal and type

pio upgrade --dev pio update

Next. If you still have this issue, please open this URL in Chrome, then "Chrome > More tools > Developer Tools > Console". Do you see any errors?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-core/issues/1737#issuecomment-405620063, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFflu7QGzaP7J-Zb_ktJ8PIUt8IZzwjks5uHgASgaJpZM4VPsyK .

-- Mike Weaver

ivankravets commented 6 years ago

Please open %USER_HOME%/.platformio/packages/contrib-piohome/index.html file and remove line 38 with link.rel = 'stylesheet';. Close IDE. Restart. Does it work now?

Mikeinnc commented 6 years ago

Thanks again, Ivan. Tried that - but unfortunately, still the same problem. However, when I tried to open it in Chrome, with console active, I didn't get an error message - just the same 'non-rendered' page. This is really weird - I don't have any problems with other pages in browsers?

Thanks for your efforts, though - really appreciated!

Mike

On 18 July 2018 at 18:51, Ivan Kravets notifications@github.com wrote:

Please open %USER_HOME%/.platformio/packages/contrib-piohome/index.html file and remove line 38 with link.rel = 'stylesheet';. Close IDE. Restart. Does it work now?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-core/issues/1737#issuecomment-405891024, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFfltu6Lxrr0miKOoqScpZgGWM-j0Zrks5uHxMzgaJpZM4VPsyK .

-- Mike Weaver

ivankravets commented 6 years ago

We've deployed new PIO Home recently. Could you try pio update in PlatformIO IDE Terminal and restart IDE? Did it help?

Mikeinnc commented 6 years ago

Hello Ivan - Sorry for the delay in answering. I've tried updating - still the same. Shows:

in browser.

It must be something specific with this particular machine - I don't have this problem on either a Win 7 laptop or a Win 10 laptop. Yet, this - desktop - has by far the 'best' platform of the three - fastest processor; most memory; best graphics etc etc. And - NOTHING else EVER shows a problem! Browsers are accurate and responsive. Multiple software packages work without a flaw. It's really weird!! But - I really appreciate your perseverance! Thanks!

On 27 July 2018 at 06:30, Ivan Kravets notifications@github.com wrote:

We've deployed new PIO Home recently. Could you try pio update in PlatformIO IDE Terminal and restart IDE? Did it help?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-core/issues/1737#issuecomment-408255072, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFfliXccQ7BqCdiTJdFNs0BOqteMPVFks5uKkMTgaJpZM4VPsyK .

-- Mike Weaver

ivankravets commented 6 years ago

Do you have antivirus software in a system? Maybe, some tools block local requests.

derasd commented 6 years ago

Same problem here. No AV.

ivankravets commented 6 years ago

@derasd what is your OS?

derasd commented 6 years ago

Win 7 Professional

Mikeinnc commented 6 years ago

As is mine. AV is Sophos Professional. Used on all machines running Windows with no problems. Such a weird problem!

ivankravets commented 6 years ago

Sorry, could someone explain me which software causes this issue? Thanks!

Mikeinnc commented 6 years ago

Ivan, I wish I could because then the problem would be solved! I have two machines running with Windows 7 Professional. One a laptop - one a desktop. They both use much the same software - same browsers; same AV software; same process monitoring software etc. On the laptop - PIO works perfectly. On the desktop - said problem with PIO just not rendering. Laptop has Intel processor; Desktop is AMD - not that that should make a scrap of difference. On both, everything else works perfectly. OK, the desktop has 12GB of RAM so things sometimes work slightly "better" - video editing etc

On Sun, 12 Aug 2018 at 22:29, Ivan Kravets notifications@github.com wrote:

Sorry, could someone explain me which software causes this issue? Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-core/issues/1737#issuecomment-412346654, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFflrl4UTR8tQxH4_xVT-89SSTh-80iks5uQDu7gaJpZM4VPsyK .

-- Mike Weaver

rkrasin commented 6 years ago

Hi @Mikeinnc,

can you please try to run Atom with --disable-gpu flag and check if that fixes the issue?

Mikeinnc commented 6 years ago

Still the same, I'm afraid! I also completely removed every trace of Atom I could find on the machine, and reinstalled a new instance of v1.29 64bit. Sorry to say - same issue! PIO just will not render - in Atom or in a browser. Thanks for your ongoing help!!

Mike

On Mon, 13 Aug 2018 at 08:51, Ivan Krasin notifications@github.com wrote:

Hi @Mikeinnc https://github.com/Mikeinnc,

can you please try to run Atom with --disable-gpu flag and check if that fixes the issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-core/issues/1737#issuecomment-412383868, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFfljOGeRUEutGmrftmdQ8W1qLbcaYwks5uQM10gaJpZM4VPsyK .

-- Mike Weaver

SylvainVanIniitu commented 6 years ago

it seems to be the same issue i had ( https://community.platformio.org/t/error-in-the-display-of-platformio-home/3678/12 ) and couldnt resolve even after uninstalling/reinstalling all. i'm also on Windows 7. AV : Avast

Mikeinnc commented 5 years ago

I realise that this issue has probably dropped off the radar - and to be honest, as I have an alternative - working - Atom instance on another computer, I sort-of gave up on this. However, in the last couple of weeks, I have had to completely rebuild the computer that had this issue after a major MB failure. New motherboard (well, s/h really and carefully removed from my wife's computer!!); new video card (Nvidia vs AMD) but original os - obviously modified for the new components. As I had always assumed that the previous video system may have been responsible for the issue, after I got the system working and stable, I thought I'd try Atom and PlatformIO again. Seems I was horribly wrong - still exactly the same problem with PIO just not rendering correctly at all. So, I guess I can discard the video subsystem as the possible cause of the problem! Any further comments since the last? It would, I admit be good to see this work as this computer is fast and has plenty of memory and disc space. Or is it a forlorn hope........? Thanks as always! - Mike platformio_problem

ivankravets commented 5 years ago

Could someone provide me a TeamViewer session and send ID/Pass to me@ikravets.com? I'll try to debug this issue. Thanks!

fmalekpour commented 5 years ago

Issue still exists, I managed a workaround by editing .platformio\packages\contrib-pysite\twisted\web\static.py, around line 150, defined the mimetype of css, so it will be something like this:

mimetypes.types_map.update({ '.conf': 'text/plain', '.diff': 'text/plain', '.flac': 'audio/x-flac', '.java': 'text/plain', '.oz': 'text/x-oz', '.swf': 'application/x-shockwave-flash', '.wml': 'text/vnd.wap.wml', '.xul': 'application/vnd.mozilla.xul+xml', '.patch': 'text/plain', '.css': 'text/css' } )

ivankravets commented 5 years ago

Could you open your PIO IDE Terminal and type

python -c "import mimetypes; mimetypes.init(); print mimetypes.types_map"

Do you see '.css': 'text/css' in this dictionary?

fmalekpour commented 5 years ago

I did, here is the result:

{'.obj': 'application/octet-stream', '.zxp': 'application/x-mmxp', '.f4v': 'video/mp4', '.mrw': 'image/MRW', '.raw': 'image/RAW', '.wsc': 'text/scriptlet', '.ras': 'image/x-cmu-raster', '.ram': 'application/x-pn-realaudio', '.3gpp': 'video/3gpp', '.raf': 'image/RAF', '.fcdt': 'application/vnd.adobe.formscentral.fcdt', '.website': 'application/x-mswebsite', '.bmp': 'image/bmp', '.dvi': 'application/x-dvi', '.aif': 'audio/aiff', '.pdx': 'application/vnd.adobe.pdx', '.adts': 'audio/vnd.dlna.adts', '.p10': 'application/pkcs10', '.csv': 'application/vnd.ms-excel', '.p12': 'application/x-pkcs12', '.css': 'text/plain', '.csh': 'application/x-csh', '.pdf': 'application/pdf', '.pl': 'text/plain', '.htc': 'text/x-component', '.hta': 'application/hta', '.py': 'text/plain', '.xml': 'text/xml', '.ps': 'application/postscript', '.htm': 'text/html', '.fif': 'application/fractals', '.tsv': 'text/tab-separated-values', '.xlm': 'application/vnd.ms-excel', '.au': 'audio/basic', '.sit': 'application/x-stuffit', '.cat': 'application/vnd.ms-pki.seccat', '.mp4v': 'video/mp4', '.ief': 'image/ief', '.texinfo': 'application/x-texinfo', '.xaml': 'application/xaml+xml', '.wax': 'audio/x-ms-wax', '.ec3': 'audio/ec3', '.exe': 'application/x-msdownload', '.library-ms': 'application/windows-library+xml', '.rat': 'application/rat-file', '.ade': 'application/msaccess', '.vssx': 'application/vnd.ms-visio.viewer', '.vssm': 'application/vnd.ms-visio.viewer', '.adp': 'application/msaccess', '.mpeg': 'video/mpeg', '.adt': 'audio/vnd.dlna.adts', '.sgml': 'text/x-sgml', '.spc': 'application/x-pkcs7-certificates', '.spl': 'application/futuresplash', '.bat': 'text/plain', '.emf': 'image/x-emf', '.eml': 'message/rfc822', '.bcpio': 'application/x-bcpio', '.m2t': 'video/vnd.dlna.mpeg-tts', '.m2v': 'video/mpeg', '.arw': 'image/ARW', '.wav': 'audio/wav', '.mxp': 'application/x-mmxp', '.xbm': 'image/x-xbitmap', '.txt': 'text/plain', '.jxr': 'image/vnd.ms-photo', '.ts': 'video/vnd.dlna.mpeg-tts', '.tr': 'application/x-troff', '.dng': 'image/DNG', '.dotx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', '.dotm': 'application/vnd.ms-word.template.macroEnabled.12', '.ols': 'application/vnd.ms-publisher', '.3gp2': 'video/3gpp2', '.etx': 'text/x-setext', '.movie': 'video/x-sgi-movie', '.appcontent-ms': 'application/windows-appcontent+xml', '.png': 'image/png', '.mhtml': 'message/rfc822', '.tar': 'application/x-tar', '.nrw': 'image/NRW', '.pns': 'image/pns', '.wvx': 'video/x-ms-wvx', '.pef': 'image/PEF', '.cer': 'application/x-x509-ca-cert', '.wsdl': 'application/xml', '.xesc': 'video/xesc', '.crw': 'image/CRW', '.rw2': 'image/RW2', '.pgm': 'image/x-portable-graymap', '.vsdx': 'application/vnd.ms-visio.viewer', '.tts': 'video/vnd.dlna.mpeg-tts', '.crl': 'application/pkix-crl', '.vsdm': 'application/vnd.ms-visio.viewer', '.m1v': 'video/mpeg', '.lpcm': 'audio/l16', '.avi': 'video/avi', '.wdp': 'image/vnd.ms-photo', '.aaui': 'application/vnd.adobe.acrobat.aaui+xml', '.mht': 'message/rfc822', '.wma': 'audio/x-ms-wma', '.wmf': 'image/x-wmf', '.cr2': 'image/CR2', '.wmz': 'application/x-ms-wmz', '.wmx': 'video/x-ms-wmx', '.pwz': 'application/vnd.ms-powerpoint', '.ics': 'text/calendar', '.nef': 'image/NEF', '.xlsm': 'application/vnd.ms-excel.sheet.macroEnabled.12', '.wmv': 'video/x-ms-wmv', '.ac3': 'audio/vnd.dolby.dd-raw', '.jsxinc': 'text/plain', '.php5': 'text/plain', '.php4': 'text/plain', '.jpeg': 'image/jpeg', '.gtar': 'application/x-gtar', '.p7m': 'application/pkcs7-mime', '.nws': 'message/rfc822', '.p7c': 'application/pkcs7-mime', '.p7b': 'application/x-pkcs7-certificates', '.mts': 'video/vnd.dlna.mpeg-tts', '.der': 'application/x-x509-ca-cert', '.p7s': 'application/pkcs7-signature', '.p7r': 'application/x-pkcs7-certreqresp', '.hxk': 'application/xml', '.eps': 'application/postscript', '.adobebridge': 'application/x-bridge-url', '.hxd': 'application/octet-stream', '.tex': 'application/x-tex', '.osdx': 'application/opensearchdescription+xml', '.rtx': 'text/richtext', '.sst': 'application/vnd.ms-pki.certstore', '.hxa': 'application/xml', '.fdf': 'application/vnd.fdf', '.gif': 'image/gif', '.mod': 'video/mpeg', '.rtf': 'application/msword', '.scss': 'text/plain', '.mov': 'video/quicktime', '.xhtml': 'application/xhtml+xml', '.vdw': 'application/vnd.ms-visio.viewer', '.qt': 'video/quicktime', '.vdx': 'application/vnd.ms-visio.viewer', '.sv4cpio': 'application/x-sv4cpio', '.ppdf': 'application/vnd.ppdf', '.mpv2': 'video/mpeg', '.wiz': 'application/msword', '.vcf': 'text/x-vcard', '.json': 'application/json', '.tpl': 'text/plain', '.pnm': 'image/x-portable-anymap', '.midi': 'audio/mid', '.tiff': 'image/tiff', '.texi': 'application/x-texinfo', '.oda': 'application/oda', '.ustar': 'application/x-ustar', '.odc': 'text/x-ms-odc', '.odt': 'application/vnd.oasis.opendocument.text', '.3g2': 'video/3gpp2', '.odp': 'application/vnd.oasis.opendocument.presentation', '.ods': 'application/vnd.oasis.opendocument.spreadsheet', '.tod': 'video/mpeg', '.mpo': 'image/mpo', '.mpa': 'audio/mpeg', '.mpg': 'video/mpeg', '.mpe': 'video/mpeg', '.pot': 'application/vnd.ms-powerpoint', '.iqy': 'text/x-ms-iqy', '.ppsx': 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', '.3gp': 'video/3gpp', '.ppsm': 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', '.webm': 'video/webm', '.weba': 'audio/webm', '.pko': 'application/vnd.ms-pki.pko', '.pfx': 'application/x-pkcs12', '.m4a': 'audio/mp4', '.jnlp': 'application/x-java-jnlp-file', '.sldx': 'application/vnd.openxmlformats-officedocument.presentationml.slide', '.m4v': 'video/mp4', '.swf': 'application/x-shockwave-flash', '.mp3': 'audio/mpeg', '.mp2': 'audio/mpeg', '.sldm': 'application/vnd.ms-powerpoint.slide.macroEnabled.12', '.gz': 'application/x-gzip', '.mp4': 'video/mp4', '.thmx': 'application/vnd.ms-officetheme', '.ra': 'audio/x-pn-realaudio', '.ppam': 'application/vnd.ms-powerpoint.addin.macroEnabled.12', '.mkv': 'video/x-matroska', '.gitignore': 'text/plain', '.hqx': 'application/mac-binhex40', '.mka': 'audio/x-matroska', '.prf': 'application/pics-rules', '.doc': 'application/msword', '.shar': 'application/x-shar', '.ksh': 'text/plain', '.acrobatsecuritysettings': 'application/vnd.adobe.acrobat-security-settings', '.dot': 'application/msword', '.vbproj': 'Application/xml', '.xltm': 'application/vnd.ms-excel.template.macroEnabled.12', '.hxv': 'application/xml', '.hxw': 'application/octet-stream', '.hxt': 'application/xml', '.hxr': 'application/octet-stream', '.hxs': 'application/octet-stream', '.hxq': 'application/octet-stream', '.ico': 'image/x-icon', '.hxh': 'application/octet-stream', '.hxi': 'application/octet-stream', '.hxf': 'application/xml', '.slk': 'application/vnd.ms-excel', '.hxe': 'application/xml', '.hxc': 'application/xml', '.cdf': 'application/x-netcdf', '.ai': 'application/postscript', '.epub': 'application/epub+zip', '.hdf': 'application/x-hdf', '.xpdl': 'application/xml', '.src': 'application/x-wais-source', '.srw': 'image/SRW', '.jsxbin': 'text/plain', '.pbm': 'image/x-portable-bitmap', '.accde': 'application/msaccess.exec', '.accdc': 'application/msaccess.cab', '.accdb': 'application/msaccess', '.accda': 'application/msaccess.addin', '.onepkg': 'application/msonenote', '.t': 'application/x-troff', '.accdw': 'application/msaccess.webapplication', '.accdt': 'application/msaccess.template', '.accdr': 'application/msaccess.runtime', '.rqy': 'text/x-ms-rqy', '.aiff': 'audio/aiff', '.aifc': 'audio/aiff', '.sr2': 'image/SR2', '.crt': 'application/x-x509-ca-cert', '.flv': 'video/x-flv', '.flm': 'application/flm', '.jfif': 'image/jpeg', '.appv': 'application/x-appv', '.one': 'application/msonenote', '.sol': 'text/plain', '.ppw': 'text/plain', '.ppt': 'application/vnd.ms-powerpoint', '.pps': 'application/vnd.ms-powerpoint', '.ppm': 'image/x-portable-pixmap', '.ppj': 'text/plain', '.latex': 'application/x-latex', '.sor': 'text/plain', '.pdfxml': 'application/vnd.adobe.pdfxml', '.ppa': 'application/vnd.ms-powerpoint', '.xrm-ms': 'text/xml', '.mp2v': 'video/mpeg', '.xdp': 'application/vnd.adobe.xdp+xml', '.tcl': 'application/x-tcl', '.application': 'application/x-ms-application', '.ms': 'application/x-troff-ms', '.rgb': 'image/x-rgb', '.me': 'application/x-troff-me', '.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', '.xlsb': 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', '.accountpicture-ms': 'application/windows-accountpicture', '.svg': 'image/svg+xml', '.roff': 'application/x-troff', '.orf': 'image/ORF', '.xbap': 'application/x-ms-xbap', '.jsx': 'text/plain', '.uvu': 'video/vnd.dece.mp4', '.man': 'application/x-troff-man', '.group': 'text/x-ms-group', '.pyc': 'application/x-python-code', '.pyo': 'application/x-python-code', '.dds': 'image/vnd.ms-dds', '.cpio': 'application/x-cpio', '.pyw': 'text/plain', '.gitattributes': 'text/plain', '.m2ts': 'video/vnd.dlna.mpeg-tts', '.dll': 'application/x-msdownload', '.sct': 'text/scriptlet', '.msepub': 'application/epub+zip', '.xfdf': 'application/vnd.adobe.xfdf', '.xwd': 'image/x-xwindowdump', '.xlam': 'application/vnd.ms-excel.addin.macroEnabled.12', '.aac': 'audio/vnd.dlna.adts', '.vsto': 'application/x-ms-vsto', '.vstm': 'application/vnd.ms-visio.viewer', '.js': 'application/javascript', '.vstx': 'application/vnd.ms-visio.viewer', '.shtml': 'text/html', '.tgz': 'application/x-compressed', '.jps': 'image/jps', '.potm': 'application/vnd.ms-powerpoint.template.macroEnabled.12', '.jpe': 'image/jpeg', '.mde': 'application/msaccess', '.jpg': 'image/jpeg', '.mdb': 'application/msaccess', '.mda': 'application/msaccess', '.contact': 'text/x-ms-contact', '.potx': 'application/vnd.openxmlformats-officedocument.presentationml.template', '.zip': 'application/x-zip-compressed', '.vss': 'application/vnd.ms-visio.viewer', '.xpm': 'image/x-xpixmap', '.vst': 'application/vnd.ms-visio.viewer', '.vsx': 'application/vnd.ms-visio.viewer', '.asx': 'video/x-ms-asf', '.asf': 'video/x-ms-asf', '.vsd': 'application/vnd.ms-visio.viewer', '.csproj': 'Application/xml', '.rwl': 'image/RWL', '.sh': 'application/x-sh', '.xlk': 'application/vnd.ms-excel', '.xll': 'application/vnd.ms-excel', '.so': 'application/octet-stream', '.xlb': 'application/vnd.ms-excel', '.xla': 'application/vnd.ms-excel', '.xld': 'application/vnd.ms-excel', '.wbk': 'application/msword', '.xls': 'application/vnd.ms-excel', '.xlw': 'application/vnd.ms-excel', '.xlt': 'application/vnd.ms-excel', '.pub': 'application/vnd.ms-publisher', '.html': 'text/html', '.sgm': 'text/x-sgml', '.tif': 'image/tiff', '.rmi': 'audio/mid', '.rmf': 'application/vnd.adobe.rmf', '.rdf': 'application/xml', '.xsl': 'text/xml', '.nc': 'application/x-netcdf', '.dtcp-ip': 'application/x-dtcp1', '.bin': 'application/octet-stream', '.ismv': 'video/ismv', '.erf': 'image/ERF', '.h': 'text/plain', '.pptm': 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', '.php': 'text/plain', '.o': 'application/octet-stream', '.psc1': 'application/PowerShell', '.a': 'application/octet-stream', '.c': 'text/plain', '.z': 'application/x-compress', '.xltx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', '.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation', '.vtx': 'application/vnd.ms-visio.viewer', '.wpl': 'application/vnd.ms-wpl', '.awf': 'application/vnd.adobe.workflow', '.dvr-ms': 'video/x-ms-dvr', '.accft': 'application/msaccess.ftemplate', '.docm': 'application/vnd.ms-word.document.macroEnabled.12', '.WMD': 'application/x-ms-wmd', '.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', '.sv4crc': 'application/x-sv4crc', '.gitmodules': 'text/plain', '.kdc': 'image/KDC', '.mid': 'audio/mid', '.mif': 'application/x-mif', '.xht': 'application/xhtml+xml', '.dib': 'image/bmp', '.m3u': 'audio/x-mpegurl', '.wm': 'video/x-ms-wm', '.searchConnector-ms': 'application/windows-search-connector+xml', '.flac': 'audio/x-flac', '.snd': 'audio/basic'}

Note this '.css': 'text/plain'

ivankravets commented 5 years ago

I see. What is your Python version? Is it an official installation? What is your OS?

So, I did patching of mimetypes on our side. Could you open PlatformIO IDE Terminal and type pio update. Close IDE. Start IDE.

Does it work now without your hacks?

fmalekpour commented 5 years ago

It's Python 2.7.13. Official install on VSCode, OS is the latest Windows 10 x64.

I did the update, removed my workaround and confirmed that it works properly now.

ivankravets commented 5 years ago

@fmalekpour thank you so much for your investigation and a hint. This is why I love our community ❤️

Happy coding with PlatformIO!

SylvainVanIniitu commented 5 years ago

Yes, fixed here as well, thanks!!!

Le jeu. 9 mai 2019 à 12:57, Ivan Kravets notifications@github.com a écrit :

Closed #1737 https://github.com/platformio/platformio-core/issues/1737.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-core/issues/1737#event-2329877930, or mute the thread https://github.com/notifications/unsubscribe-auth/AI3HQ5KXQ5K3NS45J3SH5OTPUP7Q3ANCNFSM4FJ6ZSFA .