FG

All Issues

24,993 verified issues

🗄️ Databases
Freshover 1 year ago

[BUG]: Drizzle ORM breaks on latest update

What version of `drizzle-orm` are you using? 0.31.0 What version of `drizzle-kit` are you using? 0.22.1 Describe the Bug When trying to use a select, using where clause I get this massive error, when downgrading to 0.30.10, the error disappears. Argument of type 'SQL<unknown>' is not assignable to parameter of type 'SQL<unknown> | ((aliases: { id: PgColumn<{ name: "id"; tableName: "users"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: true; enumValues: [string, ...string[]]; baseColumn: never; }, {}, {}>; ... 7 more ...; companyId: PgColumn<...>; }) => SQL<...> | undefin...'. Type 'import("/Users/fernandortec/Desktop/coding/dev-sculpt/apps/server/node_modules/drizzle-orm/sql/sql").SQL<unknown>' is not assignable to type 'import("/Users/fernandortec/Desktop/coding/dev-sculpt/node_modules/drizzle-orm/sql/sql").SQL<unknown>'. Types have separate declarations of a private property 'shouldInlineParams'. Expected behavior _No response_ Environment & setup _No response_

Confidence80%
80%
Verified Fix Available
1 fix4 verified
🌐 Web & Full-Stack
Freshabout 1 year ago

feat: Define a router independently of its implementation

Describe the feature you'd like to request See example repo (https://github.com/rhinodavid/trpc-server-definition) for all the details My request is similar to the one @iduuck wrote about in https://github.com/trpc/trpc/issues/3496#issuecomment-1425705704. tldr: One should not need the server implementation in order to get a typed client. Currently this is not possible (I don't think -- I"m pretty new here) -- all the examples I've seen create the client using the `typeof` the AppRouter definition. Describe the solution you'd like to see My proposed solution is to create utility types to define the router type. Usage would look like this: [code block] In the server implementation, you'd enforce that the server satisfies the interface: [code block] Then the client is typed with the interface: [code block] The example repo has a complete(?) working PoC. Describe alternate solutions Another possible solution is a codegen step as described in https://github.com/trpc/trpc/issues/3496#issuecomment-1425705704. The pro of this solution is it keeps the existing pattern of [implement router] -> [extract interface]. Some might prefer this, but after a long time using gRPC/stubby I'm more used to the [define interface] -> [implement router] pattern. This pattern is better for large organizations where multiple teams might need to debate and agree on the interface. The con of the solution is codegen can be finicky. It also doesn't easily solve the workspace organization probl

Confidence80%
80%
Verified Fix Available
1 fix4 verified
🗄️ Databases
Fresh6 days ago

[BUG]: DrizzleQueries are failing because of missing schema name (Postgres)

Report hasn't been filed before. - [x] I have verified that the bug I'm about to report hasn't been filed before. What version of `drizzle-orm` are you using? 0.39.1 What version of `drizzle-kit` are you using? 0.30.4 Other packages _No response_ Describe the Bug We use pgSchema for our table definitions like: `export const user = pgSchema('app_one').table('user', { id: integer('id').generatedAlwaysAsIdentity().primaryKey(), name: text('name'), })` When making a query like `db.query.user.findMany()` the produced sql code looks like this `select "id", "name" from "user"` which fails because the schema is missing. It should be `select "id", "name" from "app_one"."user"` When using the query builder like `db.select().from(user)` the produced sql is correct `select "id", "name" from "app_one"."user"`

Confidence80%
80%
Candidate Fix
1 fix
🤖 AI & LLMsOpenAI
Fresh6 days ago

[Whisper] Support OGG file extension

Describe the feature or improvement you're requesting Dear OpenAI Team, I am writing to request the addition of OGG file format support in the Whisper model. As you know, OGG is a popular open-source multimedia container format that is widely used for streaming, storing, and transmitting digital multimedia content such as audio and video. Currently, the Whisper model supports only a limited number of audio file formats, such as WAV and MP3. However, many users, including myself, prefer to use OGG format due to its superior compression, quality, and open-source nature. Therefore, I would like to request that the OpenAI team considers adding OGG file format support to the Whisper model. This would allow users to process and generate high-quality audio content in OGG format, which is important for many applications such as music production, podcasting, and voiceover work. I believe that adding support for OGG file format in the Whisper model would be a valuable addition to the platform, and would help to expand the range of options available to users. Thank you for your consideration, and I look forward to hearing your response. Sincerely, Ido Additional context Specifically `opus codecs`

Confidence80%
80%
Candidate Fix
1 fix
🗄️ Databases
Fresh12 months ago

[BUG] Cloudflare D1: drizzle-kit push is not working (error 7500 SQLITE_AUTH)

Report hasn't been filed before. - [X] I have verified that the bug I'm about to report hasn't been filed before. What version of `drizzle-orm` are you using? 0.38.0 What version of `drizzle-kit` are you using? 0.30.0 Other packages _No response_ Describe the Bug I followed the docs (btw: driver ist missing in the example) but `drizzle-kit push` gives an error: [code block] In contrast `drizzle-kit studio` is working fine, I can create tables and items as well as `drizzle-kit generated` and `drizzle-kit migrate`.

Confidence79%
79%
Verified Fix Available
1 fix7 verified
🌐 Web & Full-StackMicrosoft
Freshover 8 years ago

Ability to over power TS and ignore specific error by developer

A developer should be able to add a comment above a ts error such as [code block] and have the compiler not report that error... there are certain scenarios the developer knows best and want to quiet down the error reports. kind of like :any regards Sean

Confidence79%
79%
Verified Fix Available
1 fix9 verified
☁️ Cloud & DevOps
Freshalmost 5 years ago

File provisioning hangs with Terraform 12.* terraforming a Windows server with Powershell 5 installed

Terraform Version [code block] Terraform Configuration Files [code block] Debug Output [code block] The interrupt received was me cancelling the cmd line process. Crash Output N/A Expected Behavior On a Windows Server with Powershell 5 installed, be able to use Terraform 12. to complete file provisioning of TestFolder1, copying all content and subfolder content, and continue to the next file provisioning step. This works in Terrafform 11. I am using terraform v0.11.8 successfully with provider.aws v1.35.0 Actual Behavior Since upgrading to Terraform 12., the file provisioning of TestFolder1 copies a couple of the 1 KB files over, seems to copy over what can be done in 1 minute, and then stops copying over content. The Terraform console logging continues to report "Still creating..." without end and doesn't obey the timeout. The Terraform process never completes. Steps to Reproduce Setup Windows Server 2012 to have Powershell 5 1. Create a Window Server 2012 R2 64 bit instance and manually or via cli For AWS, I am using the source AMI filter [code block] 2. Install Powershell 5 directly via the MSU or through Chocolatey, both have the same effect. 2.1 Chocolatey via, "choco install powershell" 2.2 Manually by downloading Win8.1AndW2K12R2-KB3191564-x64.msu from https://www.microsoft.com/en-us/download/details.aspx?id=54616, Windows Management Framework 5.1 (KB3191564). 2.2.1 Install via the GUI manually or run "Win8.1AndW2K12R2-KB3191564-x64.msu /quiet" in a cmd line

Confidence79%
79%
Verified Fix Available
1 fix5 verified
🤖 AI & LLMsOpenAI
Freshover 1 year ago

Does this library distinguish `429 - Too many requests` from `429 - Too many tokens`? [question]

Describe the bug Sorry, not a bug - just a question! The OpenAI docs stipulate that they enforce rate limits in 2 ways: by request, and by -- source here I'm wondering if this library distinguishes by the two. I don't think it does, because here is an error log I ahve for the `429`: [code block] Upon confirmation from a maintainer that it doesn't, I will open a feature request requesting this differentiation. Thank you! P.S. I'd request a 3rd option for issue submission, a new `Question` one, in addition to the current `Bug` and `Feature request` options. To Reproduce N/A Code snippets [code block] OS mac Ventura (13.0.1) Node version 16.16 Library version 3.0.0

Confidence79%
79%
Verified Fix Available
1 fix4 verified
🛠️ Developer ToolsMicrosoft
Freshalmost 6 years ago

Custom webview editor API

Updated: April 24, 2020 The Custom Text Editor API has shipped with VS Code 1.44! Checkout the documentation and example extension to get started creating your custom text editors. If you encounter any issues using `CustomTextEditorProvider`, please open a new issue. This issue now tracks custom editors for binary files, which we aim to finalize for VS Code 1.46 --- - [Most recent status update][status] Overview The custom editor API aims to allow extensions to create fully customizable read/write editors that are used in place of VS Code's standard text editor for specific resources. These editors will be based on webviews. We will support editors for both binary and text resources A XAML custom editor, for example, could show a WYSIWYG style editor for your `.xaml` files. Our end goal is to give extensions the most flexibility possible while keeping VS Code fast, lean, and consistent. Non-goals Many features that are potentially related to custom editors are out of scope of this current proposal, including: - Specifying how resources are persisted and how resources are synchronized with webviews - Specifying what an edit is - Customization of VS Code's text editor using html / css - Embedding of VS Code's text editor in webviews - UI related to custom editors (beyond switching view types) These all would fall under separate feature requests. Many also be a better fit for an external helper library instead of VS Code core Tracking progress This issue thread captu

