profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/SanketDG/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Sanket Dasgupta SanketDG India https://sanketdg.github.io I build things for computers • GSoC'20 Mentor @anitab-org • GSoC'16 developer @coala w/ @psf • GSoC'17 Mentor @coala • Python • React • Kubernetes

SanketDG/bithacks 34

:zero: :one: A collection of bit manipulation techniques.

SanketDG/hacktoberfix 30

Fix your October

SanketDG/khol 19

:shell: (খোল) - A minimalistic shell written in C

SanketDG/djurl 12

An url shortener using Django based on Material Design

SanketDG/10xer 8

THE TOOL THAT WILL CHANGE THE WORLD

SanketDG/batuli 5

An utility IRC bot for ##testbot.

SanketDG/gitdl 5

Download GitHub repositories with a single command.

SanketDG/express-cloud-run-template 2

A template to deploy Express apps on Cloud Run using Github Actions

SanketDG/c-projects 1

A collection of single file c programs I wrote

SanketDG/djangoblog 1

A simple blog made using Django and Bootstrap.

issue commentfoambubble/foam

Dots break wiki links

I can get this issue. Here's a reproduction repository. Notice the files namespace1.a.md and namespace2.a.md

https://github.com/ingalless/foam-dot-issue-reproduction

Panke

comment created time in an hour

issue commentOfficeDev/office-js

Word: Context menu is only visible when the selection has a length (Office on the web)

@osasseville - did you submit a feature request? If yes, please share a link and I will throw some votes at it...

osasseville

comment created time in an hour

issue commentevanw/esbuild

The order of CSS imports is not respected

Note: I'm just commenting about this here to document my thinking.

So the main problem is with external imports. Consider a case where you have @imports to external CSS (outside of the bundle) that come after @imports to internal CSS (inside the bundle):

/* entry.css */
@import "./internal.css";
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
.someDiv { ... }
/* internal.css */
.someDiv2 { ... }

CSS says that @import has to come first, so "hoisting" external imports to the top like this would be invalid:

/* This is different than the original CSS evaluation order */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
.someDiv2 { ... }
.someDiv { ... }

That would cause it to be evaluated after the external CSS instead of before. One solution would be to generate another chunk like this:

/* entry.css */
@import "./chunk.HASH.css";
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
.someDiv { ... }
/* chunk.HASH.css */
.someDiv2 { ... }

That's not great obviously because then the code isn't bundled anymore, at least not into a single file. This is where the extra network overhead that I was talking about earlier comes from.

I previously thought that this is the best you can do. But I just realized that there's another hack you can do instead:

/* entry.css */
@import "data:text/css,\
.someDiv2 { ... }\
";
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
.someDiv { ... }

This feels gross but it does fit everything into a single file and it seems to work, at least in modern browsers. I'm not sure what browser support looks like but it might actually be ok to have this be the primary bundling strategy. This is basically a workaround for not being able to stick @import in the middle of a file.

iamakulov

comment created time in 2 hours

push eventdaptin/daptin

Parth Mudgal

commit sha 6e6f0dbc7ff8fe8aa5ceba37cc14949d77e916c5

update regex for name parameters embedded in strings

view details

Parth Mudgal

commit sha 398b8ab8796410651e5f3cbf60ce298214b3d76d

Merge remote-tracking branch 'origin/master' into master # Conflicts: # server/resource/handle_action.go

view details

push time in 3 hours

issue commentOfficeDev/office-js

setSelectedDataAsync with Html coercion does not work on Outlook on Big Sur

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

fusiled

comment created time in 3 hours

issue commentOfficeDev/office-js

Reply/ReplyAll/Forward has to provide option to open in active window for the New Mac UI

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

Petryxasport

comment created time in 3 hours

issue commentevanw/esbuild

middle-router: require is undefined for eventemitter3

Ah okay, thanks for the clarification!

jimsimon

comment created time in 3 hours

issue commentevanw/esbuild

middle-router: require is undefined for eventemitter3

It’s for bundling (esbuild is primarily a bundler) but the tool you’re using isn’t using esbuild’s bundling feature.

jimsimon

comment created time in 3 hours

issue commentevanw/esbuild

middle-router: require is undefined for eventemitter3

Ah I saw the docs for esbuild say it supports CommonJS, is that only for output?

jimsimon

comment created time in 4 hours

issue closedevanw/esbuild

middle-router: require is undefined for eventemitter3

Hello, I'm trying to use the following import:

import * as Router from 'middle-router';

But at runtime I get the following error: image image

Any idea why require would be undefined here?

Here's my tsconfig.json for reference in case it matters:

