profile
viewpoint

mikelnrd/bazel-ebook 0

bazel build rules for creating ebooks in PDF, EPUB and MOBI format

mikelnrd/chrome-headless 0

Docker configuration files for knqz/chrome-headless

mikelnrd/chromedp 0

Package chromedp is a faster, simpler way to drive browsers (Chrome, Edge, Safari, Android, etc) without external dependencies (ie, Selenium, PhantomJS, etc) using the Chrome Debugging Protocol.

mikelnrd/chromium-builder 0

Docker configuration files for knqz/chromium-builder

mikelnrd/Chromodynamics 0

Sublime Text & Atom color scheme.

mikelnrd/container-builder-local 0

Local Builder runs Google Cloud Container Builder builds locally, allowing faster debugging, less vendor lock-in, and integration into local build and test workflows.

mikelnrd/crostini_setup 0

Pixelbook Crostini setup

mikelnrd/css-grid 0

Starter Files + Solutions to my CSSGrid.io Course

startedjohanholmerin/style9

started time in 5 days

startedTypeform/openapi-micro-merge

started time in 6 days

startedopenquery-io/parallax

started time in 10 days

startedpostmanlabs/httpbin

started time in 10 days

startedquestdb/questdb

started time in 11 days

startedcloudreach/urly-wurly

started time in 12 days

issue openedcuelang/cue

pkg/tool/http.parseHeaders panic: assignment to entry in nil map

Hi. I'm getting a panic: assignment to entry in nil map error when running a _tool.cue file importing "tool/http".

It looks like the variable h is nil when h.Add() is called.

https://cue.googlesource.com/cue/+/master/pkg/tool/http/http.go#108

func parseHeaders(obj cue.Value, label string) (http.Header, error) {
	m := obj.Lookup(label)
	if !m.Exists() {
		return nil, nil
	}
	iter, err := m.Fields()
	if err != nil {
		return nil, err
	}
	var h http.Header // HERE
	for iter.Next() {
		str, err := iter.Value().String()
		if err != nil {
			return nil, err
		}
		// HERE
		h.Add(iter.Label(), str)
	}
	return h, nil
}

created time in 13 days

startedIBM/pwa-lit-template

started time in 15 days

startedByron/google-apis-rs

started time in 16 days

startedNickKaramoff/shareon

started time in a month

startedwilsonzlin/fastrie

started time in a month

startedwilsonzlin/dbflock

started time in a month

startedr2d4/virgo

started time in a month

startedJaidedAI/EasyOCR

started time in a month

startedbrickpop/flutter-rust-ffi

started time in a month

startedrust-lang/docs.rs

started time in a month

startedtrys/sergey

started time in a month

startedthemesberg/pixel-bootstrap-ui-kit

started time in a month

startedescaya/escaya

started time in a month

startedlmammino/financial

started time in a month

startedstjepang/async-task

started time in a month

startedstjepang/snippets

started time in a month

startedchronotope/chrono

started time in a month

startedsteadylearner/Sitemap

started time in a month

startedstjepang/smol

started time in a month

startedjsha/minica

started time in a month

issue openedmicrosoft/pylance-release

python.analysis.extraPaths setting supported?

Hi. Pylance looks great.

Is the "python.analysis.extraPaths" setting in settings.json supported by the pylance extension? I can't seem to get it working and wanted to check it is actually used by pylance. Or is there another way to tell pylance about other paths to search for imports? Does pylance make use of the pyrightconfig.json file for example?

Thanks.

More info...

I have some pypi packages downloaded in a separate directory called vendor and I'm trying to get pylance to search this extra directory.

More specifically, I have the directory /home/myusername/myrepo/vendor/py_deps/pypi_beautifulsoup4/ which contains the py4 beautiful soup package downloaded from pypi.

I can successfully run my python program by adding /home/myusername/myrepo/vendor/py_deps/pypi_beautifulsoup4/ to PYTHONPATH, as an import such as import py4 is then resolved correctly.

However with pylance I get a 'reportMissingImports error'. I've tried adding the path to my vendor/pydeps/pypi_beautifulsoup4 directory to "python.analysis.extraPaths" but I get the same error and can't tell if pylance is using this particular setting.

# /home/myusername/myrepo/src/somepackage/main.py

import bs4 # Import "bs4" could not be resolved Pylance (reportMissingImports)

def main():
    pass

created time in a month

startedbazelbuild/rules_kotlin

started time in a month

starteddart-archive/rules_dart

started time in a month

startedstackb/rules_proto

started time in a month

startedscalio/flutter_navigation_saver

started time in a month

startedLukeMathWalker/wiremock-rs

started time in a month

startedEvgenyOrekhov/eslint-config-hardcore

started time in a month

startedwhytheplatypus/diem

started time in a month

startedencrypted-dev/userbase-homepage

started time in a month

starteddosyago/bepis

started time in a month

startedgooglecodelabs/tools

started time in a month

startedardanlabs/python-go

started time in 2 months

startedImageMagick/ImageMagick

started time in 2 months

startedrough-stuff/rough-notation

started time in 2 months

startedjonathan-laurent/AlphaZero.jl

started time in 2 months

startednaiquevin/pipdeptree

started time in 2 months

startedkku1993/bazel-hermetic-python

started time in 2 months

