Siblings of #3756: untyped-receiver built-in method calls in other languages
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- csharp, go, java, javascript, kotlin, php, python, ruby, typescript
- Ambito
- tooling
Direzione di ricerca
Start with _resolve_one and the _BUILTIN_INSTANCE_METHODS and _BUILTIN_NAMESPACES lists in gitgalaxy/core/call_resolver.py; compare how each language reaches the untyped receiver fallback. Check the TypeScript leftover in zod and use the language Level 2 checks in tests/tools/call_graph_resolution.py where available. Done means the affected built-in calls no longer link confidently to same-named repository methods, with each language's behavior measured or its fallback ruled out.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Siblings: #3756 (fixed for TS/JS in #4990)
Class: a call through an untyped, non-this receiver whose method name is a language built-in (s.trim(), m.get(), list.add()) links confidently (file/import) to a same-named repo method. #4990 fixed it in the resolver's untyped-receiver fallback (_resolve_one, gitgalaxy/core/call_resolver.py) with per-language lists _BUILTIN_INSTANCE_METHODS / _BUILTIN_NAMESPACES, filled only for TypeScript/JavaScript. The fallback itself is language-generic, so the other languages hit by it keep the bug until their lists exist and are measured.
Same mechanism for each box: add the language's built-in instance-method names (and global namespaces where relevant) and measure with that language's Level 2 check where one exists (tests/tools/call_graph_resolution.py). Before adding a list, check that the language really reaches this fallback with built-in names (duplicate search done per member: no open issue found).
- TypeScript leftover:
handleMapResult -> util.ts has@696on zod@2bf7b0630d53, the lastconfident_external, reached by a step #4990 does not cover. Diagnose it. - Python: check whether
calls_out_qualifiers(d.get()on a dict) already covers the whole built-in class (str/list/dict/set methods); pyan Level 2 does not flag lib targets as external, so measure some other way. - Java:
java.lang/java.utilmethods (list.add,map.get,s.equals,toString); scip-java Level 2 is the reference. - Kotlin: stdlib collection/String methods. (#6466)
- C#: BCL methods (
List.Add,Dictionary.TryGetValue,string.Trim); no Level 2 reference yet. - Ruby: core methods (
each,map,include?,[]); no Level 2 reference yet. - PHP: method-only (built-ins are mostly free functions); confirm and close the box if nothing reaches the fallback.
- Go: methods on stdlib types (
strings.Builder.WriteString,bytes.Buffer); confirm whether untyped receivers reach the fallback.
- Lingua principale
- Python
- Stelle
- 57
- Fork
- 11
- Merge medio
- 1h 35m
- PR unite (30g)
- 975
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di squid-protocol/gitgalaxy
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
squid-protocol/gitgalaxy#7827 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
scope:frontier
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
squid-protocol/gitgalaxy#7900 ·
I maintainer di solito rispondono entro 1 giorno
-
core-engine scope:infra testing
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
squid-protocol/gitgalaxy#7863 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
squid-protocol/gitgalaxy#7834 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
squid-protocol/gitgalaxy#7828 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di squid-protocol/gitgalaxy
Issue simili
-
Remove the `pull_request_target` workflow before GitHub blocks itForse già presa @jat255 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
IBM/mcp-context-forge#7483 ·
I maintainer di solito rispondono entro 2 giorni
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
[Bug Report]: OpenAI 辅助 API 连通性测试因输出上限仅 1 token 误报“未知错误”Forse già presa @fjfanjian l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Project-N-E-K-O/N.E.K.O#3640 ·
I maintainer di solito rispondono entro 1 giorno
-
author-page correction
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
acl-org/acl-anthology#10808 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno