Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apparent bug in composing a file path on Windows OS #2

Open
ghost opened this issue Nov 15, 2020 · 0 comments
Open

Apparent bug in composing a file path on Windows OS #2

ghost opened this issue Nov 15, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 15, 2020

I fixed an apparent bug in composing a file path on Windows OS 8.
######################
How to fix the apparent bug
######################
Open the file, pkg/functions_lib.js
Replace, line 162 with:

let __dirname = path.dirname(new URL(import.meta.url).pathname);
__dirname=__dirname.substr(1);
console.log(__dirname);

########################
How to make the apparent bug to occur
########################
Run

$ deno run --allow-read --allow-net --allow-env --unstable deno/server.ts
error: Uncaught Error: ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。 (os error 123)
    at processResponse (core.js:224:13)
    at Object.jsonOpSync (core.js:248:12)
    at Object.readDirSync (deno:cli/rt/30_fs.js:109:12)
    at new Context (snapshot_preview1.ts:310:41)
    at file:///O:/OneDrive/Git/IT/ProgramFiles_/rust/deno/ssvm-deno-starter-master/pkg/functions_lib.js:164:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants