Giter Site home page Giter Site logo

deno-plugin-prepare's Introduction

deno-plugin-prepare's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

deno-plugin-prepare's Issues

No log

Provide an easy way (function or flag) to turn off logging and or redirect it.

test case is leaking resources.

Error: Test case is leaking resources.
Before: {
  "0": "stdin",
  "1": "stdout",
  "2": "stderr"
}
After: {
  "0": "stdin",
  "1": "stdout",
  "2": "stderr",
  "6": "plugin"
}
    at Object.assert ($deno$/util.ts:25:11)
    at resourceSanitizer ($deno$/testing.ts:62:5)
    at async TestApi.[Symbol.asyncIterator] ($deno$/testing.ts:222:11)
    at async runTests ($deno$/testing.ts:398:20)

Support local files

It's me again. I would love support for locally built files for using deno-plugin-prepare in development but because fetch doesn't support local fetching of files it throws the following:

error: Uncaught TypeError: scheme 'file' not supported

use deno 1.0.0 got error

error: TS2339 [ERROR]: Property 'openPlugin' does not exist on type 'typeof Deno'.
  return Deno.openPlugin(localPath);
              ~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:64:15

After I run deno cache myfile.ts
Deno.openPlugin does not exist in 1.0.0?

deno_mongo broken due to [email protected]

I use deno_mongov0.5.2 which use deno-plugin-preparev0.3.1.
After the update of deno to v0.42.0, I got a lot of errors:

error TS2367: This condition will always return 'false' since the types 'OperatingSystem' and '"windows"' have no overlap.

► https://deno.land/std/path/constants.ts:51:26

51 export const isWindows = build.os === "windows";
                            ~~~~~~~~~~~~~~~~~~~~~~

error TS2367: This condition will always return 'false' since the types 'OperatingSystem' and '"windows"' have no overlap.

► https://deno.land/std/path/globrex.ts:5:15

5 const isWin = Deno.build.os === "windows";
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~

error TS2345: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.

► https://deno.land/std/path/posix.ts:433:18

433   return new URL(url).pathname;
                     ~~~

error TS2339: Property 'get' does not exist on type '{ (): { [index: string]: string; }; (key: string): string | undefined; }'.

► https://deno.land/std/path/win32.ts:42:18

42       path = env.get(`=${resolvedDevice}`) || cwd();
                    ~~~

error TS2345: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.

► https://deno.land/std/path/win32.ts:911:18

911   return new URL(url).pathname
                     ~~~


Found 5 errors.

and I think it is due to imports in mod.ts are not tagged and it they use the latest version.

[ERROR]: Property 'openPlugin' does not exist on type 'typeof Deno'

I have this config

import { init, MongoClient } from "https://deno.land/x/[email protected]/mod.ts";
await init();
const client = new MongoClient();
client.connectWithUri("mongodb://localhost:27017");
const db = client.database("deno");
export default db;

get error

error: TS2339 [ERROR]: Property 'openPlugin' does not exist on type 'typeof Deno'.
  return Deno.openPlugin(localPath);
              ~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:64:15
[denon] app crashed - waiting for file changes before starting ...

I'm on

deno 1.0.2 
v8 8.4.300 
typescript 3.9.2

Updating plugin to match the release/module version

Right now the plugin-prepare only downloads the new version if the local path of the plugin is changed. This however is not very good in cases where you would want to update the plugin using a new github release. It would therefor be preferred if for example it in the .deno_plugins directory kept a file for which release version (or checksum) that is currently downloaded. Hopefully this is just a temporary solution until #4222 is resolved and there is no need for this module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.