{
  "compilerOptions": {
    "declaration": true,
    "noImplicitAny": true,
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "allowJs": true,
    "esModuleInterop": true,
    "target": "ES2020",
    "sourceMap": true,
    "baseUrl": "./",
    "module": "ES2020",
    "moduleResolution": "Node",
  }
}

closed time in 4 hours

jimsimon

issue commentevanw/esbuild

middle-router: require is undefined for eventemitter3

Ah ok, thanks for the info. This problem is not related to esbuild then. According to their documentation, esbuild is only used for TSX/JSX/JSON-to-JS but otherwise doesn't have any effect on your code.

The problem is that you are trying to use code that calls require() in the browser, and that doesn't work because require is a node-specific API that doesn't exist in the browser. Looks like there is documentation about how to use CommonJS modules with this software here: https://modern-web.dev/guides/going-buildless/es-modules/#commonjs-modules. If you are having additional problems you should ask for help from them.

Closing this issue since this problem is not related to esbuild.

jimsimon

comment created time in 4 hours

issue openedevanw/esbuild

provide some hooks for watch

it would be very helpful if esbuild could export some watch events to userland ,which user can do some custom things such as analyze rebuild performance.

created time in 4 hours

issue openedOfficeDev/office-js

ReferenceError: 'OfficeRuntime' is undefined

I have created an Addin using "Yo Office" for Excel Custom Functions and then changed it to Shared Runtime as per documentation. Everything works at this time. Now when I am trying to set Token in storage OR Retrieve token from Storage, getting this exception. Here are my code snippet. `taskpane.js

Office.initialize = () => { document.getElementById("sideload-msg").style.display = "none"; document.getElementById("app-body").style.display = "flex"; //document.getElementById("run").onclick = run;
}; Office.onReady = () => { $(document).ready(async function () { var PivotElements = document.querySelectorAll(".ms-Pivot"); for (var i = 0; i < PivotElements.length; i++) { new fabric'Pivot'; } var TextFieldElements = document.querySelectorAll(".ms-TextField"); for (var i = 0; i < TextFieldElements.length; i++) { new fabric'TextField'; } var ButtonElements = document.querySelectorAll(".ms-Button"); for (var i = 0; i < ButtonElements.length; i++) { new fabric['Button'](ButtonElements[i], function () { $("#dvMain").show(); $("#dvLogin").hide(); }); } $("#dvMain").hide(); $("#dvLogin").show(); var resp = "Success"; try { const key = await OfficeRuntime.storage.getItem("UserCredentials"); } catch (err) { resp = "error: " + err; } $("#txtUserName").val(resp); }); };`

Expected Behavior

Appearently txtUserName field should contains "Success" i.e. UserCredentials key should retrieve.

Current Behavior

Getting exception in "txtUserName" field: error: ReferenceError: 'OfficeRuntime' is undefined

ExcelAddin.zip

created time in 4 hours

issue commentpython-poetry/poetry

`poetry/__init__.py` is provided by both poetry and poetry-core

Hello @nchepanov,

the current version of poetry support python2 and python3. Namespace packages were introduced somewhere in python3. This is why we need to use pkgutil-style namespace packages.

With the next minor release (1.2), we are dropping python2 support. So I guess we can switch to real namespace packages then.

fin swimmer

nchepanov

comment created time in 4 hours

issue commentevanw/esbuild

middle-router: require is undefined for eventemitter3

Sorry for not being clear, I'm using esbuild via https://modern-web.dev/guides/dev-server/getting-started/.

jimsimon

comment created time in 4 hours

issue commentevanw/esbuild

middle-router: require is undefined for eventemitter3

Is this problem related to esbuild? You haven't provided any information that indicates whether you are using esbuild or how you are using it.

jimsimon

comment created time in 5 hours

issue commentpython-poetry/poetry

Support generation of poetry manged setup.py file

@jfaleiro there must be another reason for the error you receive. poetry doesn't need a setup.py within the git repo if there is a pyproject.toml and it is a poetry project.

abn

comment created time in 5 hours

issue commenttosdr/browser-extensions

If notifications are hidden without opening them, the next time one is opened, the 'backlog' of all the hidden ones will also open

I see the label of that commit is 4.0.6, but I have that version and still experience this problem

ArloJamesBarnes

comment created time in 5 hours

issue commentfoambubble/foam

Foam Graph is blank

I'm not getting anything in the Foam logs when the Graph is blank. If I reload the window and then try to view the graph then it becomes visible.

BUT if I delete a link/node, then the graph isn't refreshing and I'm seeing the below logs:

