profile
viewpoint
John Guo gjuoun Halifax, NS, Canada www.linkedin.com/in/junguoio/ New grad. Open Source Contributor.

gjuoun/deno-starter 1

Deno starter template with default debug config for VSCode

gjuoun/generator-deno-starter 1

Deno starter bundle with VScode debug and nodemon configuration

gjuoun/oak-query-parser 1

A query parameter parsing middleware for oka framework (Deno)

churchinhalifax/churchinhalifax.com 0

redirect to churchinhalifax.org

push eventgjuoun/scala-playground

gjuoun

commit sha 9650d3cb940c15a4a6222ad870c7e68503d7cf87

io done

view details

push time in 9 hours

push eventgjuoun/scala-playground

gjuoun

commit sha f4cbe02ddc0003f8c35a04a66ac136fbfcdc6f42

Collection -> list

view details

push time in 10 hours

push eventgjuoun/www.newchinatownhalifax.com

gjuoun

commit sha 0e52edc42865067a3987eeb136fbe736bd51161d

change operation time

view details

push time in 13 hours

create barnchgjuoun/scala-playground

branch : master

created branch time in 14 hours

created repositorygjuoun/scala-playground

created time in 14 hours

push eventgjuoun/leetcode-tdd-ts

gjuoun

commit sha 356de10eb9dac21a1cb11dffed89ac05db252f03

rewrite vars

view details

push time in 2 days

push eventgjuoun/url-shortener-api

John Guo

commit sha ce63ef7b304ac857efdeff8e488340eda9fbe378

rename model

view details

John Guo

commit sha 47ac6f69d357cc4211bec6b7c98d992b0ca986f1

use res.redirect

view details

John Guo

commit sha 9c487350aeaffa9df582e3f912531428ee159b54

fix LinkMode name

view details

push time in 3 days

push eventdeligenius/view-engine

John Guo

commit sha a5a88695cff64dac5db6cc903ce1ae69b9930371

noting to update

view details

push time in 3 days

issue openeddenoland/deno

Failed to find files when import ts files in js (Ubuntu)

OS: Ubuntu 20.04 LTS

Code1 denjucks:

// @deno-types="https://deno.land/x/denjucks/mod.d.ts"
import denjucks from "https://deno.land/x/denjucks/mod.js";

console.log(
    denjucks.renderString("hello {{ txt }}", {txt: "world"})
);

Code2 view-engine:

// /app.ts
import { Application } from "https://deno.land/x/oak@v5.3.1/mod.ts";
import {
  viewEngine,
  engineFactory,
  adapterFactory,
} from "https://deno.land/x/view_engine@v1.2.0/mod.ts";

const ejsEngine = engineFactory.getEjsEngine();
const oakAdapter = adapterFactory.getOakAdapter();

const app = new Application();

app.use(viewEngine(oakAdapter, ejsEngine));

app.use(async (ctx, next) => {
  ctx.render("index.ejs", { data: { name: "John" } });
});

await app.listen({ port: 8000 });
<!--./index.ejs-->
<body>
  <h1><%=data.name%></h1>
</body>

Error

Both Code1 and Code2 have the same error:

error: Failed to get compiled source code of https://deno.land/std@0.59.0/path/mod.ts.
Reason: No such file or directory (os error 2)

Observation

denjucks is written in JS, and view-engine includes a port version of ejs, which is also written in JS. As the error is related to the import of path module, so I've checked the source code of denjucks and view-engine, I all the path imports are being used by JS files.

Here is where I found all the path imports:

Denjucks case

the import includes path:

  • https://deno.land/x/denjucks/src/deps.js#L1

is being used by

  • https://deno.land/x/denjucks/src/environment.js#L3
  • https://deno.land/x/denjucks/src/environment.js#L3
  • ... and more
View-engine case

the import includes path:

  • https://deno.land/x/view_engine/deps.ts#L5

is being used by

  • https://deno.land/x/view_engine/lib/engines/ejs/ejs.js#L47

Conclusion

  • Deno failed to find files when import ts in js files.
  • Only happens in Ubuntu (test passed in Windows 10 and macOS)

created time in 3 days

issue commentdeligenius/view-engine

error: Failed to get compiled source code of https://deno.land/std@0.59.0/fs/mod.ts. Reason: The system cannot find the path specified. (os error 3)