Confidence79%
79%
Verified Fix Available
1 fix5 verified
🌐 Web & Full-Stack
Freshabout 1 year ago

v4: Automatic content detection in monorepos only finds direct package

What version of Tailwind CSS are you using? 4.0.0-alpha.6 What build tool (or framework if it abstracts the build tool) are you using? "next": "^14.1.1" "@tailwindcss/postcss": "^4.0.0-alpha.6", "postcss": "^8.4.35", What version of Node.js are you using? v18.18.2 What browser are you using? N/A What operating system are you using? macOS Reproduction URL Attempting to do this inside an existing project, feel free to request a reproduction if you feel it will help and I'll make one (just takes a good chunk of time so wanted to check this level of detail was required first). Describe your issue I'm using tailwind in a mono repo, there is a basic design system which is just a bunch of components with tailwind classes and some config for styles (e.g. `bg-primary`). Upgrading to v4 was seamless for this, we were able to build and publish the design system. When using the design system in the monorepo in a Next.js project we're transpiling the components (rather than using the built version). I noticed that the styles were not being generated, I assumed this was because the automatic detection was not picking it up. Looking at the config code, it seems like we should be passing through the `base` as the config variable based on the config: [code block] At first I tried putting in `"../.."` so that it would map to a relative root directory, but it seems like the only way to use base is with an absolute path eg `"/Users/me/Code/monorepo/" which does work. It would just be n

Confidence79%
79%
Verified Fix Available
1 fix7 verified
☁️ Cloud & DevOpsDocker
Freshabout 8 years ago

"driver failed programming external connectivity on endpoint" (1.7.0-rc1)

I'm pretty sure this was working on docker-compose 1.7.0-rc1 before I installed the latest Docker for Mac beta, which upgraded to docker 1.11.0-rc3. I'm trying to get the socat service to run on port 172.17.0.1:8123, so that it's available to docker builds. My real yml uses an environment variable for the IP address, but it happens even when hardcoded. [code block] [code block] verbose.txt

Confidence79%
79%
Verified Fix Available
1 fix8 verified
☁️ Cloud & DevOpsDocker
Freshover 11 years ago

Fig can't connect to DOCKER_HOST=tcp://

On OS X with `boot2docker` 0.5.4: [code block] `docker build .` worked fine for me, but `fig` seems unable to handle the `tcp://` URL.

Confidence79%
79%
Verified Fix Available
1 fix5 verified
📱 Mobile & Cross-PlatformExpo
Freshover 1 year ago

Execution failed for task ':expo-modules-core:compileReleaseKotlin'.

Summary FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':expo-modules-core:compileReleaseKotlin'. > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction > Compilation error. See log for more details Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 3m 26s Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 549 actionable tasks: 549 executed Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information. Managed or bare workflow? managed What platform(s) does this occur on? Android Package versions [code block] Environment [code block] Reproducible demo Hi i have found this error when i do eas build through expo.dev Stacktrace (if a crash is involved) _No response_

Confidence79%
79%
Verified Fix Available
1 fix6 verified
☁️ Cloud & DevOpsDocker
Freshover 10 years ago

Add `copy` to the yaml configuration

I want to deploy different services using the same image but with a different configuration file. Currently to achieve that I can - build as many images that inherit from a common image plus a different COPY in each - mount a single file volume The first solution isn't feasible and the second it's overkill. I just want to copy a file, not keep it in sync Proposed configuration: [code block]

Confidence79%
79%
Verified Fix Available
1 fix5 verified
🗄️ DatabasesMongoDB
Freshalmost 8 years ago

Throw clean error if save() called in parallel on same doc instance

I have seen a few issues closed already regarding the `#save()` method and swallowing of exceptions. I've got this happening at the moment with the latest version in npm (4.4.12). Here's some code: [code block] I can post a more detailed example if required. Edit: Also, this happens with the promise interface as well, so `giftcard.save().then()` has the same result.

Confidence79%
79%
Verified Fix Available
1 fix4 verified
📱 Mobile & Cross-PlatformExpo
Freshabout 2 years ago

Expo ImagePicker fails to launch. Call to function 'ExponentImagePicker.launchCameraAsync' has been rejected.

