René's URL Explorer Experiment


Title: [feature/refactor] general bugs · Issue #165 · ZenCodeLang/ZenCode · GitHub

Open Graph Title: [feature/refactor] general bugs · Issue #165 · ZenCodeLang/ZenCode

X Title: [feature/refactor] general bugs · Issue #165 · ZenCodeLang/ZenCode

Description: I'm going to use this issue to track all the bugs I find while working on the LSP Error Reporting missing call argument reported incorrectly This should be reported as too many call arguments or better 1 parameter expecetd but 2 were giv...

Open Graph Description: I'm going to use this issue to track all the bugs I find while working on the LSP Error Reporting missing call argument reported incorrectly This should be reported as too many call arguments or be...

X Description: I'm going to use this issue to track all the bugs I find while working on the LSP Error Reporting missing call argument reported incorrectly This should be reported as too many call arguments o...

Opengraph URL: https://github.com/ZenCodeLang/ZenCode/issues/165

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[feature/refactor] general bugs","articleBody":"I'm going to use this issue to track all the bugs I find while working on the LSP\r\n\r\n## Error Reporting\r\n- [ ] `missing call argument` reported incorrectly\r\nThis should be reported as `too many call arguments` or better `1 parameter expecetd but 2 were given`\r\n```zenscript\r\nblock.setFriction(1, \"\");\r\n```\r\nThis happens [here](https://github.com/ZenCodeLang/ZenCode/blob/3b7a3024fd0b759ecd1b2c0c6340ef3097c90845/CodeModel/src/main/java/org/openzen/zenscript/codemodel/compilation/MatchedCallArguments.java#L128)\r\n- [ ] call argument error position is incorrect\r\nThe position should be reported in between the `()`\r\n![image](https://github.com/user-attachments/assets/002b6f31-1b8e-4e3a-b59b-ec124a715f03)\r\n- [ ] Unknown variable has a weird reporting message, [this](https://github.com/ZenCodeLang/ZenCode/blob/f325e2f54221dd0df3cd5f29d1624a3a2c2293b9/CodeModel/src/main/java/org/openzen/zenscript/codemodel/compilation/CompileErrors.java#L192) can probably be more vague, like `cannot find X`\r\n- [ ] (opinion) `ambigious call` is too verbose\r\n\r\n```zenscript\r\nvar b = a.map\u003cstring\u003e(x =\u003e \"a\" + x);\r\n```\r\n is reporting as\r\n\r\n```\r\nAmbiguous call; multiple headers match:\r\n\u003cU@Arrays.zs:50:12\u003e(projection: function(value: string): string): string[]\r\n\u003cU@arrays_map_2.zc:7:12\u003e(projection: function(value: string): string): string[]\r\n```\r\n\r\nCould be reported as:\r\n```\r\nAmbiguous call; multiple headers match:\r\n\u003cU@Arrays.zs:50:12\u003e(function(string): string): string[]\r\n\u003cU@arrays_map_2.zc:7:12\u003e(function(string): string): string[]\r\n```\r\nThere could be more cleanup, but I think removing the parameter names are a good start\r\nJava reports this error as:\r\n```\r\nAmbiguous method call: both 'CompilerErrors.doThing(Function\u003cString, String\u003e)' and 'CompilerErrors.doThing(int[])' match.\r\n```\r\n\r\n\r\n- [ ] No operator in type position is incorrect when in call arguments\r\nThe position should be reported on the operator, instead of on the function call\r\n![image](https://github.com/user-attachments/assets/5ddc7257-9c92-4982-8425-518d86221341)\r\n\r\n- [ ] Iterator errors are reported in the wrong place\r\n![image](https://github.com/user-attachments/assets/8945123b-bbea-4fac-b571-18173ca80228)\r\n\r\n## General\r\n- [ ] If a class has a constructor, the ContructorMember's body never gets set and is always null\r\nhttps://github.com/ZenCodeLang/ZenCode/blob/f325e2f54221dd0df3cd5f29d1624a3a2c2293b9/CodeModel/src/main/java/org/openzen/zenscript/codemodel/definition/ClassDefinition.java#L46","author":{"url":"https://github.com/jaredlll08","@type":"Person","name":"jaredlll08"},"datePublished":"2024-08-11T08:36:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/165/ZenCode/issues/165"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3e2137cd-e5e5-f5b6-89bb-993eb708b688
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9F4A:CCC2B:732430:9359B6:6990AAF2
html-safe-nonce0da1b9dc6ee6a901ff2882a7ad031bb2bfcab604ee503aede7340ac997c9a060
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjRBOkNDQzJCOjczMjQzMDo5MzU5QjY6Njk5MEFBRjIiLCJ2aXNpdG9yX2lkIjoiNDQ5NTY3NDIzNzY1OTQyNTUyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac53c50e1f742546b92dd99ea5d61b09664ea8eb75c9197f15cbf94943ea5bef8a
hovercard-subject-tagissue:2459488905
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ZenCodeLang/ZenCode/165/issue_layout
twitter:imagehttps://opengraph.githubassets.com/de7c75f6655abb8046606180202ea85b258610cdc74490adc8b37d5b34af2dc5/ZenCodeLang/ZenCode/issues/165
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/de7c75f6655abb8046606180202ea85b258610cdc74490adc8b37d5b34af2dc5/ZenCodeLang/ZenCode/issues/165
og:image:altI'm going to use this issue to track all the bugs I find while working on the LSP Error Reporting missing call argument reported incorrectly This should be reported as too many call arguments or be...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejaredlll08
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/ZenCodeLang/ZenCode git https://github.com/ZenCodeLang/ZenCode.git
octolytics-dimension-user_id68248418
octolytics-dimension-user_loginZenCodeLang
octolytics-dimension-repository_id309683985
octolytics-dimension-repository_nwoZenCodeLang/ZenCode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id309683985
octolytics-dimension-repository_network_root_nwoZenCodeLang/ZenCode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/165#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FZenCodeLang%2FZenCode%2Fissues%2F165
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FZenCodeLang%2FZenCode%2Fissues%2F165
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ZenCodeLang%2FZenCode
Reloadhttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/165
Reloadhttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/165
Reloadhttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/165
ZenCodeLang https://patch-diff.githubusercontent.com/ZenCodeLang
ZenCodehttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FZenCodeLang%2FZenCode
Fork 8 https://patch-diff.githubusercontent.com/login?return_to=%2FZenCodeLang%2FZenCode
Star 14 https://patch-diff.githubusercontent.com/login?return_to=%2FZenCodeLang%2FZenCode
Code https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode
Issues 36 https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues
Pull requests 0 https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/pulls
Actions https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/actions
Projects 0 https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/projects
Security 0 https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/security
Insights https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/pulse
Code https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode
Issues https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues
Pull requests https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/pulls
Actions https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/actions
Projects https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/projects
Security https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/security
Insights https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ZenCodeLang/ZenCode/issues/165
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ZenCodeLang/ZenCode/issues/165
[feature/refactor] general bugshttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/165#top
https://github.com/jaredlll08
https://github.com/jaredlll08
jaredlll08https://github.com/jaredlll08
on Aug 11, 2024https://github.com/ZenCodeLang/ZenCode/issues/165#issue-2459488905
herehttps://github.com/ZenCodeLang/ZenCode/blob/3b7a3024fd0b759ecd1b2c0c6340ef3097c90845/CodeModel/src/main/java/org/openzen/zenscript/codemodel/compilation/MatchedCallArguments.java#L128
https://private-user-images.githubusercontent.com/5553605/356856543-002b6f31-1b8e-4e3a-b59b-ec124a715f03.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEwODg5MjcsIm5iZiI6MTc3MTA4ODYyNywicGF0aCI6Ii81NTUzNjA1LzM1Njg1NjU0My0wMDJiNmYzMS0xYjhlLTRlM2EtYjU5Yi1lYzEyNGE3MTVmMDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAyMTRUMTcwMzQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWY1NGJmODVhMWQ1YTM3NmI5ZGE1ODkzYTNkNDY5YTA4ZDEwMWVkMjMzMDZhODU2MGRhYThiMjFiNTgyNjNjZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Si4E96eg8Y-GfdWaeQJMw0XlCVTGJeYH7LQkZPdSpRE
thishttps://github.com/ZenCodeLang/ZenCode/blob/f325e2f54221dd0df3cd5f29d1624a3a2c2293b9/CodeModel/src/main/java/org/openzen/zenscript/codemodel/compilation/CompileErrors.java#L192
https://private-user-images.githubusercontent.com/5553605/356859432-5ddc7257-9c92-4982-8425-518d86221341.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEwODg5MjcsIm5iZiI6MTc3MTA4ODYyNywicGF0aCI6Ii81NTUzNjA1LzM1Njg1OTQzMi01ZGRjNzI1Ny05YzkyLTQ5ODItODQyNS01MThkODYyMjEzNDEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAyMTRUMTcwMzQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzU1NzU4YmM3MmEzZGE2ODhhMzBkMjUxZDBhOWIwMTJkOWIyZjM0ODBlYzcyYTAxM2IyZGM5NjY0YjFhMTExNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.8LeCNlrZvO9SWEJP3Nb53_3p4lyR665koxKDJ0b84sM
https://private-user-images.githubusercontent.com/5553605/356860124-8945123b-bbea-4fac-b571-18173ca80228.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEwODg5MjcsIm5iZiI6MTc3MTA4ODYyNywicGF0aCI6Ii81NTUzNjA1LzM1Njg2MDEyNC04OTQ1MTIzYi1iYmVhLTRmYWMtYjU3MS0xODE3M2NhODAyMjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAyMTRUMTcwMzQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTQ2NTFkZWQyZTBmODM3OTY2ZTg1YTNkMzQ5ODVmNGEzYjMyYzdlNGEzMjQ2NDNiMjY3ZWRmZjNkNTViZDMzNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.wDL-WUxsjQsh-tCLIlQ5tJKV9XV-u-EFFT5lHkBiiwA
ZenCode/CodeModel/src/main/java/org/openzen/zenscript/codemodel/definition/ClassDefinition.javahttps://github.com/ZenCodeLang/ZenCode/blob/f325e2f54221dd0df3cd5f29d1624a3a2c2293b9/CodeModel/src/main/java/org/openzen/zenscript/codemodel/definition/ClassDefinition.java#L46
f325e2fhttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/commit/f325e2f54221dd0df3cd5f29d1624a3a2c2293b9
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.