Git Product home page Git Product logo

better-ts-errors.nvim's People

Contributors

andrew-t-james-core avatar icholy avatar jamescdavis avatar nullvoxpopuli avatar oleggulevskyy avatar rayguo-ergou avatar

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  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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

better-ts-errors.nvim's Issues

Crashing when trying to view an error

Description

   Error  15:11:37 msg_show.lua_error E5108: Error executing lua ...b/.local/share/nvim/lazy/nui.nvim/lua/nui/utils/init.lua:29: Invalid window id: 1000
stack traceback:
	[C]: in function 'nvim_win_get_width'
	...b/.local/share/nvim/lazy/nui.nvim/lua/nui/utils/init.lua:29: in function 'get_window_size'
	....local/share/nvim/lazy/nui.nvim/lua/nui/layout/utils.lua:94: in function 'get_container_info'
	....local/share/nvim/lazy/nui.nvim/lua/nui/layout/utils.lua:161: in function 'update_layout_config'
	...b/.local/share/nvim/lazy/nui.nvim/lua/nui/popup/init.lua:388: in function 'update_layout'
	...azy/better-ts-errors.nvim/lua/better-ts-errors/popup.lua:25: in function 'show'
	...tter-ts-errors.nvim/lua/better-ts-errors/diagnostics.lua:138: in function 'show'
	...lazy/better-ts-errors.nvim/lua/better-ts-errors/main.lua:31: in function 'toggle'
	...lazy/better-ts-errors.nvim/lua/better-ts-errors/init.lua:11: in function 'toggle'
	[string ":lua"]:1: in main chunk

Steps to reproduce

<leader>dd on an error in a svelte file

Expected behaviour

The UI to show the formatted error

Environment

NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1720049189

  • better-ts-errors version: latest

I don't know what I did, but I see shell stuff

Description

What I see with this plugin:

Error
(TS2339)
Property 'send' does not exist on type 
�]0;nvp@Hephaestus: source "$SCRIPTS/bash-support/command-defaults.sh"��]0;nvp@Hephaestus: source "$SCRIPTS/bash-support/config.sh"��]0;nvp@Hephaestus: source "$SCRIPTS/bash-support/aliases.sh"��]0;nvp@Hephaestus: source "$HOME/shell/bash/npm.sh"��]0;nvp@Hephaestus: source "$HOME/shell/bash/gg.sh"��]0;nvp@Hephaestus: source "$HOME/shell/bash/github-action-runner.sh"��]0;nvp@Hephaestus: source "$HOME/shell/bash/git.sh"��]0;nvp@Hephaestus: source "$SCRIPTS/bash-support/environment-augmentations.sh"�{
  needsControls: boolean;
  splitHorizontally: boolean;
  isMinimized: boolean;
  isMaximized: boolean;
}
.

what my language server reports:

Diagnostics:
1. glint: Property 'send' does not exist on type '{ needsControls: boolean; splitHorizontally: boolean; isMinimized: boolean; isMaximized: boolean; }'. [2339]

Steps to reproduce

no clue, tbh

Expected behavior

some formatted version of what the language server reports

Environment

  • Neovim version: nighthly
  • better-ts-errors version: latest

Possible to implement within lsp handler?

Describe the problem

For example, the plugin davidosomething/format-ts-errors.nvim does something similar, but rather than triggering a new buffer/window with a shortcut, they instruct the user to overwrite the existing "textDocument/publishDiagnostics" LSP handler, in order to format the actual LSP error hover. I think having an option to use existing formatting code in this way would be great.

Popup window is too narrow

Description

The popup window isn't wide enough to show the entire error:

image

Steps to reproduce

  1. Opened the popup for a deeply nested error
  2. The error contents were cut off.

Expected behavior

A configuration option to make the window larger.

Environment

  • Neovim version: Nightly
  • better-ts-errors version: latest

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.