Tests passed in macOS and Windows 10 but failed in ubuntu. I assume it's Deno's compiler problem. Further investigation is needed.

avudaiappan-cse

comment created time in 3 days

push eventdeligenius/view-engine

John Guo

commit sha b310245e43d899048721896d052f5b15302da504

Update CI.yml

view details

push time in 3 days

push eventdeligenius/view-engine

John Guo

commit sha 45623730127ed16feca820191c536422dfd64002

Update CI.yml

view details

push time in 3 days

push eventdeligenius/view-engine

John Guo

commit sha 5954f3bf0f49e2904727b395b1797df166bf572e

Create CI.yml

view details

push time in 3 days

push eventdeligenius/view-engine

gjuoun

commit sha ef57968be84aed8a866d6c556a436b64c4caa67c

update readme version

view details

push time in 3 days

push eventdeligenius/view-engine

gjuoun

commit sha 0ff656a0832c9c6533863240252ac8e8b3bc0e07

make it compatible to the latest version of oak

view details

push time in 3 days

push eventdeligenius/view-engine

gjuoun

commit sha c9d74c310198c45ebd07ad8ead113f309ea67914

update readme version string

view details

push time in 3 days

issue commentdeligenius/view-engine

error: Failed to get compiled source code of https://deno.land/std@0.59.0/fs/mod.ts. Reason: The system cannot find the path specified. (os error 3)

Ok, as release v1.2.0 mentioned, the view-engine v1.2.0 is bounded to oak v5.3.1

Please use it as follow

// app.ts
import { Application } from "https://deno.land/x/oak@v5.3.1/mod.ts";
import {
  viewEngine,
  engineFactory,
  adapterFactory,
} from "https://deno.land/x/view_engine@v1.2.0/mod.ts";

//... your code
avudaiappan-cse

comment created time in 3 days

issue commentdeligenius/view-engine

error: Failed to get compiled source code of https://deno.land/std@0.59.0/fs/mod.ts. Reason: The system cannot find the path specified. (os error 3)

I suspect that deno official website it's broken again.

Need to find an alternative package source.

avudaiappan-cse

comment created time in 4 days

push eventdeligenius/view-engine

gjuoun

commit sha c0ceaa4704b19413ebb4850e5649a20f081d5538

remove badges and actions

view details

gjuoun

commit sha 58dddaa4b7b8e1bbb5480265cc842c6668235bd0

remove

view details

push time in 5 days

push eventdeligenius/view-engine

John Guo

commit sha ebf1daad055e95d4b178c039c1bf6bcd1a1a5181

Update CI.yml

view details

push time in 5 days

push eventdeligenius/view-engine

John Guo

commit sha 686c3f9857a31de9ab05b266239c10358a2df582

Update CI.yml

view details

push time in 5 days

push eventdeligenius/view-engine

gjuoun

commit sha 3224bdb1d1bac1d5b0c4d7ba5e666523af8827e0

remove redundant files

view details

push time in 5 days

push eventdeligenius/view-engine

gjuoun

commit sha 72e92cb951f8f9938579d3a3ea2814871cef4232

stick to oak@v5.2.0

view details

push time in 5 days

push eventdeligenius/view-engine

John Guo

commit sha 5d7c06e874c3704245466c6d6870e75368b93771

Update CI.yml

view details

push time in 5 days

push eventdeligenius/view-engine

John Guo

commit sha 63417b7a3e24f8624b62844e5948c3247e468bdb

Update CI.yml

view details

push time in 5 days

push eventdeligenius/view-engine

John Guo

commit sha d01ea38cd0964563d20d338b990c4e895ee1fdd8

Create CI.yml

view details

push time in 5 days

starteddenolib/setup-deno

started time in 5 days

push eventgjuoun/generator-deno-starter

gjuoun

commit sha 52c3c1796b7ae06e9fea24c732a459f42e3d04f6

use sync

view details

gjuoun

commit sha 06f0d9ce6cabbcbf9bf60abb3099fe3aca36a4b4

update version

view details

push time in 5 days

push eventgjuoun/generator-deno-starter

gjuoun

commit sha 724706ba17b53c7967d7086f5e184e842587be01

switch to denon

view details

gjuoun

commit sha 9a1007228883a15c64fe229301a90ccd5a08c41a

Merge branch 'master' of https://github.com/gjuoun/generator-deno-starter

view details

push time in 5 days