startedboto/boto3

started time in 2 months

starteddevloop01/softripple-js

started time in 2 months

startedProdriveTechnologies/bazel-pandoc

started time in 2 months

startedsebhoss/bazel-build-process

started time in 2 months

startedsurlyengineer/rules_aws_lambda

started time in 2 months

startedgraknlabs/bazel-distribution

started time in 2 months

starteddillon-giacoppo/rules_python_external

started time in 2 months

startedthundergolfer/bazel-linting-system

started time in 2 months

startedthundergolfer/bazel-mypy-integration

started time in 2 months

startedjazzband/pip-tools

started time in 2 months

startedjonathantneal/element-merge

started time in 2 months

startedjonathantneal/posthtml-md

started time in 2 months

startedjonathantneal/wc-monaco-editor

started time in 2 months

startedjonathantneal/browser-logos

started time in 2 months

startedjonathantneal/postcss-partial-import

started time in 2 months

startedjonathantneal/closest

started time in 2 months

startedjonathantneal/posthtml-inline-assets

started time in 2 months

startedjonathantneal/google-fonts-complete

started time in 2 months

startedjonathantneal/this-is-a11y

started time in 2 months

startednikitavoloboev/knowledge

started time in 2 months

startedthundergolfer/example-bazel-monorepo

started time in 2 months

startedenginoid/monorepo-base

started time in 2 months

startedms-jpq/noact

started time in 2 months

startedgoogle/tarpc

started time in 2 months

startedsebasmagri/env_logger

started time in 2 months

startedbrson/stdx

started time in 2 months

startedinteger32llc/rust-in-motion-videos

started time in 2 months

startedbslatkin/effectivepython

started time in 2 months

startedteam-video/tragopan

started time in 2 months

startedmanekinekko/catsify

started time in 2 months

startedgoogle/cargo-raze

started time in 2 months

startedgithub/super-linter

started time in 2 months

startedmiere/cargo_lambda

started time in 2 months

startedjankovicsandras/imagetracerjs

started time in 2 months

startedGoogleCloudPlatform/bank-of-anthos

started time in 2 months

startedeclipse/openvsx

started time in 2 months

startedgo-gomail/gomail

started time in 2 months

startedtonarino/webrtc-audio-processing

started time in 2 months

startedmozilla/sccache

started time in 2 months

startedSRombauts/SQLiteCpp

started time in 2 months

startedrailsware/bozon

started time in 2 months

startedgo-gomail/gomail

started time in 2 months

startedGoogleCloudPlatform/cloud-run-button

started time in 2 months

startedbmatcuk/doublestar

started time in 2 months

startedkelseyhightower/badger

started time in 2 months

startedfacebook/hermes

started time in 2 months

startedkelseyhightower/kubernetes-initializer-tutorial

started time in 2 months

startedkelseyhightower/certificate-init-container

started time in 2 months

startedkelseyhightower/run

started time in 2 months

startedjotfs/jotfs

started time in 2 months

startedhankchizljaw/goron

started time in 2 months

issue commentcuelang/cue

Index into a struct to access a #Definition

Just noticed this latest commit by @mpvl that looks related: 53d18cc

mikelnrd

comment created time in 2 months

issue commentcuelang/cue

Index into a struct to access a #Definition

I'm still learning cue (and of course cue is a still very much a moving target). I've read the recent release notes which explain the idea that you can think of definitions and values as two different namespaces (with definitions being prefixed with '#'). I guess based on that I was expecting to be able to lookup a definition as I can lookup a field, eg definitions["#Foo"] where the key used is a variable. I think being able to manipulate definitions as you can manipulate regular values is a very powerful idea.

I'm afraid I can't remember the exact scenario where this need came up as it was a week or two ago. I've been working with kubernetes definitions (of which there are many!) and I think wanted to pluck out some of the definitions based on a list of strings. If I hit this again I'll report back...


Ah yes I've been eagerly awaiting Github Discussions but hadn't noticed the cue repo already has them! I don't think I can hit a button to make this thread a discussion unfortunately but I'll certainly post there in the future and join in on chat more...

mikelnrd

comment created time in 2 months

issue commentcuelang/cue

Idea: pkg/encoding/cue

Ah yes that's a good point @verdverm. I don't have enough experience with cue or the roadmap to try to weigh in on the pros/cons of user defined functions but fracturing of the ecosystem doesn't sound good.

mikelnrd

comment created time in 2 months

issue commentcuelang/cue

tool/file.Create support for non-existent parent directories

@verdverm yes I think go's MkdirAll is what I was looking for.  https://golang.org/pkg/os/#MkdirAll

I've just got it working as you suggested by using an exec.Run task followed by a file.Create task. Thanks.

exampleTask: {
    _dir: "./some/nested/path/to/a/"
    _filename: "file.yaml"
    _contents: {
        hello: "world"
    }

    mkdir: exec.Run & {
        cmd: "mkdir -p \(_dir)"
    }
    create: file.Create & {
        filename: _dir + _filename
        contents: yaml.Marshal(_contents)
        $after: mkdir
    }
}

Feel free to close this issue, or keep open as a feature request for MkdirAll in cue's stdlib. Cheers.

mikelnrd

comment created time in 2 months

startedcloudflare/ipvs

started time in 2 months

more