danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.82k stars 100 forks source link

Unable to open web browser. The process cannot access the file because it is being used by another process with 2.0.0 #119

Closed frederikhors closed 5 years ago

frederikhors commented 5 years ago

Description With update to 2.0.0 I get:

Unable to open web browser. The process cannot access the file because it is being used by another process.

Environment

nikolay-borzov commented 5 years ago

Is this the full message? There should be a filename inside the message

frederikhors commented 5 years ago
Unable to open web browser. The process cannot access the file because it is being used by another process.
Either run with --html, --json, --tsv, --file, or view HTML for the visualization at:
C:\Users\User\AppData\Local\Temp\sme-result-201956-6704-5eos05.h790e.html
nikolay-borzov commented 5 years ago

Cannot reproduce on Win 10. Could you try changing Temp folder location (through System Properties dialogue) to something like C:\Temp and try again?

Also, does file exist at the specified location C:\Users\User\AppData\Local\Temp\sme-result-201956-6704-5eos05.h790e.html?

frederikhors commented 5 years ago

Could you try changing Temp folder location (through System Properties dialogue) to something like C:\Temp and try again?

Same problem.

Also, does file exist at the specified location C:\Users\User\AppData\Local\Temp\sme-result-201956-6704-5eos05.h790e.html?

Yes. It is.

frederikhors commented 5 years ago

Is maybe Chrome the problem?

nikolay-borzov commented 5 years ago

Maybe. You could try another browser.

Additionally, you can write a small script to check that open lib works

const open = require('open');

open('C:\Users\User\AppData\Local\Temp\sme-result-201956-6704-5eos05.h790e.html')
frederikhors commented 5 years ago

Maybe. You could try another browser.

Additionally, you can write a small script to check that open lib works

const open = require('open');

open('C:\Users\User\AppData\Local\Temp\sme-result-201956-6704-5eos05.h790e.html')

I tried with:

Why?

nikolay-borzov commented 5 years ago

Perhaps there is an open file handler. Does 1.8.0 have the same issue?

frederikhors commented 5 years ago

Perhaps there is an open file handler. Does 1.8.0 have the same issue?

Nope. Everything works good with 1.8.0.

Just tested again.

nikolay-borzov commented 5 years ago

Try 2.0.1

frederikhors commented 5 years ago

Now it works. Magic! Thanks!