[info - 12:02:38 PM] Deleted: /Volumes/Data/1Brain/test-link.md [error - 12:02:38 PM] An error occurred in the graph view { "message": "Uncaught TypeError: Cannot read property 'id' of undefined", "filename": "vscode-webview-resource://a6fd8997-3934-49e1-8935-5e874af931bb/file///Users/<my-username>/.vscode/extensions/foam.foam-vscode-0.10.2/static/graphs/default/graph.js", "lineno": 233, "colno": 24, "error": {} } [warn - 12:02:38 PM] Link file:///Volumes/Data/1Brain/test-link.md in file:///Volumes/Data/1Brain/inbox.md is not valid.

Link to Repo: https://github.com/iamtherealgd/Brain

pyreton

comment created time in 6 hours

issue openedevanw/esbuild

middle-router: require is undefined for eventemitter3

Hello, I'm trying to use the following import:

import * as Router from 'middle-router';

But at runtime I get the following error: image image

Any idea why require would be undefined here?

Here's my tsconfig.json for reference in case it matters:

{
  "compilerOptions": {
    "declaration": true,
    "noImplicitAny": true,
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "allowJs": true,
    "esModuleInterop": true,
    "target": "ES2020",
    "sourceMap": true,
    "baseUrl": "./",
    "module": "ES2020",
    "moduleResolution": "Node",
  }
}

created time in 6 hours

CommitCommentEvent

release evanw/esbuild

v0.8.53

released time in 11 hours

created tagevanw/esbuild

tagv0.8.53

An extremely fast JavaScript bundler and minifier

created time in 11 hours

push eventevanw/esbuild

Evan Wallace

commit sha e2d25ad87feedd7562c5f01f23bc8f33c8f09a00

publish 0.8.53 to npm

view details

push time in 11 hours

pull request commentpython-poetry/poetry

Remove all env

Got it. I'll see if I have some time to take a look this weekend.

DustinMoriarty

comment created time in 12 hours

push eventevanw/esbuild

Evan Wallace

commit sha 071e8f9cff39b622370e7a946a2a3a36956e57b8

fix #893: add the "import().catch()" pattern

view details

push time in 12 hours

issue closedevanw/esbuild

Handling `import()` errors through `.catch()` doesn't silence bundling warnings.

Hi,

I can see that in 6be8e44 changes to silence warnings about the use of import with non-string literals inside try/catch blocks were added, however the rules apply only if the call is used with async/await, from the commit:

// this silences the warnings
async function main(name) {
	try {
		return await import(name)
	} catch {
	}
}
main('fs')

// this doesn't
async function main(name) {
	try {
		return import(name)
	} catch {
	}
}
main('fs')

so far it makes sense, however, I believe that the following code should also silence the warnings:

function main(name) {
	import(name)
          .then(mod => { // do stuff })
          .catch(e => { // do stuff })
}
main('fs')

Thanks for the awesome tool!

closed time in 12 hours

darionco

issue openedpython-poetry/poetry

`poetry lock --no-update` changes versions in our `poetry.lock`

<!-- Hi there! Thank you for discovering and submitting an issue.

Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. -->

<!-- Checked checkbox should look like this: [x] -->

  • [x] I am on the latest Poetry version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

<!-- Once those are done, if you're able to fill in the following list with your information, it'd be very helpful to whoever handles the issue. -->

  • OS version and name: macOS 11.2.2
  • Poetry version: 1.1.4
  • Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/beaugunderson/cfb9a818ba42d63a1d14de7dc33a99aa

Issue

Executing poetry lock --no-update (with no changes to pyproject.toml) updates the versions of a dependency in our poetry.lock:

image

Additionally, when executing the same command with -vvv I get an exception in the debugging code:

image

created time in 12 hours

Pull request review commentpython-poetry/poetry

Implement a plugin system

+# Plugins++Poetry supports using and building plugins if you wish to+alter or expand Poetry's functionality with your own.++For example if your environment poses special requirements+on the behaviour of Poetry which do not apply to the majority of its users+or if you wish to accomplish something with Poetry in a way that is not desired by most users.++In these cases you could consider creating a plugin to handle your specific logic.+

If plugins are not allowed to load during poetry new then that should probably be mentioned here.

sdispater

comment created time in 19 hours

Pull request review commentpython-poetry/poetry

Implement a plugin system

 def set_installer(         installer.use_executor(poetry.config.get("experimental.new-installer", False))         command.set_installer(installer) +    def _load_plugins(self, io: IO) -> None:+        if self._plugins_loaded:+            return++        from cleo.exceptions import CommandNotFoundException++        name = self._get_command_name(io)+        command_name = ""+        if name:+            try:+                command_name = self.find(name).name+            except CommandNotFoundException:+                pass++        self._disable_plugins = (+            io.input.has_parameter_option("--no-plugins") or command_name == "new"

Plugins can't be used for poetry new calls?

sdispater

comment created time in 19 hours