Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable values not visible on hover #912

Open
zanhk opened this issue Jul 21, 2024 · 4 comments
Open

Variable values not visible on hover #912

zanhk opened this issue Jul 21, 2024 · 4 comments
Labels
feat: debug Issue related to debugging support (scope)

Comments

@zanhk
Copy link

zanhk commented Jul 21, 2024

Describe the Bug

image

Only on .astro file when I go on hover on a variable in debug mode it show undefined.

Windows, latest version of the extension, latest version of astro.

Am I missing some settings?

@github-actions github-actions bot added the needs triage Issue needs to be triaged label Jul 21, 2024
@zanhk
Copy link
Author

zanhk commented Jul 21, 2024

My whole settings and extension list

{
	/*********************************
	 * WORKBENCH
	 ********************************/
	"workbench.iconTheme": "material-icon-theme",
	"workbench.startupEditor": "newUntitledFile",
	"workbench.editor.labelFormat": "short",
	"workbench.tree.indent": 16,
	"workbench.editor.highlightModifiedTabs": true,
	"workbench.editor.limit.enabled": true,
	"workbench.editor.limit.perEditorGroup": true,
	"workbench.editor.limit.value": 7,
	/*********************************
	 * WINDOW
	 ********************************/
	"window.restoreFullscreen": true,
    "window.commandCenter": false,
	"window.zoomLevel": 1,
	/*********************************
	 * FILES
	 ********************************/
	"files.defaultLanguage": "${activeEditorLanguage}",
	"files.trimTrailingWhitespace": true,
	"files.associations": {
		"*.mustache": "html",
		"*.svx": "svelte",
		"*.mdoc": "markdown",
		"*.css": "tailwindcss"
	},
	"files.autoGuessEncoding": true,
	"files.insertFinalNewline": true,
	/*********************************
	 * EDITOR
	 ********************************/
	"editor.fontFamily": "JetBrains Mono, Fira code, Dank mono, 'Cascadia Code', monospace",
	"editor.fontLigatures": true,
	"editor.formatOnPaste": true,
	"editor.formatOnSave": true,
	"editor.formatOnType": true,
	"editor.mouseWheelZoom": true,
	"editor.suggestSelection": "first",
	"editor.tabCompletion": "on",
	"editor.detectIndentation": false,
	"editor.insertSpaces": false,
	"editor.hover.delay": 500,
	"editor.hover.sticky": false,
	"editor.hover.hidingDelay": 100,
	"editor.acceptSuggestionOnEnter": "off",
	"editor.defaultFormatter": "biomejs.biome",
	"editor.linkedEditing": true,
	"editor.inlineSuggest.enabled": true,
	"editor.minimap.maxColumn": 60,
	"editor.wordSeparators": "`~!@%^&*()-=+[{]}\\|;:'\",.<>/?",
	"editor.bracketPairColorization.enabled": true,
	"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
	"editor.acceptSuggestionOnCommitCharacter": false,
	"editor.guides.bracketPairs": true,
	"editor.inlayHints.enabled": "offUnlessPressed",
	"editor.minimap.enabled": false,
	"editor.cursorBlinking": "solid",
	"editor.gotoLocation.multipleDefinitions": "goto",
	"editor.gotoLocation.multipleTypeDefinitions": "goto",
	"editor.gotoLocation.multipleDeclarations": "goto",
	"editor.gotoLocation.multipleImplementations": "goto",
	"editor.gotoLocation.multipleReferences": "goto",
	"editor.stickyScroll.enabled": false,
	"editor.codeActionsOnSave": {
		"quickfix.biome": "always",
		"source.organizeImports.biome": "always"
	},
	"editor.quickSuggestions": {
		"strings": "on"
	},
	"editor.tokenColorCustomizations": {
		"textMateRules": [
			{
				"scope": [
					"comment",
					"entity.name.type.class",
					"keyword",
					"constant",
					"storage.modifier",
					"storage.type.class.js"
				],
				"settings": {
					"fontStyle": "italic"
				}
			},
			{
				"scope": [
					"invalid",
					"keyword.operator",
					"constant.numeric.css",
					"keyword.other.unit.px.css",
					"constant.numeric.decimal.js",
					"constant.numeric.json"
				],
				"settings": {
					"fontStyle": ""
				}
			}
		]
	},
	/*********************************
	 * TERMINAL
	 ********************************/
	"terminal.integrated.scrollback": 10000,
	"terminal.integrated.copyOnSelection": true,
	"terminal.integrated.defaultProfile.windows": "Command Prompt",
	"terminal.integrated.enableMultiLinePasteWarning": "never",
	/*********************************
	 * GIT
	 ********************************/
	"git.postCommitCommand": "push",
	"git.autofetch": true,
	"git.enableSmartCommit": true,
	"git.confirmSync": false,
	"git.openRepositoryInParentFolders": "never",
	"git.enableCommitSigning": true,
	/*********************************
	 * EXPLORER
	 ********************************/
	"explorer.autoReveal": false,
	"explorer.incrementalNaming": "smart",
	"explorer.compactFolders": false,
	"explorer.confirmDelete": false,
	"explorer.confirmDragAndDrop": false,
	/*********************************
	 * DEBUG
	 ********************************/
	"debug.openDebug": "openOnDebugBreak",
	"debug.allowBreakpointsEverywhere": true,
	"debug.javascript.autoAttachFilter": "disabled",
	/*********************************
	 * JS/TS
	 ********************************/
	"javascript.updateImportsOnFileMove.enabled": "always",
	"typescript.updateImportsOnFileMove.enabled": "always",
	"typescript.inlayHints.parameterNames.enabled": "all",
	"typescript.preferGoToSourceDefinition": true,
	"javascript.preferGoToSourceDefinition": true,
	"typescript.referencesCodeLens.enabled": true,
	"javascript.referencesCodeLens.enabled": true,
	"typescript.referencesCodeLens.showOnAllFunctions": true,
	"javascript.referencesCodeLens.showOnAllFunctions": true,
	/*********************************
	 * SECURITY
	 ********************************/
	"security.workspace.trust.untrustedFiles": "open",
	/*********************************
	 * OTHERS
	 ********************************/
	"extensions.ignoreRecommendations": true,
	"gulp.autoDetect": "on",
	"emmet.triggerExpansionOnTab": true,
	"references.preferredLocation": "view",
	"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
	"json.schemaDownload.enable": true,
	"settingsSync.ignoredSettings": ["-window.zoomLevel"],
	/*********************************
	 * EXTENSIONS
	 ********************************/
	"intelephense.environment.phpVersion": "8.1.10",
	"livePreview.notifyOnOpenLooseFile": false,
	"livePreview.customExternalBrowser": "Chrome",
	"livePreview.debugOnExternalPreview": true,
	"github.copilot.editor.enableAutoCompletions": true,
	"github.copilot.enable": {
		"*": true,
		"plaintext": true,
		"markdown": true,
		"scminput": true,
		"yaml": true
	},
	"tailwindCSS.emmetCompletions": true,
	"tailwindCSS.validate": true,
	"tailwindCSS.classAttributes": ["class", "className", "ngClass", "class:list"],
	"go.toolsManagement.autoUpdate": true,
	"markdown-pdf.mermaidServer": "https://cdn.jsdelivr.net/npm/mermaid@10.4.0/dist/mermaid.min.js",
	"cSpell.enableFiletypes": ["*", "!json"],
	"cSpell.language": "en,it",
	"cSpell.diagnosticLevel": "Information",
	"cSpell.userWords": [
		"alpinejs",
		"amet",
		"apexcharts",
		"astro",
		"astrojs",
		"Astros",
		"autofetch",
		"backoffice",
		"bezier",
		"biomejs",
		"bitrack",
		"bmewburn",
		"bquadro",
		"Builtins",
		"Cascadia",
		"casl",
		"clevision",
		"Clickup",
		"clonedeep",
		"clsx",
		"Configuratore",
		"consectetur",
		"consts",
		"dacpac",
		"dall",
		"datetime",
		"daygrid",
		"debuggare",
		"Dreamteam",
		"Edilgrappa",
		"Erreplus",
		"esbenp",
		"evenodd",
		"extralight",
		"fancyapps",
		"favicons",
		"Fffp",
		"Fira",
		"Fnkc",
		"fontsource",
		"frontmatter",
		"fullcalendar",
		"Fullscreen",
		"Giscus",
		"gistpad",
		"Giulio",
		"grav",
		"greensock",
		"gridjs",
		"gsap",
		"hideme",
		"hookform",
		"httrack",
		"iconify",
		"indicizzatore",
		"inout",
		"intelephense",
		"isequal",
		"keystar",
		"Kvalue",
		"languagedetector",
		"mouseleave",
		"Navdata",
		"onwarn",
		"opengraph",
		"paginata",
		"Parens",
		"payloadcms",
		"piniaificare",
		"popperjs",
		"prebuild",
		"PRIVJS",
		"procedurizzare",
		"Puravisione",
		"quickfix",
		"reduxjs",
		"resx",
		"rgba",
		"scminput",
		"scrollback",
		"splide",
		"splidejs",
		"supervisord",
		"sveltefirets",
		"sveltejs",
		"sveltekit",
		"sveltia",
		"switchare",
		"syncagent",
		"tabler",
		"tailwindcss",
		"tbody",
		"teleassistenza",
		"thead",
		"timegrid",
		"todos",
		"topbar",
		"triggerare",
		"tsconfigs",
		"typeof",
		"unlighthouse",
		"unlocalized",
		"unstyled",
		"upsert",
		"velzon",
		"versionamento",
		"vite",
		"vsintellicode",
		"vuexy",
		"webm",
		"woocommerce",
		"xelement",
		"xstate",
		"yoyo",
		"yzhang",
		"Zanchetta",
		"zankhq",
		"zanks",
		"zanksbi"
	],
	/*********************************
	 * LANGUAGE SPECIFIC SETTINGS
	 ********************************/
	"[markdown]": {
		"files.trimTrailingWhitespace": false,
		"editor.defaultFormatter": "yzhang.markdown-all-in-one",
		"editor.wordWrap": "off"
	},
	"[css]": {
		"editor.suggest.insertMode": "replace"
	},
	"[astro]": {
		"editor.defaultFormatter": "astro-build.astro-vscode"
	},
	"[php]": {
		"editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
	},
}
aaron-bond.better-comments
astro-build.astro-vscode
biomejs.biome
bradlc.vscode-tailwindcss
github.copilot
github.copilot-chat
github.vscode-github-actions
ms-vscode-remote.remote-wsl
ms-vscode.live-server
ms-vscode.vs-keybindings
oven.bun-vscode
pkief.material-icon-theme
risingstack.astro-alpinejs-syntax-highlight
shopify.theme-check-vscode
streetsidesoftware.code-spell-checker
streetsidesoftware.code-spell-checker-italian
stripe.markdoc-language-support
tamasfe.even-better-toml
tombonnike.vscode-status-bar-format-toggle
visualstudioexptteam.vscodeintellicode
yzhang.markdown-all-in-one

@Princesseuh
Copy link
Member

Princesseuh commented Jul 21, 2024

Could you share the project / file in question? We don't have the best support for debugging at the moment, so it's also very possible this is just not supported right now.

@zanhk
Copy link
Author

zanhk commented Jul 22, 2024

I will create a minimal repo

@Princesseuh Princesseuh added feat: debug Issue related to debugging support (scope) and removed needs triage Issue needs to be triaged labels Jul 22, 2024
@zanhk
Copy link
Author

zanhk commented Aug 17, 2024

I almost forgot, here s the minimal repo https://github.com/zanhk/astro-hover-undefined

The problem happen with or without the extension.

The problem happen as well in empty vscode profile with no extensions and no settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: debug Issue related to debugging support (scope)
Projects
None yet
Development

No branches or pull requests

2 participants