delete branch deligenius/view-engine

delete branch : add-license-1

delete time in 5 days

delete branch deligenius/view-engine

delete branch : fixed_version2

delete time in 5 days

delete branch deligenius/view-engine

delete branch : fixed_version

delete time in 5 days

issue commentdeligenius/view-engine

EJS template Include statement fails to locate file

Fixed at https://github.com/deligenius/view-engine/releases/tag/v1.2.0

jpeterse

comment created time in 5 days

created tagdeligenius/view-engine

tagv1.2.0

🚀A Template View Engine for Deno frameworks

created time in 5 days

release deligenius/view-engine

v1.2.0

released time in 5 days

create barnchdeligenius/view-engine

branch : fixed_version2

created branch time in 5 days

push eventdeligenius/view-engine

gjuoun

commit sha 3149eb28118c8f1f27a1a0bff47c2f38f77846d1

fix ejs include import

view details

gjuoun

commit sha 1165f3436e709361af36784826e2670dcb6d4b2f

Merge branch 'master' of https://github.com/deligenius/view-engine

view details

push time in 5 days

push eventgjuoun/img-server

gjuoun

commit sha 3ca541fbfe1468d4ed755b14e7e663d8b3cee55c

remove handleSingleFile, use multiparserV2

view details

gjuoun

commit sha 0c51ca46dbb02cd6ccf0750da9c8b629732c86ad

remove redundant code

view details

gjuoun

commit sha edd808bfca49eae677b69fdc5d332e0ffa061cb8

commented out server files for index.html, because it needs authorization to upload files

view details

gjuoun

commit sha f08db94c2c6b8cb6fd106ebec5a6d279c2741d05

remove images

view details

John Guo

commit sha 2ece80b8824becc12b0d8cfd9fb45e7105d0d462

Merge pull request #1 from gjuoun/upload_fix Reviewed in MacOS and Windows10

view details

push time in 5 days

PR merged gjuoun/img-server

Upload fix

See https://github.com/gjuoun/img-server/releases/tag/v1.1.0

+38 -86

0 comment

5 changed files

gjuoun

pr closed time in 5 days

push eventgjuoun/img-server

gjuoun

commit sha f08db94c2c6b8cb6fd106ebec5a6d279c2741d05

remove images

view details

push time in 5 days

PR opened gjuoun/img-server

Upload fix

See https://github.com/gjuoun/img-server/releases/tag/v1.1.0

+40 -86

0 comment

10 changed files

pr created time in 5 days

created taggjuoun/img-server

tagv1.1.0

A Simple Image Server

created time in 5 days

release gjuoun/img-server

v1.1.0

released time in 5 days

push eventgjuoun/img-server

gjuoun

commit sha edd808bfca49eae677b69fdc5d332e0ffa061cb8

commented out server files for index.html, because it needs authorization to upload files

view details

push time in 5 days

create barnchgjuoun/img-server

branch : upload_fix

created branch time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha dd8b571ebc0ba643fd78c6fccbad1f3b18313530

ready to rename

view details

gjuoun

commit sha b754e15b135357060314287b54fd9dbfeb7477a5

rename multiParserV2

view details

push time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha 1cf414660f9e7b27aaf11aff598d83c8ab38a396

fix name error

view details

push time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha f099993c6d2384d433b42886e010e95cd774f6a1

rename readme.md

view details

push time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha 77da1153fd9d250b42e94079090431bed3c02824

ready to publish on nest.land

view details

push time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha 9f3c8c801f83c40d57f3ccbaf8bc6eaf91b19a2f

update readme

view details

push time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha 2f509f6086eeeb9665af7731d0cdbbd4494d7488

add boundaryByte validation

view details

push time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha a6db9f620e7f6349aa2696bfbd29229387a54d86

rename some variables for better understanding

view details

push time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha 07d6a276db1b30b2c2b1e901bd7eafa941882c8b

added content-type validation

view details

push time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha 7347fcc3e1fab0b835d7a4ddd34e5aa6f00ccb4b

TODO: provide options

view details

push time in 5 days

push eventdeligenius/multiparser

gjuoun

commit sha 3d97cd9bb7345787bf943925f74e4164eee1e5e5

multiparser V2 updated, bound to std@0.59.0

view details

push time in 5 days

issue closeddenjucks/denjucks

path import is broken