Summary My users on Android arrive at a point where they can no longer launch the camera. User has given camera and media library permissions. User was able to open camera. User is no longer able to open Camera or Media Library. It seems to be related to the expo task manager too. I've found that the issue appears when: - Given you are tracking location via a task in the task manager - When you close the app - When you reopen the app - When you try to pick an image - Then the image picker will not open I've found that the issue does not appear when location tracking is not active when the app was last closed. Check the linked repo with reproducible example. [code block] Resulting error logs (source Sentry): [code block] Closing and reopening the app does not resolve the issue. Once a user has met this error, only reinstalling the app works. What platform(s) does this occur on? Android Environment expo-env-info 1.0.5 environment info: System: OS: macOS 12.0.1 Shell: 3.2.57 - /bin/bash Binaries: Node: 16.12.0 - ~/.nvm/versions/node/v16.12.0/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 8.1.0 - ~/.nvm/versions/node/v16.12.0/bin/npm Watchman: 2021.06.07.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 IDEs: Android Studio: 4.1 AI-201.8743.12.41.7199119 Xcode

Confidence79%
79%
Verified Fix Available
1 fix5 verified
🌐 Web & Full-Stack
Fresh7 months ago

TypeError: Failed to fetch dynamically imported module

Describe the bug Since switching to Vite we noticed a new production issue, where sometimes users are encountering an error if we deploy while they have an active session: > TypeError: Failed to fetch dynamically imported module I believe this is because if any code is modified in an area that Vite would turn into a dynamic module, then the file hash changes, however when they try to visit an area that would trigger the dynamic load, those files no longer exist so they hit the error message above. Quoting from https://stackoverflow.com/a/74057337/21061 > When you dynamically import a route/component, during build it creates a separate chunk. By default, chunk filenames are hashed according to their content – Overview.abc123.js. If you don't change the component code, the hash remains the same. If the component code changes, the hash changes too - Overview.32ab1c.js. This is great for caching. > > Now this is what happens when you get this error: > > - You deploy the application > - Your Home chunk has a link to /overview route, which would load Overview.abc123.js > - Client visits your site > - You make changes in your code, not necessarily to the Overview component itself, but maybe to some children components that Overview imports. > - You deploy changes, and Overview is built with a different hash now - Overview.32ab1c.js > - Client clicks on /overview link - gets the Failed to fetch dynamically imported module error, because Overview.abc123.js no longer exists > > T

Confidence79%
79%
Verified Fix Available
1 fix7 verified
🔌 APIs & SDKs
Freshabout 2 years ago

Improve axios stack traces

Currently, if you use axios with async / await, you get a stack trace like this: [code block] It doesn't show you much about what called Axios., which makes debugging quite difficult! This is because `settle` calls `createError`: https://github.com/axios/axios/blob/master/lib/core/settle.js#L12-L24 Which creates a new error with a brand new stack trace: https://github.com/axios/axios/blob/master/lib/core/createError.js#L15-L18 Perhaps we can fix this by creating an error before the request goes out and stitching it to the new error's stack trace?

Confidence79%
79%
Verified Fix Available
1 fix8 verified
☁️ Cloud & DevOps
Freshover 3 years ago

Optional arguments in object variable type definition

Current Terraform Version [code block] Proposal I like the `object` variable type and it would be nice to be able to define optional arguments which can carry `null` value too, to use: [code block] instead of: [code block]

Confidence79%
79%
Verified Fix Available
1 fix12 verified
🌐 Web & Full-Stack
Freshalmost 4 years ago

Bundling SSR Modules using CommonJS exports alias results in ReferenceError: exports is not defined

Describe the bug When importing an SSR module, if - it uses the `exports` alias instead of `module.exports`, - `ssr.noExternal` is declared with the module Vite is unable to evaluate it. This can also happen with the more common `module.exports`, but seems to not be guaranteed. While this behavior may seem esoteric due to modern proliferation of `module.exports`, this is a feature of Node since v0.1.16 and has not been deprecated. In addition, there are instances of various npm modules in the wild which use this method of exporting fields, including, but not limited to: - chokidar - cookie - consolidate - d3 (node) - @material-ui/core - mysql2 - topcoat-preact ...and much, much, more searchable on GitHub. I believe this is also an output of some bundlers. Reproduction https://github.com/GrygrFlzr/vite-cjs-ssr [code block] Visit http://localhost:3000 to trigger SSR, which consists of a very simple script that uses the `cookie` npm module. The page will render `exports is not defined` and errors will show up in the server console: [code block] System Info - `vite` version: 2.1.2 - Operating System: Windows 10 10.0.19042 - Node version: 14.16.0 - Package manager and version: npm 6.14.11

Confidence79%
79%
Verified Fix Available
1 fix4 verified
← PrevPage 47 of 1250Next →