Envirionment:

  • OS: windows 10
  • Deno V1.1.1

Code:

// @deno-types="https://deno.land/x/denjucks/mod.d.ts"
import denjucks from "https://deno.land/x/denjucks/mod.js";

console.log(
    denjucks.renderString("hello {{ txt }}", {txt: "world"})
);

Result:

error: Failed to get compiled source code of https://deno.land/x/denjucks/src/deps/path/std/path/mod.ts.
Reason: The system cannot find the path specified. (os error 3)

I think it's a problem related to import path module in js file, maybe there is something to do with the path import in denjucks source files.

I will make a merge request later.

closed time in 6 days

gjuoun

issue commentdenjucks/denjucks

path import is broken

Fixed by @cj81499 in #12

gjuoun

comment created time in 6 days

pull request commentdenjucks/denjucks

Fixed std/path module import error

#12 is a similar pull request like this. I'm closing it now

gjuoun

comment created time in 6 days

PR closed denjucks/denjucks

Fixed std/path module import error

Fix error: Failed to get compiled source code of ../denjucks/src/deps/path/std/path/mod.ts.

+7 -4

2 comments

4 changed files

gjuoun

pr closed time in 6 days

push eventdeligenius/bodyparser

gjuoun

commit sha ee7fff4f3e027bd65a64578e9d99c1755887ec7b

update bound version deligenius@v1.0.0 multiparser@v1.0.0 std@0.59.0

view details

gjuoun

commit sha 7756a78e1db7f3d484ded1f4e9a43fb45a0a39ae

published on nest.land

view details

push time in 6 days

push eventdeligenius/deligenius

gjuoun

commit sha 719fd83ccf13efcaf5066baee2c7f7b74dbb1956

test need to be done

view details

gjuoun

commit sha 220b10b1002b9e03bcbcf787690ca0c6fd2497dd

Merge branch 'master' of https://github.com/deligenius/deligenius

view details

gjuoun

commit sha 932c12432a4ba72097037e9571f0bfbaeea8e403

update readme

view details

push time in 6 days

created tagdeligenius/deligenius

tagv1.0.0

Lightweight Deno middleware framework

created time in 7 days

release deligenius/deligenius

v1.0.0

released time in 7 days

push eventdeligenius/deligenius

John Guo

commit sha 969afbf1039d798bf3fa988c4e03768e3135fcee

Update README.md

view details

push time in 7 days

push eventdeligenius/deligenius

gjuoun

commit sha 0db49e49c408a6b6c8c515a6b46a26fee8d2688f

ready to publish to nest.land

view details

gjuoun

commit sha 000dd1af2e5d187449deaf624b9f5065c39cefc4

stick to std@0.59.0

view details

gjuoun

commit sha 6f3b42741bd4bacf6c55d0160d18007bdbc79c04

update image links

view details

gjuoun

commit sha a14390e0d5de9994fc76398a5386b953ca3343ef

ready to publish v1.0.2

view details

push time in 7 days

startednestlandofficial/nest.land

started time in 7 days

created taggjuoun/img-server

tagv1.0.0

A Simple Image Server

created time in 7 days

release gjuoun/img-server

v1.0.0

released time in 7 days

created tagdeligenius/multiparser

tagv1.0.0

multipart/form-data parser for Deno servers

created time in 7 days

release deligenius/multiparser

v1.0.0

released time in 7 days

push eventdeligenius/multiparser

gjuoun

commit sha 006604e1fe38f983582aa64a8210875932de4f54

get ready to release v1.0.0

view details

push time in 7 days

push eventdeligenius/multiparser

gjuoun

commit sha 46ee2bab7d1a870236cd8e743864b1592cfab614

use std@0.59.0

view details

push time in 7 days

push eventdeligenius/multiparser

gjuoun

commit sha 0643d5a7fcd81084834c3d1bb4b711e839ce538a

remove refine header

view details

push time in 7 days

push eventgjuoun/img-server

John Guo

commit sha 9d6c717c103c624d10a396618cfac491d5de8741

update postman link

view details

push time in 7 days

push eventgjuoun/img-server

John Guo

commit sha 09300b16d6dda4d29213eb14acd3ae319c45f779

postman script added

view details

push time in 7 days

push eventgjuoun/img-server

John Guo

commit sha b4d971a31726e8601a4fd142939eb2f72e31e30c

use hayd/ubuntu-deno:latest instead of hayd/alpine-deno:1.1.1 for docker image

view details

push time in 7 days

push eventdeligenius/multiparser

gjuoun

commit sha 64848bdc5dbe525f0a9d7e50a942d823daf97bfa

TODO: fix "malformed MIME header line" from std/textproto/mod.ts

view details

push time in 7 days

push eventdeligenius/bodyparser

gjuoun

commit sha 12a5abc486ab2f0b698b693f563cd059efd67df3

update dependency links

view details

push time in 7 days

push eventdeligenius/bodyparser

John Guo

commit sha 9d3edf15522ec9abd63fff55c196d1abf6907dff

Create README.md

view details

push time in 7 days

push eventdeligenius/multiparser

John Guo

commit sha 14cad7e8ba92c7ffacc8293c8e865c5ea5ec0d9c

Update readme.md change icon color

view details

push time in 7 days

push eventdeligenius/multiparser

John Guo

commit sha cecdede5010132f75e4c851857d07f80e4967194

Update readme.md added icon

view details

push time in 7 days

created tagdeligenius/multiparser

tagv0.1.0

multipart/form-data parser for Deno servers

created time in 7 days

release deligenius/multiparser

v0.1.0

released time in 7 days

push eventdeligenius/multiparser

John Guo

commit sha 1465073e7135f0337a5af5cf9b9c6db59d2153ac

Update readme.md

view details

push time in 7 days

push eventdeligenius/multiparser

gjuoun

commit sha 4e951bafb6b88e60f57f1b696f020fe9d0d1137f

update format readme

view details

push time in 7 days

push eventdeligenius/multiparser

gjuoun

commit sha 7c21bc492ab608b2b5a3e92c02c29cd508a54493

readme update

view details

push time in 7 days

push eventdeligenius/multiparser

gjuoun

commit sha 66c7052a2bb71aa350675f6ca7f2f92e03d8ee09

update std@0.59.0 dependency

view details

push time in 7 days

push eventdeligenius/multiparser

gjuoun

commit sha 8d83aeb08c5fb9d531065e2dc0dc5642fc00e7cb

added error message

view details

push time in 7 days

push eventdeligenius/multiparser

gjuoun

commit sha 368a5eae2852a95ec879506eedb24f162a33daf1

TODO: use req.body only

view details

push time in 8 days

push eventgjuoun/img-server

John Guo

commit sha 3586d5b74ad856ce99518f0299ca84e415bf1ae2

Update README.md

view details

push time in 10 days

push eventgjuoun/img-server

gjuoun

commit sha 3cc5b129b915daed946dad600dceb5db3fd8b301

added init.sql description

view details

push time in 10 days

push eventgjuoun/img-server

gjuoun

commit sha 4e77e3c7220cdd0720d9a7fdd6863eee7c6e7391

refine words

view details

push time in 10 days

push eventgjuoun/img-server

gjuoun

commit sha 4ef0ae28d712b9638f05f39d832bcbd2e3ee3455

added more info to the api end points

view details

push time in 10 days

push eventgjuoun/img-server

gjuoun

commit sha 2de13911307f738bfc085d4ab6b686f66d4f684c

fix typo and add /api/img/all

view details

gjuoun

commit sha 5e7115421693e1f3c243a2a5844b1883815acc05

Merge branch 'master' of https://github.com/gjuoun/img-server

view details

push time in 10 days

push eventgjuoun/img-server

John Guo

commit sha f793be5f5c394d79bc6b54206e6cc72306e3fe80

Update README.md

view details

push time in 10 days

push eventgjuoun/img-server

gjuoun

commit sha fba2b9d0e9a3c20d446a63644664b93b44ac4ada

remove test.jpg

view details

gjuoun

commit sha f3d8a9777e680ed2974ef3782595865c3b86be35

Merge branch 'master' of https://github.com/gjuoun/img-server

view details

push time in 10 days

push eventgjuoun/img-server

John Guo

commit sha 1f6db01589054abdc39e171c71271f21453cce7d

Update README.md

view details

push time in 10 days

push eventgjuoun/img-server

John Guo

commit sha 916f512ed5cf3e512bbaec7c5ef6856ad614ebb5

Update README.md

view details

push time in 10 days

created taggjuoun/img-server

tagv0.1.0

A Simple Image Server

created time in 10 days

more