repo
stringlengths
5
53
pr_number
int32
1
321k
task_type
stringclasses
2 values
issue_text
stringlengths
0
81.2k
pr_title
stringlengths
1
319
pr_body
stringlengths
0
105k
base_sha
stringlengths
40
40
head_sha
stringlengths
40
40
gold_diff
stringlengths
0
202M
changed_files
listlengths
0
100
review_threads
listlengths
0
100
test_patch
stringlengths
0
23.4M
merged
bool
1 class
yangshun/tech-interview-handbook
697
issue_to_patch
fix: update the broken hyperlink for "Master the sliding window technique" on arrays
In arrays section, there's a leetcode reference for **_Master the sliding window technique_**. Currently, the [existing link](https://discuss.leetcode.com/topic/30941/here-is-a-10-line-template-that-can-solve-most-substring-problems) redirects to https://leetcode.com/discuss/post/topic/30941/ which is broken. This patc...
2eaec046173493e79b79189aa50e97535199b0cc
2647ec25a74ad1ddda7bdc35d94284b72f5acb4d
diff --git a/apps/website/contents/algorithms/array.md b/apps/website/contents/algorithms/array.md index c65ad37406..e63e367382 100644 --- a/apps/website/contents/algorithms/array.md +++ b/apps/website/contents/algorithms/array.md @@ -82,7 +82,7 @@ Note that because both arrays and strings are sequences (a string is an...
[ "apps/website/contents/algorithms/array.md" ]
[]
true
yangshun/tech-interview-handbook
693
issue_to_patch
fix: created a margin between buttons
I was using the handbook in my phone and noticed a small frontend issue between two buttons, they were overlapping a little. **BEFORE** ![image](https://github.com/user-attachments/assets/e50d081a-e9f9-4fff-9e66-268287825537) **AFTER** ![image](https://github.com/user-attachments/assets/6cf64895-e5b7-4120-8...
5dd02b1d47d351c58ee7464466b02827553104b2
91bd0981001d6148374fe2532f8d7d925274da4a
diff --git a/apps/website/src/pages/index.js b/apps/website/src/pages/index.js index 2cbf97c773..0fc201966e 100755 --- a/apps/website/src/pages/index.js +++ b/apps/website/src/pages/index.js @@ -801,7 +801,7 @@ function SponsorshipSection() { </div> <div className="margin-top--lg text--center"...
[ "apps/website/src/pages/index.js" ]
[]
true
yangshun/tech-interview-handbook
668
issue_to_patch
[contents] update user count to 1,000,000 users
## Description As previously mentioned in #667, this PR now matches the user count on the documentation with the numbers displayed on the website itself. Leaving the other two issues to be fixed upon further discussion.
94e3807c7299a9d387edd592e3f0031983d4f141
8e869fd3a7ea3c8463a6aa96fe8115df7fc448fc
diff --git a/README.md b/README.md index e842e72ce9..b82baa6a8a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ ## What is this? -Not everyone has the time to do a few hundred LeetCode questions. Here are _free and curated_ technical interview preparation materials for busy engineers, brought to you by me...
[ "README.md" ]
[]
true
yangshun/tech-interview-handbook
666
issue_to_patch
Bug: Contribute your success stories/testimonials not working ## Bug Description: As could be seen in the pinned issue #255 and the website itself under the **Success stories** Section on the main page, the link to [open a pull request](https://github.com/yangshun/tech-interview-handbook/edit/master/website/src/data...
[fix] update hyperlink for "Open a pull request!" on home page
This PR should close #665, I have changed the hyperlink for the text `Open a pull request!` specificially in [this file](https://github.com/yangshun/tech-interview-handbook/blob/main/apps/website/src/pages/index.js) from this [invalid link](https://github.com/yangshun/tech-interview-handbook/edit/master/website/src/dat...
b60673b2c8071409ff44460f86dd51029ea315b9
c92edc1ec419bd25bf0d405bfd1a4030c85db1d7
diff --git a/apps/website/src/pages/index.js b/apps/website/src/pages/index.js index ffa213bef6..2cbf97c773 100755 --- a/apps/website/src/pages/index.js +++ b/apps/website/src/pages/index.js @@ -745,7 +745,7 @@ function SuccessStoriesSection() { <p className="margin-vert--lg text--center"> Would you...
[ "apps/website/src/pages/index.js" ]
[]
true
yangshun/tech-interview-handbook
639
issue_to_patch
contents: add linked list implementation in C++
Add `std::list` as the linked list implementation in C++.
3365eda7775f94b2da75cde801cf9a50b6d2ce12
9dd6b181187e54daf15603d7581962103555f565
diff --git a/apps/website/contents/algorithms/linked-list.md b/apps/website/contents/algorithms/linked-list.md index b5429f0e23..38dd9d7eda 100644 --- a/apps/website/contents/algorithms/linked-list.md +++ b/apps/website/contents/algorithms/linked-list.md @@ -62,7 +62,7 @@ Out of the common languages, only Java provides...
[ "apps/website/contents/algorithms/linked-list.md" ]
[]
true
yangshun/tech-interview-handbook
33
issue_to_patch
Add resume tips section
Fixes #29
621472ecb6bb929372683190bf4a79cfb3b3139b
292550fda2c89f53792080115ea2d642b6e91aac
diff --git a/front-end/interview-questions.md b/front-end/interview-questions.md index 40851c15bc..d1bc3a0b0b 100644 --- a/front-end/interview-questions.md +++ b/front-end/interview-questions.md @@ -154,7 +154,7 @@ Note: The `async` and `defer` attrib­utes are ignored for scripts that have no Putting `<link>`s in th...
[ "front-end/interview-questions.md", "non-technical/resume.md" ]
[]
true
yangshun/tech-interview-handbook
632
issue_to_patch
[content] fix typo on Self Introduction page
Updated text on self introduction page to match references to it further down in the breakdown section. ![Screenshot 2024-01-31 at 11 15 44 pm](https://github.com/yangshun/tech-interview-handbook/assets/36926781/d6440876-fb28-4ea4-843e-f7e6835fab88)
3365eda7775f94b2da75cde801cf9a50b6d2ce12
f49bf81d137c0db5f1c6b39ba8beb7318cd5454b
diff --git a/apps/website/contents/self-introduction.md b/apps/website/contents/self-introduction.md index 880737a77b..a512dd3fee 100644 --- a/apps/website/contents/self-introduction.md +++ b/apps/website/contents/self-introduction.md @@ -84,7 +84,7 @@ Having an elevator pitch on hand is a great way to create a network...
[ "apps/website/contents/self-introduction.md" ]
[]
true
yangshun/tech-interview-handbook
659
issue_to_patch
[contents] add periods where necessary
02826f04efe5016fc0b0b06b0863588a2df29049
21a1636c9faea07781f3b6948748d3cb79a9a53a
diff --git a/apps/website/contents/behavioral-interview-rubrics.md b/apps/website/contents/behavioral-interview-rubrics.md index 28306524bd..d1064b6125 100644 --- a/apps/website/contents/behavioral-interview-rubrics.md +++ b/apps/website/contents/behavioral-interview-rubrics.md @@ -110,7 +110,7 @@ Example Responses: E...
[ "apps/website/contents/behavioral-interview-rubrics.md", "apps/website/contents/software-engineering-interview-guide.md" ]
[]
true
yangshun/tech-interview-handbook
654
issue_to_patch
link is not working for (Master the Coding Interview: Data Structures + Algorithms) Hi , when i click on this link : https://fxo.co/DQpY for : Master the Coding Interview: Data Structures + Algorithms course inside this page : https://www.techinterviewhandbook.org/algorithms/study-cheatsheet/ it shows : We a...
update Udemy course link
fixes #649 updated the broken link "https://fxo.co/DQpY" to "https://www.udemy.com/course/master-the-coding-interview-data-structures-algorithms/?couponCode=ST18MT62524"
3365eda7775f94b2da75cde801cf9a50b6d2ce12
bac9369bc2bbba226257b0f117e1b26a1c636d01
diff --git a/apps/website/contents/_courses/AlgorithmCourses.md b/apps/website/contents/_courses/AlgorithmCourses.md index 1c1a12e1b6..82a8be5889 100644 --- a/apps/website/contents/_courses/AlgorithmCourses.md +++ b/apps/website/contents/_courses/AlgorithmCourses.md @@ -6,6 +6,6 @@ AlgoMonster aims to help you ace the ...
[ "apps/website/contents/_courses/AlgorithmCourses.md" ]
[]
true
yangshun/tech-interview-handbook
664
issue_to_patch
Typo: In the Coding interview preparation section The typo is to be found in the **Coding interview preparation** section, specifically in the **_Step-by-step how to prepare_** section. Under the heading: [What is a Software Engineering coding interview?](https://www.techinterviewhandbook.org/coding-interview-prep...
[fix] Correct typo from 'access' to 'assess' in interview description (#663)
## Description: This PR fixes a typo in the coding interview description, where "access" was mistakenly used instead of "assess." The correction improves clarity in the sentence about assessing competencies during interviews. Closes: ## Closes #663.
54b87968615691204d344872005c4eb5505fd904
78690ecbab5bd30e6dfe4970cb8e1d34e5c85ea0
diff --git a/apps/website/contents/coding-interview-prep.md b/apps/website/contents/coding-interview-prep.md index 75de5d863b..9802da9098 100644 --- a/apps/website/contents/coding-interview-prep.md +++ b/apps/website/contents/coding-interview-prep.md @@ -32,7 +32,7 @@ If you have decided to embark on the arduous proces...
[ "apps/website/contents/coding-interview-prep.md" ]
[]
true
yangshun/tech-interview-handbook
30
issue_to_patch
Added Elevator Pitch section
aabf8917705e06b78f9dd4e3bf135488de4c631c
2e0ef94fc7dce671bb40c194c56a7307392c2f67
diff --git a/non-technical/self-introduction.md b/non-technical/self-introduction.md index 30a95e1d22..510b089a06 100644 --- a/non-technical/self-introduction.md +++ b/non-technical/self-introduction.md @@ -5,6 +5,23 @@ You can rephrase the question like this: "Tell me about your journey into tech. How did you get i...
[ "non-technical/self-introduction.md" ]
[ { "comment": "Is this line meant to be have a deeper indentation or should it be on the same level as \"Tell them some highlights...\"?", "path": "non-technical/self-introduction.md", "hunk": "@@ -5,6 +5,23 @@ You can rephrase the question like this:\n \n \"Tell me about your journey into tech. How did ...
true
yangshun/tech-interview-handbook
651
issue_to_patch
contents: fix typo in resume.md
Replace `"` with `:`
a6359e337bc515f6a846b9712238456232e6033f
570a09f7f59aa59ca8d91b14f0969ea447fab249
diff --git a/apps/website/contents/resume.md b/apps/website/contents/resume.md index 3e5fddfff4..5650f7a7ea 100644 --- a/apps/website/contents/resume.md +++ b/apps/website/contents/resume.md @@ -124,7 +124,7 @@ Ensure you do these: #### Write a headline for your resume summary -Instead of writing "Professional Sum...
[ "apps/website/contents/resume.md" ]
[]
true
yangshun/tech-interview-handbook
648
issue_to_patch
[resumes][fix] fix missing [add review]/[sign in to comment] buttons
When screen width is between lg to xl, the button is hidden
0801d64457440e66dbe07e54e76b4c48fe8bb7dc
9a0c832fcc647fa5f74f86fce4e98e8169f6dab7
diff --git a/apps/portal/src/pages/resumes/[resumeId].tsx b/apps/portal/src/pages/resumes/[resumeId].tsx index 1b36c53df3..a8f7cb16ca 100644 --- a/apps/portal/src/pages/resumes/[resumeId].tsx +++ b/apps/portal/src/pages/resumes/[resumeId].tsx @@ -377,7 +377,7 @@ export default function ResumeReviewPage() { ...
[ "apps/portal/src/pages/resumes/[resumeId].tsx" ]
[]
true
yangshun/tech-interview-handbook
641
issue_to_patch
Add system design in a hurry
Adding (free!) System Design in a Hurry to the list of resources.
7a0ed2a997b3be8093e198834532fb9b3a5c89a7
7abf4bd4805217494223456868aa9d7e8b8f2595
diff --git a/apps/website/contents/system-design.md b/apps/website/contents/system-design.md index 625a2a8177..dc477492ed 100644 --- a/apps/website/contents/system-design.md +++ b/apps/website/contents/system-design.md @@ -48,6 +48,7 @@ System design content is still work-in-progress, but the following are some reso #...
[ "apps/website/contents/system-design.md" ]
[]
true
yangshun/tech-interview-handbook
637
issue_to_patch
contents(career): update High Growth Engineer URL to new domain
I recently updated https://careercutler.substack.com/ to be https://read.highgrowthengineer.com/ This PR updates to the new domain. Note: The original redirects to the new one, but it will be better to use the new one.
c0703662ca0b9c250abd599f976cb7cb3eb7b7be
dc32d59bf2381761460547ea1323e93a7074cc48
diff --git a/apps/website/contents/career-growth.md b/apps/website/contents/career-growth.md index 415c78ab85..a74afb64d1 100644 --- a/apps/website/contents/career-growth.md +++ b/apps/website/contents/career-growth.md @@ -3,13 +3,13 @@ id: career-growth title: 📈 Career growth --- -_The following page is written i...
[ "apps/website/contents/career-growth.md" ]
[]
true
yangshun/tech-interview-handbook
636
issue_to_patch
contents: add Codemia.io list of mock interview resource
90e56e4ea2064d35562f9ae65d73b68dfed7d35e
e7dbccf07ebbe44f05d86a1aa37460cecf7e4837
diff --git a/apps/website/contents/mock-interviews.md b/apps/website/contents/mock-interviews.md index 8a756ad428..c4e22e7206 100644 --- a/apps/website/contents/mock-interviews.md +++ b/apps/website/contents/mock-interviews.md @@ -54,3 +54,9 @@ What makes Meetapro stand out? - Expert interviewers: Veterans from FAANG ...
[ "apps/website/contents/mock-interviews.md" ]
[]
true
yangshun/tech-interview-handbook
622
issue_to_patch
contents: Add Misc > Career Growth Page
Spoke with @yangshun: We can add a "Career Growth" page under Misc which points to some of the top resources for engineers to grow in their careers. I curated the resources that will be most relevant and I can personally attest to from the [Path to Senior Engineer Handbook](https://github.com/jordan-cutler/path-to-s...
5e5ab8f3b4fd31cbe1c90156bf21a268f34659e6
e5d5b83de56cfeac10c9bd4fd53154c6824dba58
diff --git a/.gitignore b/.gitignore index fbd741f5ec..15559a2bb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.idea .DS_Store node_modules .turbo @@ -19,4 +20,4 @@ public/dist !.yarn/sdks !.yarn/versions -tsconfig.tsbuildinfo \ No newline at end of file +tsconfig.tsbuildinfo diff --git a/apps/websi...
[ ".gitignore", "apps/website/contents/career-growth.md", "apps/website/sidebars.js" ]
[ { "comment": "Viewable from: https://www.techinterviewhandbook.org/software-engineering-interview-guide/\r\n\r\n![CleanShot 2023-12-17 at 21 11 13@2x](https://github.com/yangshun/tech-interview-handbook/assets/13022754/68b5b2c3-76f6-440f-af75-6c7a4a0412ee)\r\n", "path": "apps/website/sidebars.js", "hunk...
true
yangshun/tech-interview-handbook
625
issue_to_patch
contents(beyond): add Hungry Minds and myself to LinkedIn resources
Thanks for creating this awesome list! Adding in my newsletter and LinkedIn content profile, thanks!
efee8c7fdab13c327ca6d6a244c41a8730901dc5
32a97d2f39a0dca6359fed0cf59994b6ef810507
diff --git a/apps/website/contents/career-growth.md b/apps/website/contents/career-growth.md index 95d34c3db9..415c78ab85 100644 --- a/apps/website/contents/career-growth.md +++ b/apps/website/contents/career-growth.md @@ -19,6 +19,7 @@ After being hired, it's crucial to focus on your career growth so you don't stag -...
[ "apps/website/contents/career-growth.md" ]
[]
true
yangshun/tech-interview-handbook
624
issue_to_patch
contents(beyond): add 16x Engineer
Add 16x Engineer created by myself: https://16x.engineer/ It is a website dedicated to resources on Software Engineer Career and Personal Growth, with a focus on Asia and Singapore tech industry. Since there is no dedicated website category, I have parked in under newsletter (the website does have its own newslet...
497b8f6bc053e57e4ffbe218e5578e3f714ee60c
aa145e44cd76cb401bb4c9551caeedcbce885a5f
diff --git a/apps/website/contents/career-growth.md b/apps/website/contents/career-growth.md index 8ddc2bcc61..95d34c3db9 100644 --- a/apps/website/contents/career-growth.md +++ b/apps/website/contents/career-growth.md @@ -21,6 +21,7 @@ After being hired, it's crucial to focus on your career growth so you don't stag -...
[ "apps/website/contents/career-growth.md" ]
[]
true
yangshun/tech-interview-handbook
618
issue_to_patch
contents(sd): add System Design Newsletter
- Add weekly newsletter on system design
11995a2c6c745b529ac46eb46a784a28e62e4bf6
48af3c322c13224b7eba0071f75750de712f2669
diff --git a/apps/website/contents/system-design.md b/apps/website/contents/system-design.md index 56a43eda21..625a2a8177 100644 --- a/apps/website/contents/system-design.md +++ b/apps/website/contents/system-design.md @@ -48,6 +48,7 @@ System design content is still work-in-progress, but the following are some reso #...
[ "apps/website/contents/system-design.md" ]
[]
true
yangshun/tech-interview-handbook
617
issue_to_patch
Update resume.md
Added some extra tips for resume review section around tailoring resume for each job role for better chances.
fdbec1fbc2c72f425787e2d7d9b32bf733acfe9f
0101f78e94296c0c97f486283d561a7aee5305d3
diff --git a/apps/website/contents/resume.md b/apps/website/contents/resume.md index 7885ed8e2d..cb113fca54 100644 --- a/apps/website/contents/resume.md +++ b/apps/website/contents/resume.md @@ -333,7 +333,8 @@ If you are willing to spend some money we recommend [FAANG Tech Leads' Resume Re ### 2. Test readability w...
[ "apps/website/contents/resume.md" ]
[]
true
yangshun/tech-interview-handbook
616
issue_to_patch
Update Repository to Reflect Twitter's New Name Twitter has undergone a name change and is now known as "X." To ensure the repository accurately reflects this update, I'm opening this issue and creating a related pull request (PR). Also In Website it is Twitter not X or X (Twitter) ![image](https://github.com/ya...
misc: change "Twitter" to "X (Twitter)"
Changing Name of Twitter to X (Twitter) This fixes https://github.com/yangshun/tech-interview-handbook/issues/615
ed6605b476676656b872b72d13656188cf6807eb
73ab75cc2218696323116884be01f7d3c7856436
diff --git a/README.md b/README.md index 4939dc21aa..e842e72ce9 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ <a href="https://www.techinterviewhandbook.org/">Read on the website</a> </h3> <p> - Join/follow us on <a href="https://discord.gg/usMqNaPczq" target="_blank">Discord</a> | <a href="https...
[ "README.md" ]
[]
true
yangshun/tech-interview-handbook
609
issue_to_patch
contents(queue): fix typo in queue content
Fixed a typo in the "Things to look out for during interviews" section. It previously stated that enqueue had a time complexity issue in languages without built-in Queue classes using arrays. It's actually the dequeue operation that's O(n) due to front removal and shifting of elements. Fixing this small typo for clarit...
5f2111af16010fc219d4afc7cc222b435e524a80
4256e98c75c8303639e0c74dbc062648b90503a7
diff --git a/apps/website/contents/algorithms/queue.md b/apps/website/contents/algorithms/queue.md index 63d64287b3..7341992f31 100644 --- a/apps/website/contents/algorithms/queue.md +++ b/apps/website/contents/algorithms/queue.md @@ -55,7 +55,7 @@ Breadth-first search is commonly implemented using queues. ## Things...
[ "apps/website/contents/algorithms/queue.md" ]
[]
true
yarrick/iodine
120
issue_to_patch
Answer NXDOMAIN for _.xxx.yyy.top.domain
When a DNS query name is too long, it is split into multiple domain components. However, recursive DNS servers that implement QNAME minimization may query each subdomain individually without revealing the full name. As part of this behavior, they often send a preliminary query for a hostname like "_" before attempting...
3fcd128cbfb612628bfe01131133c45bf7007a61
076ec9f77439ace72024e55e61e20884758f4296
diff --git a/src/dns.c b/src/dns.c index 22d9ef42..9721f3e2 100644 --- a/src/dns.c +++ b/src/dns.c @@ -390,6 +390,71 @@ int dns_encode_a_response(char *buf, size_t buflen, struct query *q) return len; } +int dns_encode_nxdomain(char *buf, size_t buflen, struct query *q, const char *zone) +{ + char rnamebuf[256]; +...
[ "src/dns.c", "src/dns.h", "src/iodined.c", "src/windows.h" ]
[ { "comment": "Can you link https://datatracker.ietf.org/doc/html/rfc7816 (qname minimisation)", "path": "src/iodined.c", "hunk": "@@ -1719,6 +1740,17 @@ tunnel_dns(int tun_fd, int dns_fd, struct dnsfd *dns_fds, int bind_fd)\n \t\t\treturn 0;\n \t\t}\n \n+\t\t/* Handle A-type query for _.***.topdomain. ...
true
yarrick/iodine
120
comment_to_fix
Answer NXDOMAIN for _.xxx.yyy.top.domain
Can you link https://datatracker.ietf.org/doc/html/rfc7816 (qname minimisation)
3fcd128cbfb612628bfe01131133c45bf7007a61
076ec9f77439ace72024e55e61e20884758f4296
diff --git a/src/iodined.c b/src/iodined.c index f2d1dc56..6b6d1a48 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -1597,6 +1597,27 @@ handle_a_request(int dns_fd, struct query *q, int fakeip) } } +static void +handle_underscore_request(int dns_fd, struct query *q, const char *topdomain) +{ + char buf[64*1024];...
[ "src/iodined.c" ]
[ { "comment": "Can you link https://datatracker.ietf.org/doc/html/rfc7816 (qname minimisation)", "path": "src/iodined.c", "hunk": "@@ -1719,6 +1740,17 @@ tunnel_dns(int tun_fd, int dns_fd, struct dnsfd *dns_fds, int bind_fd)\n \t\t\treturn 0;\n \t\t}\n \n+\t\t/* Handle A-type query for _.***.topdomain. ...
true
yarrick/iodine
120
comment_to_fix
Answer NXDOMAIN for _.xxx.yyy.top.domain
Not matching the encode function name (also dns was changed to ens?)
3fcd128cbfb612628bfe01131133c45bf7007a61
076ec9f77439ace72024e55e61e20884758f4296
diff --git a/src/iodined.c b/src/iodined.c index f2d1dc56..6b6d1a48 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -1597,6 +1597,27 @@ handle_a_request(int dns_fd, struct query *q, int fakeip) } } +static void +handle_underscore_request(int dns_fd, struct query *q, const char *topdomain) +{ + char buf[64*1024];...
[ "src/iodined.c" ]
[ { "comment": "Not matching the encode function name (also dns was changed to ens?)", "path": "src/iodined.c", "hunk": "@@ -1597,6 +1597,27 @@ handle_a_request(int dns_fd, struct query *q, int fakeip)\n \t}\n }\n \n+static void\n+handle_underscore_request(int dns_fd, struct query *q, const char *topdomai...
true
yarrick/iodine
120
comment_to_fix
Answer NXDOMAIN for _.xxx.yyy.top.domain
Instead of just "A reply" add something more specific (also in warn log below)
3fcd128cbfb612628bfe01131133c45bf7007a61
076ec9f77439ace72024e55e61e20884758f4296
diff --git a/src/iodined.c b/src/iodined.c index f2d1dc56..6b6d1a48 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -1597,6 +1597,27 @@ handle_a_request(int dns_fd, struct query *q, int fakeip) } } +static void +handle_underscore_request(int dns_fd, struct query *q, const char *topdomain) +{ + char buf[64*1024];...
[ "src/iodined.c" ]
[ { "comment": "Instead of just \"A reply\" add something more specific (also in warn log below)", "path": "src/iodined.c", "hunk": "@@ -1597,6 +1597,27 @@ handle_a_request(int dns_fd, struct query *q, int fakeip)\n \t}\n }\n \n+static void\n+handle_underscore_request(int dns_fd, struct query *q, const ch...
true
yarrick/iodine
120
comment_to_fix
Answer NXDOMAIN for _.xxx.yyy.top.domain
is this extra scope needed? The `startp` pointer could be declared earlier - also name it more descriptively (soa_start?). Declare variables before the code starts.
3fcd128cbfb612628bfe01131133c45bf7007a61
076ec9f77439ace72024e55e61e20884758f4296
diff --git a/src/dns.c b/src/dns.c index 22d9ef42..9721f3e2 100644 --- a/src/dns.c +++ b/src/dns.c @@ -390,6 +390,71 @@ int dns_encode_a_response(char *buf, size_t buflen, struct query *q) return len; } +int dns_encode_nxdomain(char *buf, size_t buflen, struct query *q, const char *zone) +{ + char rnamebuf[256]; +...
[ "src/dns.c" ]
[ { "comment": "is this extra scope needed?\r\nThe `startp` pointer could be declared earlier - also name it more descriptively (soa_start?). Declare variables before the code starts.", "path": "src/dns.c", "hunk": "@@ -390,6 +390,73 @@ int dns_encode_a_response(char *buf, size_t buflen, struct query *q)\...
true
yarrick/iodine
120
comment_to_fix
Answer NXDOMAIN for _.xxx.yyy.top.domain
Translate incluiremos
3fcd128cbfb612628bfe01131133c45bf7007a61
076ec9f77439ace72024e55e61e20884758f4296
diff --git a/src/dns.c b/src/dns.c index 22d9ef42..9721f3e2 100644 --- a/src/dns.c +++ b/src/dns.c @@ -390,6 +390,71 @@ int dns_encode_a_response(char *buf, size_t buflen, struct query *q) return len; } +int dns_encode_nxdomain(char *buf, size_t buflen, struct query *q, const char *zone) +{ + char rnamebuf[256]; +...
[ "src/dns.c" ]
[ { "comment": "Translate incluiremos ", "path": "src/dns.c", "hunk": "@@ -390,6 +390,73 @@ int dns_encode_a_response(char *buf, size_t buflen, struct query *q)\n \treturn len;\n }\n \n+int dns_encode_nxdomain(char *buf, size_t buflen, struct query *q, const char *zone)\n+{\n+ char rnamebuf[256];\n+ ...
true
yarrick/iodine
120
comment_to_fix
Answer NXDOMAIN for _.xxx.yyy.top.domain
T_SOA needs a define in windows.h
3fcd128cbfb612628bfe01131133c45bf7007a61
076ec9f77439ace72024e55e61e20884758f4296
diff --git a/src/dns.c b/src/dns.c index 22d9ef42..9721f3e2 100644 --- a/src/dns.c +++ b/src/dns.c @@ -390,6 +390,71 @@ int dns_encode_a_response(char *buf, size_t buflen, struct query *q) return len; } +int dns_encode_nxdomain(char *buf, size_t buflen, struct query *q, const char *zone) +{ + char rnamebuf[256]; +...
[ "src/dns.c" ]
[ { "comment": "T_SOA needs a define in windows.h", "path": "src/dns.c", "hunk": "@@ -390,6 +390,71 @@ int dns_encode_a_response(char *buf, size_t buflen, struct query *q)\n \treturn len;\n }\n \n+int dns_encode_nxdomain(char *buf, size_t buflen, struct query *q, const char *zone)\n+{\n+\tchar rnamebuf[25...
true
yarrick/iodine
121
issue_to_patch
Allow longer nameservers.
IPv6 nameservers can be significantly longer than 16 characters in length. For example, `2001:0db8:85a3:0000:0000:8a2e:0370:7334` is 39 characters long, and certain syntax elements (e.g. zone indices) can make them even longer. This patch allows up to 256 characters for the nameserver, which is large enough to conta...
63c386d0f84d2480975f23b943239a973768de12
1b4c14edbaf0dfaa1719f7c066e1a841900e2ea1
diff --git a/src/util.c b/src/util.c index e34858c6..b9d7f6b0 100644 --- a/src/util.c +++ b/src/util.c @@ -21,10 +21,10 @@ char *get_resolvconf_addr(void) { - static char addr[16]; + static char addr[257]; char *rv = NULL; #ifndef WINDOWS32 - char buf[80]; + char buf[257]; FILE *fp; #ifdef ANDROID fp = pope...
[ "src/util.c" ]
[]
true
yarrick/iodine
109
issue_to_patch
Fixed strict clipping memsize size_t to 32bit only on 64bit platforms
@yarrick, bug only on 64bit iodine builds. C-cast not memsize as intended. Perhaps when `datalen` was rewritten from `unsigned` to `size_t`, they forgot to fix C-cast in `CHECKLEN(x)` macro.
2b659726936804ac4e3ef5fe9989adf8fd9dd538
405a38ca937acc5675bfb1ec2ccb48693ea4e8cb
diff --git a/src/dns.c b/src/dns.c index dd6e313b..22d9ef42 100644 --- a/src/dns.c +++ b/src/dns.c @@ -47,7 +47,7 @@ int dnsc_use_edns0 = 1; -#define CHECKLEN(x) if (buflen < (x) + (unsigned)(p-buf)) return 0 +#define CHECKLEN(x) if (buflen < (x) + (size_t)(p-buf)) return 0 int dns_encode(char *buf, size_t bu...
[ "src/dns.c" ]
[]
true
yarrick/iodine
101
issue_to_patch
get_addr() should return -1 in case of error Subject says it all: getaddrinfo() returns positive values in case of errors. These get returned to the caller: res = getaddrinfo(host, portnum, &hints, &addr); if (res == 0) { int addrlen = addr->ai_addrlen; /* Grab f...
common: get_addr should return -1 on error
Closes #96 1. Update `get_addr()` to always return -1 on error 2. Add test to ensure the error value is returned when host, port, flags, or result struct are invalid
68b0a7b16e214f0b50a6a849fc30756d580b480a
ae43de2a8cfb3537596c5813d11b756d0c5533e3
diff --git a/src/common.c b/src/common.c index 8d2fec0d..e7d49c37 100644 --- a/src/common.c +++ b/src/common.c @@ -142,6 +142,7 @@ get_addr(char *host, int port, int addr_family, int flags, struct sockaddr_stora struct addrinfo hints, *addr; int res; char portnum[8]; + int addrlen; memset(portnum, 0, sizeof(p...
[ "src/common.c", "tests/common.c" ]
[ { "comment": "This declaration is now mixed in the code, which is not allowed on older C compilers. Can you move the addrlen variable to the top, or add a new scope?", "path": "src/common.c", "hunk": "@@ -158,14 +158,15 @@ get_addr(char *host, int port, int addr_family, int flags, struct sockaddr_stora\...
diff --git a/tests/common.c b/tests/common.c index 87fe3307..14050518 100644 --- a/tests/common.c +++ b/tests/common.c @@ -280,6 +280,28 @@ START_TEST(test_parse_format_ipv4_mapped_ipv6) } END_TEST +START_TEST(test_get_addr_err) +{ + char *host = "192.168.2.10"; + struct sockaddr_storage addr; + int addr_len; + int...
true
yarrick/iodine
101
comment_to_fix
common: get_addr should return -1 on error
This declaration is now mixed in the code, which is not allowed on older C compilers. Can you move the addrlen variable to the top, or add a new scope?
68b0a7b16e214f0b50a6a849fc30756d580b480a
ae43de2a8cfb3537596c5813d11b756d0c5533e3
diff --git a/src/common.c b/src/common.c index 8d2fec0d..e7d49c37 100644 --- a/src/common.c +++ b/src/common.c @@ -142,6 +142,7 @@ get_addr(char *host, int port, int addr_family, int flags, struct sockaddr_stora struct addrinfo hints, *addr; int res; char portnum[8]; + int addrlen; memset(portnum, 0, sizeof(p...
[ "src/common.c" ]
[ { "comment": "This declaration is now mixed in the code, which is not allowed on older C compilers. Can you move the addrlen variable to the top, or add a new scope?", "path": "src/common.c", "hunk": "@@ -158,14 +158,15 @@ get_addr(char *host, int port, int addr_family, int flags, struct sockaddr_stora\...
true
yarrick/iodine
95
issue_to_patch
Haiku fixes
We might soon finally get a working tun/tap driver, so let's make sure this builds!
b82bc776b36b727f593f98e43cbd306a9f6358fc
39c3154a770f187d01ec666fc80d8234968a630c
diff --git a/src/common.c b/src/common.c index 37ae48dc..a1475795 100644 --- a/src/common.c +++ b/src/common.c @@ -57,7 +57,7 @@ const unsigned char raw_header[RAW_HDR_LEN] = { 0x10, 0xd1, 0x9e, 0x00 }; /* daemon(3) exists only in 4.4BSD or later, and in GNU libc */ -#if !defined(ANDROID) && !defined(WINDOWS32) && ...
[ "src/common.c", "src/osflags" ]
[]
true
yarrick/iodine
93
issue_to_patch
src/osflags: fully fix cross-compilation
Cross-compilation was only partially fixed by https://github.com/yarrick/iodine/commit/024481c94b97ef37981621cdc38f8b20f8919418 as selinux was still enabled depending on host file existence
b82bc776b36b727f593f98e43cbd306a9f6358fc
a5d71d076168f8ad1e7dd30b35f1569f180f429c
diff --git a/src/osflags b/src/osflags index 9a437bdc..39ca5fa5 100755 --- a/src/osflags +++ b/src/osflags @@ -20,7 +20,7 @@ link) ;; Linux) FLAGS=""; - [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux"; + "$PKG_CONFIG" --exists libselinux && FLAGS="$FLAGS $($PKG_CONFIG --libs libselinux)"...
[ "src/osflags" ]
[]
true
yarrick/iodine
86
issue_to_patch
Build Issue on FreeBSD: tzsetwall() is deprecated, use tzset() instead.
I am currently attempting to update the iodine package on FreeBSD to version 0.8.0. However, there is a bug that I have encountered where tzset is incorrectly set to tzsetwall. To fix this issue, I have submitted a pull request to address the problem. /usr/ports/net/iodine/work/iodine-0.8.0/src/iodined.c:2757: warni...
6145eeab738c45dc66958f590f6439fbf3c401f2
9262863caedac6fa1691371da0be60c9a4c6a5a3
diff --git a/src/iodined.c b/src/iodined.c index f9555161..f2d1dc56 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -2754,7 +2754,7 @@ main(int argc, char **argv) do_pidfile(pidfile); #ifdef FREEBSD - tzsetwall(); + tzset(); #endif #ifndef WINDOWS32 openlog(__progname, LOG_NDELAY, LOG_DAEMON);
[ "src/iodined.c" ]
[]
true
yarrick/iodine
61
issue_to_patch
Cannot `make` on macOS Hi, I'm on MacOS 11.4 (Big Sur) (M1) and I can't compile iodine. I get the following error: ``` iodine % make /bin/sh: line 0: cd: src: No such file or directory /bin/sh: line 0: cd: src: No such file or directory /bin/sh: line 0: cd: src: No such file or directory /bin/sh: line 0: cd...
Use `make -C <dir>` instead of (cd <dir> && make)
* fixes the build for some people #57 * cleaner and more idiomatic Fix #57
25867f20b488cd39ead7aafdf5589433dea521e9
c74618ae9ec3a1ee170fc79253ab1bfbbbfd8ce6
diff --git a/Makefile b/Makefile index 4a2d5a25..e0b5f036 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ RM_FLAGS=-f TARGETOS = `uname` all: - @(cd src && $(MAKE) TARGETOS=$(TARGETOS) all) + @$(MAKE) -C src TARGETOS=$(TARGETOS) all install: all $(MKDIR) $(MKDIR_FLAGS) $(DESTDIR)$(sbindir) @@ -41,12 +41...
[ "Makefile" ]
[]
true
yarrick/iodine
55
issue_to_patch
Add github CI action for Windows
Creating pull request only to trigger CI
8afcf4fb8d6fd4369eb6248ed953d61200ffd3e5
d00eba8df263322dc83fa08ba66815cfc0967edc
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 00000000..49ec6f90 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,25 @@ +name: windows + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-o...
[ ".github/workflows/windows.yml" ]
[]
true
yarrick/iodine
36
issue_to_patch
documentation: make it clear, what incompleteness `-b` has
AXFR does not pass through iodine (sounds reasonable). So we should recommend in the README.md to keep the original dns server in front and forward from that to iodined, if zone transfers are required.
8e14f18282dea137f1f4d574f5f52c6bfa2f1c34
be0735d7c7560acff08284b4d25a320bda36b778
diff --git a/README.md b/README.md index 32614b14..d867fcfd 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,9 @@ and a server with a public IP address to run `iodined` on. If this server already runs a DNS program, change its listening port and then use `iodined`'s `-b` option to let `iodined` forward the DNS req...
[ "README.md" ]
[]
true
yarrick/iodine
35
issue_to_patch
Define searchpath for route with macro
Allows it to be easily overridden using the compiler commmandline. Just like IFCONFIGPATH. Would remove the need to patch the source for the Nix package manager on MacOS: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/iodine/default.nix#L13
67643ee99686795e1158100f6fce62d494f3acec
d2f671bdc7fb95dcccc16277edddc7425729279d
diff --git a/src/tun.c b/src/tun.c index c05a5911..9429cb12 100644 --- a/src/tun.c +++ b/src/tun.c @@ -39,6 +39,10 @@ #define IFCONFIGPATH "PATH=/sbin:/bin " #endif +#ifndef ROUTEPATH +#define ROUTEPATH "PATH=/sbin:/bin " +#endif + #ifdef WINDOWS32 #include "windows.h" #include <winioctl.h> @@ -629,7 +633,7 @@ t...
[ "src/tun.c" ]
[]
true
yarrick/iodine
28
issue_to_patch
client.c: don't produce an useless strncat usage warning
27e5d6fadd997ff167c70a431d41adae26428d41
b406009c6d899c2bf5322cca645902cb18e3f389
diff --git a/src/client.c b/src/client.c index 7f336542..a122996a 100644 --- a/src/client.c +++ b/src/client.c @@ -1290,8 +1290,8 @@ send_upenctest(int fd, const char *s) buf[3] = b32_5to8((rand_seed ) & 0x1f); rand_seed++; - strncat(buf, s, 512); - strncat(buf, ".", 512); + strncat(buf, s, 128); + strncat(buf, "...
[ "src/client.c" ]
[]
true
yarrick/iodine
22
issue_to_patch
protect options from replay attack
Trying to determine why long-running sessions inexplicably become slow, I ran tcpdump and found unsolicited DNS queries beginning with the letter N were severely reducing the downstream fragment size. When using carrier-grade DNS, the server is especially vulnerable to replay attacks that abuse the options commands (D...
8e15a73a77c9973270d8aaf86a1cb683d28fbea5
a96e2e7a693fb04479ef94c6c9f690053ca56c68
diff --git a/src/iodined.c b/src/iodined.c index 2e6f7bf8..608d84ee 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -263,6 +263,19 @@ check_authenticated_user_and_ip(int userid, struct query *q) return 0; } +static int +check_authenticated_user_and_ip_and_options(int userid, struct query *q) +{ + int res = check...
[ "src/iodined.c", "src/user.c", "src/user.h" ]
[]
true
yarrick/iodine
26
issue_to_patch
Add android build files to .gitignore
The build files from make cross-android are not included in the .gitignore file.
006ffa619e0e6c1599d3caa213ad883320900391
9f48fc01a50a9e5e293bd85b643532164d1ea7db
diff --git a/.gitignore b/.gitignore index f264a833..748c8581 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ /src/base64u.c /src/base64u.h /tests/test +*.o.d +/src/obj/local/*/iodine +/src/libs/*/iodine
[ ".gitignore" ]
[]
true
yarrick/iodine
25
issue_to_patch
check error returned by dns_decode
before this commit, sending "GET / HTTP/1.1" to server will cause uninitialized variable access.
006ffa619e0e6c1599d3caa213ad883320900391
122ac1a25d7a506aacfe71687254dea8e0311ad8
diff --git a/src/iodined.c b/src/iodined.c index 339db6fd..a227b752 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -2068,7 +2068,7 @@ read_dns(int fd, struct dnsfd *dns_fds, int tun_fd, struct query *q) if (raw_decode(packet, r, q, fd, dns_fds, tun_fd)) { return 0; } - if (dns_decode(NULL, 0, q, QR_QUERY,...
[ "src/iodined.c" ]
[]
true
yarrick/iodine
23
issue_to_patch
Fix -4 and -6 flags
This allows you to run iodined if the autodetected IP for and address family you aren't using is invalid. This occurs for instance if you disable IPV6, e.g on with the following `sysctl` options on Linux: ``` net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 =...
8e15a73a77c9973270d8aaf86a1cb683d28fbea5
1ad7c05b928b9fb581bc8a50d804241a498daa92
diff --git a/src/iodined.c b/src/iodined.c index 2e6f7bf8..c213ec60 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -1844,10 +1844,10 @@ tunnel(int tun_fd, struct dnsfd *dns_fds, int bind_fd, int max_idle_time) if (FD_ISSET(tun_fd, &fds)) { tunnel_tun(tun_fd, dns_fds); } - if (FD_ISSET(dns_fds->v4fd, &...
[ "src/iodined.c" ]
[]
true
yarrick/iodine
12
issue_to_patch
Support utun devices on Mac OS X.
As of 10.6, OS X has native tunnel devices. They are implemented as sockets rather than character devices, but otherwise they appear to behave the same as Free/OpenBSD tunnels. '-d utunX' will tell iodine to use a utun device. For backward compatibility, we'll continue to default to the old tuntap devices for now. Th...
11606497941c4ad13724c53b406fad57a2913475
b38b2ca7c5189d4664adedb2e5e4554437963bc0
diff --git a/src/tun.c b/src/tun.c index 1196ce2e..44bb2207 100644 --- a/src/tun.c +++ b/src/tun.c @@ -1,6 +1,7 @@ /* * Copyright (c) 2006-2014 Erik Ekman <yarrick@kryo.se>, * 2006-2009 Bjorn Andersson <flex@kryo.se> + * 2013 Peter Sagerson <psagers.github@ignorare.net> * * Permission to use, copy, modify, and...
[ "src/tun.c" ]
[]
true
yarrick/iodine
20
issue_to_patch
Add support for socket activation by ipv6 socket
iodined may accept ipv4 and ipv6 sockets via socket activation, we need to figure out type of sockets received from systemd.
36df8dc16ba7e21b514aa025e81b21ae3e81594a
2edb879845b900a04b05ec555bdbde19f81c4a92
diff --git a/doc/iodine-server.socket b/doc/iodine-server.socket index d6c57b8c..485181f7 100644 --- a/doc/iodine-server.socket +++ b/doc/iodine-server.socket @@ -3,6 +3,8 @@ Description=Iodine socket [Socket] ListenDatagram=53 +ListenDatagram=0.0.0.0:53 +BindIPv6Only=ipv6-only [Install] WantedBy=sockets.target...
[ "doc/iodine-server.socket", "src/iodined.c" ]
[]
true
yarrick/iodine
19
issue_to_patch
Fix compilation with systemd>=230 and systemd versions without compat-libs
This fixes https://dev.kryo.se/iodine/ticket/123 Be advised though that I have only tested this on Archlinux with systemd package version 229-3.
482d005d11b69b13693228b7d84530bc8f65109f
7b1df75e3aad8a9a01cbbf2f2ff377cbc5a1ea4b
diff --git a/src/osflags b/src/osflags index 6af11aa1..eb01101b 100755 --- a/src/osflags +++ b/src/osflags @@ -20,6 +20,7 @@ link) FLAGS=""; [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux"; [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS $(pkg-config --libs libsystemd-daemon)"; + ...
[ "src/osflags" ]
[]
true
yarrick/iodine
15
issue_to_patch
Document utunX.
1f51bab2a3f09d13505d6e569b6e3c685f8fdfd2
840155ca9aed2330540f6874cf95e8c5f852ff79
diff --git a/README.md b/README.md index 5ef7446e..51bc0538 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,10 @@ supported request types, for example: The reply should look like garbled text in all these cases. +#### Mac OS X +On Mac OS X 10.6 and later, iodine supports the native utun devices built into +t...
[ "README.md", "man/iodine.8" ]
[]
true
yarrick/iodine
10
issue_to_patch
Revamping the README file
Hi, I tried to make the README file more readable from the browser, without harming the raw-text readability. It could also use some re-structuring, but I should work on my next patch instead (having proper authenticated encryption instead of this custom MD5-based solution). Best, Nicolas
cea498e7107670c342d95d07bee44de2c0ccd902
81d932703b1368d1e6a083435ae0c3bc95635af3
diff --git a/README b/README.md similarity index 53% rename from README rename to README.md index cfc8ede6..033545ce 100644 --- a/README +++ b/README.md @@ -1,130 +1,136 @@ +iodine - <http://code.kryo.se/iodine> +===================================== -iodine - http://code.kryo.se/iodine - -***************************...
[ "README.md" ]
[]
true
yarrick/iodine
9
issue_to_patch
osflags: use pkg-config for systemd support
Recent versions of systemd don't ship with libsystemd-daemon.so anymore, but instead use libsystemd.so for everything. This is obviously problematic for using the same LDFLAGS on old systemd and new systemd. So, they also ship compatability pkgconfig files, which use the old names but return the new library. So, the mo...
b4c3656c3ccb5b819f86951588f742b8d0ff682b
cc4bc22447d15deacf44bc1d369621a63c934427
diff --git a/src/osflags b/src/osflags index 9eda8f04..0f8a26c8 100755 --- a/src/osflags +++ b/src/osflags @@ -19,7 +19,7 @@ link) Linux) FLAGS=""; [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux"; - [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon"; + [ -e /usr/...
[ "src/osflags" ]
[]
true
yarrick/iodine
2
issue_to_patch
Fix gcc warning -Wsizeof-pointer-memaccess
iodined.c: In function ‘write_dns_nameenc’: iodined.c:2030:23: attention : argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(buf, 0, sizeof(buf)); sizeof buf will just give the size of the pointer, while bu...
59dbaf2b50828f0d74d8964028866f9977620382
64ff684754528632c4d4908d5fa2b78c40f60212
diff --git a/src/iodined.c b/src/iodined.c index b3b0607d..8fcbe00c 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -2023,7 +2023,7 @@ write_dns_nameenc(char *buf, size_t buflen, char *data, int datalen, char downen space = MIN(0xFF, buflen) - 4 - 2; /* -1 encoding type, -3 ".xy", -2 for safety */ - memset(buf,...
[ "src/iodined.c" ]
[]
true
yarrick/iodine
1
issue_to_patch
Hi yarrick, i have a bugfix for Mountain Lion.
after update to OSX 10.8 I've gotten these error: route: writing to routing socket: Can't assign requested address add net 192.168.99.2: gateway 192.168.99.2: Can't assign requested address This change fix that! I didn't test this version on other operating systems. Best greetings, Philipp
d9d4c1dba621b062e46f0f7d152ca28bf75ca947
e1e438497a83dbe6800212a0e5cb632907d1b3d9
diff --git a/src/tun.c b/src/tun.c index cbc54904..65bde17a 100644 --- a/src/tun.c +++ b/src/tun.c @@ -475,15 +475,19 @@ tun_setip(const char *ip, const char *other_ip, int netbits) fprintf(stderr, "Setting IP of %s to %s\n", if_name, ip); #ifndef LINUX + struct in_addr netip; + netip.s_addr = inet_addr(ip); + ne...
[ "src/tun.c" ]
[]
true
yarrick/iodine
4
issue_to_patch
Add socket activation for systemd, with a option to stop on idle
Systemd support socket passing on activation. While the goal is to make sure every can be started in almost any order, it also permit to have on demand start. This series of patches implement systemd support using the library provided by systemd ( and proper autodetection on build time, so someone not wanting the cod...
59dbaf2b50828f0d74d8964028866f9977620382
abd276ed9e7ca868616954b41f67a0b99a67a4c3
diff --git a/doc/iodine-server.service b/doc/iodine-server.service new file mode 100644 index 00000000..64d2eccb --- /dev/null +++ b/doc/iodine-server.service @@ -0,0 +1,11 @@ +[Unit] +Description=Iodine Server +After=local-fs.target network.target + +[Service] +EnvironmentFile=-/etc/sysconfig/iodine-server +ExecStart=...
[ "doc/iodine-server.service", "doc/iodine-server.socket", "man/iodine.8", "src/iodined.c", "src/osflags" ]
[]
true
yarrick/iodine
3
issue_to_patch
add gitignore file
59dbaf2b50828f0d74d8964028866f9977620382
bded6a015bc1776db247cde0174535047be43a80
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..2fd8533c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +bin/* +*.o +src/base64u.c +src/base64u.h
[ ".gitignore" ]
[]
true
yatli/fvim
264
issue_to_patch
Fix blank UI with neovim 0.92
See bug #263. neovim 0.92 added this to the `grid_line` event. This appears to be useful for the TUI only, so for now let's just fix the pattern matching.
2e4087de785da82e7140524e45b20bb53b6b073e
70c4c53f71b3d0b7064974c24dcfe8ab94be694a
diff --git a/def.fs b/def.fs index c874f88..fc5ae82 100644 --- a/def.fs +++ b/def.fs @@ -218,6 +218,7 @@ type GridLine = row: int col_start: int cells: GridCell[] + wrap: bool } [<Struct>] @@ -624,8 +625,11 @@ let parse_grid_cell (x: obj) = let parse_grid_line (x: obj) = ...
[ "def.fs" ]
[]
true
yatli/fvim
231
issue_to_patch
Fix for bad Windows shell integration
the setup process doesn't integrate with the shell properly. trying to open with the context menu gives this error dialog ![image](https://user-images.githubusercontent.com/55286472/174404139-952199e2-c66c-4e73-91b6-af684a3a1698.png) i found the problem, after a bit. the registry value it gives ends up havi...
b836b56bd0a0a16cf0921afcb468269b3648603b
baa6fbe7d4f96bdc320115923741788a6513813b
diff --git a/shell.fs b/shell.fs index 0de35ca..16515f0 100644 --- a/shell.fs +++ b/shell.fs @@ -81,7 +81,7 @@ let private win32RegisterFileAssociation() = _edit.SetValue("", "Open with FVim") _edit.SetValue("Icon", fvicon) use command = _edit.CreateSubKey("command") - ...
[ "shell.fs" ]
[]
true
yatli/fvim
237
issue_to_patch
create .app on apple silicon (m1) Hi, I tried your app and found out that it's intel binary :( Building the app myself was not a problem, but how do i get it into /Applications/ in a FVim.app ?
pack.sh Adding support to build for apple sillicon
copy pasted the function from x64 fixes https://github.com/yatli/fvim/issues/236
b836b56bd0a0a16cf0921afcb468269b3648603b
f229f8ea97c166ebcfbe6c1e7725e2587dc3e459
diff --git a/pack.sh b/pack.sh index dbcd7ed..779e437 100755 --- a/pack.sh +++ b/pack.sh @@ -68,6 +68,33 @@ function pack-linux-arm64() mv {*.deb,*.rpm} publish/ } +function pack-osx.11.0-arm64() +{ + rm -rf ./*.app + rm -f ./*.zip + + pushd $PKG_ROOT + cd .. + mv publish fvim_pkg + mkdir -p p...
[ "pack.sh" ]
[]
true
yatli/fvim
202
issue_to_patch
Initial support for keyboard layouts
7f017394f0255b23a88616a6347ade53954dddc1
d70d90af830ea7976e4ed67161490f8f699475ad
diff --git a/input.fs b/input.fs index 185029f..f8a8c16 100644 --- a/input.fs +++ b/input.fs @@ -70,6 +70,8 @@ let (|HasFlag|_|) (flag: KeyModifiers) (x: KeyModifiers) = if x.HasFlag flag then Some() else None let (|NoFlag|_|) (flag: KeyModifiers) (x: KeyModifiers) = if x.HasFlag flag then None else Some() +...
[ "input.fs" ]
[]
true
yatli/fvim
208
issue_to_patch
Fix tiny typo in README.md
Was checking this out and playing around by copying some of the bits from the readme into my config and noticed a tiny typo so thought I would PR to save you some time 🙏
b144d1ed304052e2ede30aaa9b7e75813776f64e
82440e6d94abd9d57fc78a929f8567756427b2ac
diff --git a/README.md b/README.md index cac65a9..8b36549 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ FVimFontHintLevel 'full' FVimFontLigature v:true FVimFontLineHeight '+1.0' " can be 'default', '14.0', '-1.0' etc. FVimFontSubpixel v:true -FVimFontNoBuiltInSymbols v:true " Disable built-in Nerd font...
[ "README.md" ]
[]
true
yatli/fvim
207
issue_to_patch
FVim startup script has trouble with environment variable values with spaces I was not able to start FVim at all, it claimed `nvim` was not in the path. I think I tracked this down to the `fvim-osx-launcher` file in `/Applications/FVim.app/Contents/MacOS` The bash snippet in there can't deal with spaces in environ...
Make launcher script behave more nicely with big environments and environment variables with spaces
This PR fixes #206 , using Bash dark magic to split up the login environment better, and moving $PATH to the start of the environment variables to overcome what appears to be environment truncation when launching the Avalonia framework.
98c40364e2ab3df96d3e2736de1f3410ef180055
3b9100645482c0b38c4b72162b72770eb430b6ba
diff --git a/lib/fvim-osx-launcher b/lib/fvim-osx-launcher index 9a06ca7..51a927f 100644 --- a/lib/fvim-osx-launcher +++ b/lib/fvim-osx-launcher @@ -1,12 +1,21 @@ #!/usr/bin/env bash ENVVARS="" +set -f +IFS=$'\n' for VAR in `$SHELL --login -c /usr/bin/env` do if [[ $VAR == *"="* ]] then - ENVVARS="$ENVVARS...
[ "lib/fvim-osx-launcher" ]
[]
true
yatli/fvim
194
issue_to_patch
Cleanup Todos in input.fs
Took a swing at cleaning up a couple of TODOs found in the `input.fs` file.
646a86f2fa06205df75d17594aea0aa972f322dc
52948481cf6548fce535476cc753f6a40f11b32f
diff --git a/input.fs b/input.fs index 48856fc..721a8e8 100644 --- a/input.fs +++ b/input.fs @@ -218,8 +218,7 @@ let (|Mouse|Special|Normal|ImeEvent|TextInput|Unrecognized|) (x: InputEvent) = | Key(_, Key.Add) -> Special("kPlus") | Key(_, Key.Subtract) ...
[ "input.fs" ]
[ { "comment": "This looks to be covered by line 187.", "path": "input.fs", "hunk": "@@ -218,8 +218,7 @@ let (|Mouse|Special|Normal|ImeEvent|TextInput|Unrecognized|) (x: InputEvent) =\n | Key(_, Key.Add) -> Special(\"kPlus\")\n | Key(_, Key.Subtract) ...
true
yatli/fvim
192
issue_to_patch
Updated path of fvim.ico to include parent dir
646a86f2fa06205df75d17594aea0aa972f322dc
e9ef4b7da795bd2b885551f9aaa2e74dca836322
diff --git a/fvim.fsproj b/fvim.fsproj index bc72c28..ac34013 100644 --- a/fvim.fsproj +++ b/fvim.fsproj @@ -4,10 +4,10 @@ <TargetFramework>netcoreapp3.1</TargetFramework> <AssemblyName>FVim</AssemblyName> <Prefer32Bit>false</Prefer32Bit> - <ApplicationIcon>fvim.ico</ApplicationIcon> + <Application...
[ "fvim.fsproj" ]
[]
true
yatli/fvim
189
issue_to_patch
Ime
de0777fd3f14f1603bea590ddd9931b98fa70bba
78ff162c7e1315bfaa883acd85930caf62a7ff77
diff --git a/README.md b/README.md index 7cd643c..50f07da 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,13 @@ Cross platform Neovim front-end UI, built with [F#](https://fsharp.org/) + [Aval Try these bindings (note, fvim-specific settings only work in `ginit.vim`, not `init.vim`!): ```vimL if exists('g:fvim_l...
[ "README.md", "ViewModels/GridViewModel.fs", "Views/Grid.xaml", "Views/Grid.xaml.fs", "fvim.fsproj", "fvim_avalonia.fsproj", "model.fs", "states.fs", "ui.fs" ]
[]
true
yatli/fvim
175
issue_to_patch
Mention .NET SDK 3.1.404 is required for build
Since some parts of the new syntax (say, `uint`) are used here, the project cannot be built using an older SDK.
82dd51347cc3a5ea859e2372a27c9c49084f2f78
66dea9f39c6a30de054e84eaf68dfdbeb7f0cebc
diff --git a/README.md b/README.md index 61450fc..7d21e27 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Cross platform Neovim front-end UI, built with [F#](https://fsharp.org/) + [Aval - Arch Linux: [Install via AUR](https://aur.archlinux.org/packages/fvim/) - RPM-based distributions: `rpm -ivh fv...
[ "README.md" ]
[]
true
yatli/fvim
163
issue_to_patch
Glyphrun
4e152b366d68a92c6c2b2198259819be3b42713b
fcfe1890f6f48f467b3c38c91d6016412de41704
diff --git a/.gitignore b/.gitignore index f7af67d..d45b0d3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ desktop.ini *.zip native/**/build .ccls-cache + +.fake \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index d887356..201ae54 100644 --- a/.vscode/launch.json +++ ...
[ ".gitignore", ".vscode/launch.json", ".vscode/tasks.json", "Fonts/nerd.ttf", "Views/Cursor.xaml.fs", "Views/Editor.xaml.fs", "Views/MainWindow.xaml.fs", "def.fs", "fvim.fsproj", "states.fs", "ui.fs", "wcwidth.fs" ]
[]
true
yatli/fvim
129
issue_to_patch
Performance improvements
This is looking good. 4K @ 60fps without jittering. Need to test compatibility with all platforms to see if the caching mechanism works.
d39ee8b60dafbefc9b5f31942b81d522cce72cf5
4356c18249dc01f5a1cc37a1aa1e450c9fd0f037
diff --git a/Program.fs b/Program.fs index f5da66d..4c165a1 100644 --- a/Program.fs +++ b/Program.fs @@ -122,7 +122,7 @@ let main(args: string[]) = | Ok() -> 0 | Error ex -> // TODO should yield so that the crash info can propagate back - FVim.log.trace "main" "displaying crash dialog" + FVim.log.trace...
[ "Program.fs", "ViewModels/EditorViewModel.fs", "Views/Cursor.xaml.fs", "Views/Editor.xaml.fs", "Views/MainWindow.xaml", "Views/MainWindow.xaml.fs", "Views/PopupMenu.xaml.fs", "log.fs", "model.fs", "neovim.fs", "profiling/trace.nettrace", "profiling/trace.speedscope.json", "shell.fs", "stat...
[]
true
yatli/fvim
127
issue_to_patch
Clean up CFBundleDocumentTypes
Apple has the concept of Uniform Type Identifiers[1] which allows to associate an app to a bunch of file-types at once. This commit add the `public.text` TUI to the Info.plist file and removes unneeded declarations. I didn't test all of them, but they can be added as needed [1]: https://developer.apple.com/library/a...
7565393f2c19f9a837e79c623f8bd668a9ecedae
736473a7d4e15940d1c0770865e21cfa85bf31d8
diff --git a/lib/Info.plist b/lib/Info.plist index 6ba30ea..6b6fede 100644 --- a/lib/Info.plist +++ b/lib/Info.plist @@ -16,1061 +16,195 @@ <string>True</string> <key>CFBundleDocumentTypes</key> <array> - <dict> - <key>CFBundleTypeExtensions</key> - <array> - <string>vim</string> - ...
[ "lib/Info.plist" ]
[]
true
yatli/fvim
119
issue_to_patch
bg transparency
769a7ac88b7b296db251231536fc8190af9a1ede
f3ad7adff5fbd7f9b330bd9fb86f87ee41907e1a
diff --git a/README.md b/README.md index 81e7de2..924ae7b 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,11 @@ FVimCursorSmoothBlink v:true FVimBackgroundComposition 'acrylic' " 'none', 'blur' or 'acrylic' FVimBackgroundOpacity 0.85 " value between 0 and 1, default bg opacity. FVimBackgroundAltOpac...
[ "README.md", "ViewModels/EditorViewModel.fs", "ViewModels/MainWindowViewModel.fs", "Views/Editor.xaml", "Views/Editor.xaml.fs", "Views/MainWindow.xaml", "Views/MainWindow.xaml.fs", "model.fs", "states.fs", "theme.fs", "ui.fs" ]
[]
true
yatli/fvim
113
issue_to_patch
Bump MessagePack.ImmutableCollection from 1.7.3.7 to 1.9.3
Bumps [MessagePack.ImmutableCollection](https://github.com/neuecc/MessagePack-CSharp) from 1.7.3.7 to 1.9.3. <details> <summary>Release notes</summary> *Sourced from [MessagePack.ImmutableCollection's releases](https://github.com/neuecc/MessagePack-CSharp/releases).* > ## v1.9.3 > ## Changes > > 🔒 **Security fixe...
83a779851ada77ea2857895a02843735793858c4
e1ef30abdd27152774c28190a47f964a5676eb3d
diff --git a/fvim.fsproj b/fvim.fsproj index 0b045ce..887d0b5 100644 --- a/fvim.fsproj +++ b/fvim.fsproj @@ -92,7 +92,7 @@ <PackageReference Include="HarfBuzzSharp.NativeAssets.Linux" Version="1.4.6.2" /> <PackageReference Include="MessagePack" Version="1.7.3.7" /> <PackageReference Include="MessagePack....
[ "fvim.fsproj" ]
[]
true
yatli/fvim
114
issue_to_patch
Bump MessagePack from 1.7.3.7 to 1.9.3
Bumps [MessagePack](https://github.com/neuecc/MessagePack-CSharp) from 1.7.3.7 to 1.9.3. <details> <summary>Release notes</summary> *Sourced from [MessagePack's releases](https://github.com/neuecc/MessagePack-CSharp/releases).* > ## v1.9.3 > ## Changes > > 🔒 **Security fixes are included in this release**. Read m...
83a779851ada77ea2857895a02843735793858c4
b804b85a3c1ba3671f662cc87beddb4b1526ce6a
diff --git a/fvim.fsproj b/fvim.fsproj index 0b045ce..ab6e415 100644 --- a/fvim.fsproj +++ b/fvim.fsproj @@ -90,7 +90,7 @@ </PackageReference> <PackageReference Include="HarfBuzzSharp" Version="1.4.6.2" /> <PackageReference Include="HarfBuzzSharp.NativeAssets.Linux" Version="1.4.6.2" /> - <PackageRefe...
[ "fvim.fsproj" ]
[]
true
yatli/fvim
74
issue_to_patch
Background composition
TODO ------- - [x] Custom titlebar ( #83 ) - [x] ~~background transparency without blur~~ (Moved to #95) - [x] ~~background picture?~~ (Moved to #95) - [x] font overflow - [x] ~~custom titlebar buttons not reliable~~ (Moved to #94) - [x] keep last states in fvim config file so that the startup process is smoot...
99357d8bc7331f78ec98b6bcd780095d92eebf3f
f4e1ed54a927f5d7037e41a091d75fe806ad5cad
diff --git a/.gitignore b/.gitignore index 596304e..f7af67d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ desktop.ini *.deb *.app *.zip +native/**/build +.ccls-cache diff --git a/Program.fs b/Program.fs index b5b9ffa..e8f969b 100644 --- a/Program.fs +++ b/Program.fs @@ -16,6 +16,7 @@ open System open S...
[ ".gitignore", "Program.fs", "ViewModels/EditorViewModel.fs", "ViewModels/MainWindowViewModel.fs", "Views/Editor.xaml", "Views/Editor.xaml.fs", "Views/MainWindow.xaml", "Views/MainWindow.xaml.fs", "config.fs", "lib/libfvim-ext.dylib", "model.fs", "native/osx/CMakeLists.txt", "native/osx/compi...
[]
true
yatli/fvim
83
issue_to_patch
Custom titlebar
f19607b17e3550159dc1ecd4adbc1c8718809ef1
bacca86560c8c1b7b8b4d4052adc09d6229986c9
diff --git a/DesignTime/EditorSampleData.fs b/DesignTime/EditorSampleData.fs new file mode 100644 index 0000000..e875ad9 --- /dev/null +++ b/DesignTime/EditorSampleData.fs @@ -0,0 +1,10 @@ +namespace FVim + +open Avalonia.Media +open Avalonia.Controls +open Avalonia.Media.Imaging + +type EditorSampleData() = + memb...
[ "DesignTime/EditorSampleData.fs", "DesignTime/MainWindowSampleData.fs", "DesignTime/TitleBarSampleData.fs", "ViewModels/EditorViewModel.fs", "ViewModels/MainWindowViewModel.fs", "ViewModels/PopupMenuViewModel.fs", "ViewModels/ThemableViewModelBase.fs", "ViewModels/TitleBarViewModel.fs", "Views/Edito...
[]
true
yatli/fvim
79
issue_to_patch
multigrid
2fda01238fb3e97a3638a100e4b48bad9233d611
0dfe162d7e0e84f27c3f02ee3a8974e10580922a
diff --git a/App.xaml.fs b/App.xaml.fs index 61e908e..d1865c2 100644 --- a/App.xaml.fs +++ b/App.xaml.fs @@ -1,7 +1,27 @@ namespace FVim open Avalonia +open Avalonia.Controls +open Avalonia.Controls.Templates open Avalonia.Markup.Xaml +open System + +type IViewModelContainer = + abstract Target: obj + +type Vi...
[ "App.xaml.fs", "Program.fs", "Properties/launchSettings.json", "ViewModels/CompletionItemViewModel.fs", "ViewModels/CursorViewModel.fs", "ViewModels/EditorViewModel.fs", "ViewModels/MainWindowViewModel.fs", "ViewModels/PopupMenuViewModel.fs", "ViewModels/ViewModelBase.fs", "Views/Cursor.xaml.fs", ...
[]
true
yatli/fvim
78
issue_to_patch
Crash report
2fda01238fb3e97a3638a100e4b48bad9233d611
68066787e0cd40a40a094456e8b0be4c40cda297
diff --git a/Assets/error.png b/Assets/error.png new file mode 100644 index 0000000..9d4f19c Binary files /dev/null and b/Assets/error.png differ diff --git a/Assets/error.xcf b/Assets/error.xcf new file mode 100644 index 0000000..a5a8635 Binary files /dev/null and b/Assets/error.xcf differ diff --git a/DesignTime/Cras...
[ "Assets/error.png", "Assets/error.xcf", "DesignTime/CrashReportSampleData.fs", "Program.fs", "ViewModels/CrashReportViewModel.fs", "Views/CrashReport.xaml", "Views/CrashReport.xaml.fs", "fvim.fsproj" ]
[]
true
yatli/fvim
56
issue_to_patch
Implement rpm packaging
Should generate an rpm package alongside the deb linux package. Currently the rpm generation has been tested, but not the resulting rpm itself.
a3265a7bdbd1389453252d8bb91a8e5e1c3f6e3b
757329232caf6895fb79fc7b6098548f0f03b37f
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e0a644f..295e765 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -44,7 +44,7 @@ jobs: inputs: targetType: 'inline' script: | - sudo apt-get install ruby ruby-dev rubygems build-essential + sudo apt-get install ru...
[ "azure-pipelines.yml", "pack.sh" ]
[]
true
yatli/fvim
55
issue_to_patch
Improve linux installation instructions #52
Added a couple options in the Linux install instructions section to hopefully cover more cases.
17b59dd4bfcdcd1466db083cdfef96724bd5ae79
d49d3b715e52ae1fb903401d7b823b69a9c09137
diff --git a/README.md b/README.md index cdf89eb..c6e39bb 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,13 @@ Cross platform Neovim front-end UI, built with [F#](https://fsharp.org/) + [Aval - For Windows 7, use the `win7-x64` package. - For Windows 10, use the `win-x64` package -- this version has faster start...
[ "README.md" ]
[]
true
yatli/fvim
53
issue_to_patch
Popupmenu
5bc307001d3d4dd497e4066ffbd61fc3fb8b7c0b
de6246110c0b3084fc49550f9df37dad9ab1b7d0
diff --git a/Assets/intellisense/Class_16x.png b/Assets/intellisense/Class_16x.png new file mode 100644 index 0000000..5ea87b3 Binary files /dev/null and b/Assets/intellisense/Class_16x.png differ diff --git a/Assets/intellisense/ColorPalette_16x.png b/Assets/intellisense/ColorPalette_16x.png new file mode 100644 index...
[ "Assets/intellisense/Class_16x.png", "Assets/intellisense/ColorPalette_16x.png", "Assets/intellisense/Constant_16x.png", "Assets/intellisense/Dimension_16x.png", "Assets/intellisense/EnumItem_16x.png", "Assets/intellisense/Enumerator_16x.png", "Assets/intellisense/Event_16x.png", "Assets/intellisense/...
[]
true
yatli/fvim
49
issue_to_patch
workaround #48
0324dec7a72bf4f44723cdfd306cde42d0a5da09
e465da6d6d98883712e248788184666cee5b07ef
diff --git a/neovim/neovim.model.fs b/neovim/neovim.model.fs index 00b769d..9aa06d7 100644 --- a/neovim/neovim.model.fs +++ b/neovim/neovim.model.fs @@ -258,6 +258,7 @@ module ModelImpl = match x with | ImeEvent -> _imeArmed <- true | TextInput _ -> () + | Unrecogniz...
[ "neovim/neovim.model.fs" ]
[]
true
yatli/fvim
17
issue_to_patch
Avalonia nightly
f322303fe1300e88c08c4ce63ecc1cad7f7d8d85
fbaa0699d7a20f007ba2bd0343cd541a7bddd6e9
diff --git a/Program.fs b/Program.fs index 4a86e39..f54683f 100644 --- a/Program.fs +++ b/Program.fs @@ -4,6 +4,7 @@ open Avalonia open Avalonia.Logging.Serilog open System.Reflection open FSharp.Data +open Avalonia.ReactiveUI module Program = @@ -18,12 +19,11 @@ module Program = AppBuilder ...
[ "Program.fs", "ViewModels/EditorViewModel.fs", "Views/Cursor.xaml", "Views/Cursor.xaml.fs", "Views/Editor.xaml.fs", "Views/MainWindow.xaml.fs", "fvim.fsproj", "neovim/neovim.model.fs", "pack.ps1", "ui.fs" ]
[]
true
yatli/fvim
13
issue_to_patch
Changed default font weight to Normal, and made <C-l> not special
The way that <C-l> is handled is kinda brute, I guess a better solution could be send the key combinations through after they were handled as special inputs.
03c43af3da2095f5477484facae2e50aa1df3821
9872196d07887a7f68696f8737733cca10178117
diff --git a/ViewModels/EditorViewModel.fs b/ViewModels/EditorViewModel.fs index a698f2f..3a54def 100644 --- a/ViewModels/EditorViewModel.fs +++ b/ViewModels/EditorViewModel.fs @@ -98,7 +98,7 @@ and EditorViewModel(GridId: int, ?parent: EditorViewModel, ?_gridsize: GridSize, | None -...
[ "ViewModels/EditorViewModel.fs", "fvim.fsproj.user", "neovim/neovim.model.fs", "ui.fs" ]
[]
true
yewstack/yew
4,167
issue_to_patch
kill version-sensitive URL/version maintenance with a build-time placeholder plugin ## Problem The getting-started and tutorial pages (and other docs) hard-code the **yew version** in several spots that must be hand-updated on every release and are easy to miss: 1. **docs.rs API links** pinned to a version. e.g. `ht...
chore(website): version-aware docs URLs via remark plugin
Resolves #4166
47d4082d301d495c3c97fc9ed5cb18ffffaa3198
e9287308554c11e1615c3ce650da1f8d3294b10b
diff --git a/website/docs/concepts/function-components/hooks/introduction.mdx b/website/docs/concepts/function-components/hooks/introduction.mdx index 240dd02b8c8..636e7073f3a 100644 --- a/website/docs/concepts/function-components/hooks/introduction.mdx +++ b/website/docs/concepts/function-components/hooks/introduction...
[ "website/docs/concepts/function-components/hooks/introduction.mdx", "website/docs/getting-started/build-a-sample-app.mdx", "website/docusaurus.config.js", "website/src/remark/yewVersionUrls.core.js", "website/src/remark/yewVersionUrls.js", "website/src/remark/yewVersionUrls.test.js", "website/versioned_...
[]
diff --git a/website/src/remark/yewVersionUrls.test.js b/website/src/remark/yewVersionUrls.test.js new file mode 100644 index 00000000000..1c077be209a --- /dev/null +++ b/website/src/remark/yewVersionUrls.test.js @@ -0,0 +1,105 @@ +// Standalone unit test for the yew-version remark logic. +// Run with: `node src/remark...
true
yewstack/yew
4,141
issue_to_patch
Yew.rs tutorial has outdated wasm-bindgen-futures pattern This is about: - [ ] A typo - [ ] Inaccurate/misleading documentation (e.g. technically incorrect advice) - [ ] Undocumented code - [x] Outdated documentation - [ ] Other **Problem** This is an excerpt from the tutorial, after tellinng new users to add `wasm...
docs: tutorial: update outdated fetching data section
#### Description Fetching data section of the tutorial page still mentioned using `wasm-bindgen-futures::spawn_local`. Updated the docs and examples to use `yew::platform::spawn_local` and the `use_future` hook instead. **note: for translation purpose I did used LLM (Codex | GPT-5.4)** <!-- Please include a summ...
a259eae6821621ba6afe88512e231fc7eb079ec7
174cb75692750a4f1f9315b441199abdcd569188
diff --git a/website/docs/tutorial/index.mdx b/website/docs/tutorial/index.mdx index 5cefaf1b9d1..9387781c78c 100644 --- a/website/docs/tutorial/index.mdx +++ b/website/docs/tutorial/index.mdx @@ -459,18 +459,15 @@ videos list from an external source. For this we will need to add the following For making the fetch c...
[ "website/docs/tutorial/index.mdx", "website/i18n/ja/docusaurus-plugin-content-docs/current/tutorial/index.mdx", "website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/tutorial/index.mdx", "website/i18n/ja/docusaurus-plugin-content-docs/version-0.23/tutorial/index.mdx", "website/i18n/zh-Hans/docusaurus...
[]
true
yewstack/yew
4,158
issue_to_patch
<img src> re-downloaded on hydration because all attributes are unconditionally re-applied **Problem** During SSR hydration, Yew unconditionally re-applies every attribute to the already rendered DOM element. For attributes like src on `<img>`, setting the attribute again even to the same value - causes the browser to...
add hydrate_set(Attributes) and hydrate(trait Apply) methods
#### Description Introduce an optimized hydration path for DOM attributes - skip unnecessary set_attribute calls when SSR has already written the correct value. Fixes #4157 #### Checklist - [x] I have reviewed my own code - [x] I have added tests
65972c34fe8c18e6961c9473c572c71e03de43d5
c39803edc34799571b92d3f9601d66d64af62f82
diff --git a/packages/yew/Cargo.toml b/packages/yew/Cargo.toml index 629e50f9ccc..a83f1e8e74e 100644 --- a/packages/yew/Cargo.toml +++ b/packages/yew/Cargo.toml @@ -92,7 +92,13 @@ trybuild = { workspace = true } [dev-dependencies.web-sys] workspace = true -features = ["ShadowRootInit", "ShadowRootMode", "HtmlButton...
[ "packages/yew/Cargo.toml", "packages/yew/src/dom_bundle/btag/attributes.rs", "packages/yew/src/dom_bundle/btag/mod.rs", "packages/yew/tests/hydration.rs" ]
[]
diff --git a/packages/yew/tests/hydration.rs b/packages/yew/tests/hydration.rs index 63ca2144edd..7fb1488ed28 100644 --- a/packages/yew/tests/hydration.rs +++ b/packages/yew/tests/hydration.rs @@ -1,6 +1,7 @@ #![cfg(feature = "hydration")] #![cfg(all(target_arch = "wasm32", not(target_os = "wasi")))] +use std::cell...
true
yewstack/yew
4,163
issue_to_patch
chore(deps): bump the cargo-deps group across 1 directory with 18 updates
Bumps the cargo-deps group with 18 updates in the / directory: | Package | From | To | | --- | --- | --- | | [tokio](https://github.com/tokio-rs/tokio) | `1.51.0` | `1.52.3` | | [clap](https://github.com/clap-rs/clap) | `4.6.0` | `4.6.1` | | [serde_json](https://github.com/serde-rs/json) | `1.0.149` | `1.0.150` | | [l...
53bb20c90a192d5efd81a5eef2639bce95219146
42fa537c2252ecb6db204c6d1ee6923720a6b78f
diff --git a/Cargo.lock b/Cargo.lock index 39976d09500..61fdaceef1f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -372,7 +372,7 @@ version = "0.0.1" dependencies = [ "chrono", "futures 0.3.32", - "gloo-net 0.7.0", + "gloo-net", "yew", ] @@ -399,9 +399,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954...
[ "Cargo.lock", "Cargo.toml", "examples/axum_ssr_router/Cargo.toml", "examples/password_strength/Cargo.toml", "examples/simple_ssr/Cargo.toml", "packages/yew-link/Cargo.toml", "packages/yew/Cargo.toml", "tools/benchmark-ssr/Cargo.toml" ]
[]
true
yewstack/yew
4,164
issue_to_patch
fix: make simple_ssr SSR fetch reliable in CI
see commit message
830db95a54af3b685211ac7349e7276383c9565f
c425d48af21003c6f3f9c7438a36f95420259a51
diff --git a/examples/simple_ssr/src/lib.rs b/examples/simple_ssr/src/lib.rs index 8611b7c0cf9..1d9dc775c83 100644 --- a/examples/simple_ssr/src/lib.rs +++ b/examples/simple_ssr/src/lib.rs @@ -9,8 +9,17 @@ struct UuidResponse { #[cfg(feature = "ssr")] async fn fetch_uuid() -> Uuid { - // reqwest works for both n...
[ "examples/simple_ssr/src/lib.rs" ]
[]
true
yewstack/yew
4,162
issue_to_patch
chore(deps): bump git2 to 0.21 and adapt changelog tool
exposed by a dependabot PR. this is un-blocks the PR.
6292cbe275cd82fb015ad8bbcd2fc163e7bd854b
e3afb668f059f304bf12e83574d0a60cfe1a3996
diff --git a/Cargo.lock b/Cargo.lock index 9072a7e731d..39976d09500 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1572,17 +1572,14 @@ dependencies = [ [[package]] name = "git2" -version = "0.20.4" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b88256088d75a56f8ecf...
[ "Cargo.lock", "tools/changelog/Cargo.toml", "tools/changelog/src/get_latest_version.rs" ]
[]
diff --git a/tools/changelog/src/get_latest_version.rs b/tools/changelog/src/get_latest_version.rs index 89fe646e625..91883b529f2 100644 --- a/tools/changelog/src/get_latest_version.rs +++ b/tools/changelog/src/get_latest_version.rs @@ -12,7 +12,7 @@ pub fn get_latest_version(package: &YewPackage) -> Result<Version> { ...
true
yewstack/yew
4,151
issue_to_patch
chore(deps): bump postcss from 8.5.6 to 8.5.13 in /website
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.6 to 8.5.13. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/postcss/postcss/releases">postcss's releases</a>.</em></p> <blockquote> <h2>8.5.13</h2> <ul> <li>Fixed <code>postcss-scss</code> commend regression.</li> <...
d4e5e9f3a82e81e97041f53e0cc7e6bb1796cd48
5de1a63bc69d99f390dbd2713b08dad6f18c08e7
diff --git a/website/package-lock.json b/website/package-lock.json index a3ef604410b..a5dd6d91937 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -14047,9 +14047,9 @@ } }, "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https:...
[ "website/package-lock.json" ]
[]
true
yewstack/yew
4,161
issue_to_patch
chore(deps): bump crate-ci/typos from 1.44.0 to 1.47.0
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.44.0 to 1.47.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/crate-ci/typos/releases">crate-ci/typos's releases</a>.</em></p> <blockquote> <h2>v1.47.0</h2> <h2>[1.47.0] - 2026-05-29</h2> <h3>Features</h3> <ul>...
65972c34fe8c18e6961c9473c572c71e03de43d5
0cd3a50f581f9fb0254c0317f47e0d7cfc37dd4c
diff --git a/.github/workflows/main-checks.yml b/.github/workflows/main-checks.yml index c7514f9a79f..d608767dde2 100644 --- a/.github/workflows/main-checks.yml +++ b/.github/workflows/main-checks.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v6 - name: Check spelling - uses: cra...
[ ".github/workflows/main-checks.yml" ]
[]
true
yewstack/yew
4,145
issue_to_patch
modernize example code with preamble statements #4124 opened up opportunities to more compact coding styles. `html!` invocations in example crates and website code snippets can benefit from some refactoring.
refactor: inline to html! callsite
#### Description eliminated a bunch of functions that return Html and were only used once in some `html!` callsite Fixes #4144 #### Checklist - [x] I have reviewed my own code
c28846c3e8c837d90ab8b4bc35377e317520d7c1
623ee28732ab08f4a9919218afc482be57abea71
diff --git a/examples/actix_ssr_router/src/lib.rs b/examples/actix_ssr_router/src/lib.rs index 913510c7dfc..0f039a5964c 100644 --- a/examples/actix_ssr_router/src/lib.rs +++ b/examples/actix_ssr_router/src/lib.rs @@ -115,27 +115,7 @@ fn render_post(post: &content::Post) -> Html { } }; - let view_cont...
[ "examples/actix_ssr_router/src/lib.rs", "examples/axum_ssr_router/src/lib.rs", "examples/boids/src/boid.rs", "examples/boids/src/simulation.rs", "examples/file_upload/src/main.rs", "examples/function_router/src/pages/post.rs", "examples/function_router/src/pages/post_list.rs", "examples/game_of_life/s...
[]
true
yewstack/yew
4,155
issue_to_patch
chore: bump nanoid to 0.5 and propagate getrandom wasm_js
#### Description Bumps `nanoid` to `0.5` in `examples/function_memory_game` and adds the `getrandom_03` workspace dep so the `wasm_js` Cargo feature is activated for the transitive `getrandom 0.3` brought in by nanoid 0.5's `rand 0.9`. ##### Why this is needed `nanoid 0.5` swaps its `rand 0.8` dep for `rand 0....
b50f17f8e2a1fc677765727a54adec0941fca6a2
0349c27e670a05ca5c9dc1b68e899dda4e88cc1a
diff --git a/Cargo.lock b/Cargo.lock index 83793809cde..9072a7e731d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1374,6 +1374,7 @@ dependencies = [ name = "function_memory_game" version = "0.1.0" dependencies = [ + "getrandom 0.3.4", "getrandom 0.4.2", "gloo", "nanoid", @@ -2574,7 +2575,7 @@ version = "0.9.1" ...
[ "Cargo.lock", "examples/function_memory_game/Cargo.toml" ]
[]
true
yewstack/yew
4,013
issue_to_patch
Feature soundness is a chore to deal with **Problem** The feature soundness lints are useful but clippy is not very helpful when determining the correct visibilities and features. At least sometimes I don't understand immediately why clippy is allowing some things but not others. Take for example [this clippy run](ht...
ci: replace hand-maintained feature-soundness scripts with cargo-hack
#### Description ~~98 combinations from the full powerset might be unrealistic for CI~~ ~~that's why there's `--exclude-features test,serde,not_browser_env`. These features don't gate any code paths~~ ~~This then results in 14 clippy invocations are identical to what the old scripts ran, but now auto-discovere...
19b1869ebda5202944d6251243130b6f3303789b
fa72abde4b85914ee0e57ea1930f14459c164a8c
diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index f9901ac0cdc..62ef8c6fa46 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -38,13 +38,25 @@ jobs: with: save-if: ${{ github.ref == 'refs/heads/master' }} + - uses: taiki-e/install-acti...
[ ".github/workflows/clippy.yml", "Makefile.toml", "ci/feature-soundness-release.sh", "ci/feature-soundness.sh", "packages/yew/Makefile.toml" ]
[]
true
yewstack/yew
4,154
issue_to_patch
chore: update NO_TRUNK_EXAMPLES for renamed SSR examples
#### Description PR #4027 renamed the `ssr_router` example to `axum_ssr_router` and added a new `actix_ssr_router`, but `NO_TRUNK_EXAMPLES` in `tools/build-examples/src/lib.rs` still listed the old `ssr_router`. As a result the size-cmp job iterates over both new SSR examples (which have no `Trunk.toml`), `is_wasm_o...
c28846c3e8c837d90ab8b4bc35377e317520d7c1
c91179372a3899f9e44ae95d383c06224e4b8b72
diff --git a/tools/build-examples/src/lib.rs b/tools/build-examples/src/lib.rs index 65b5ab6e6cb..90f6afd782a 100644 --- a/tools/build-examples/src/lib.rs +++ b/tools/build-examples/src/lib.rs @@ -5,7 +5,12 @@ use serde::Deserialize; use toml::Table; /// Examples that don't use Trunk for building -pub const NO_TRUN...
[ "tools/build-examples/src/lib.rs" ]
[]
true
yewstack/yew
4,152
issue_to_patch
Validate attribute names
#### Description Attribute names are written to the HTML in SSR without escaping (no such escaping is part of the HTML spec). This means they need to be validated to avoid surprises when they are parsed back in the browser. Note that in normal usage, Rust identifiers always form valid attribute names. To catch br...
d4e5e9f3a82e81e97041f53e0cc7e6bb1796cd48
9abb23ceba58beec44400a37949b4b03be24288c
diff --git a/packages/yew-macro/src/html_tree/html_element.rs b/packages/yew-macro/src/html_tree/html_element.rs index c2f7607d04d..d3444d568ff 100644 --- a/packages/yew-macro/src/html_tree/html_element.rs +++ b/packages/yew-macro/src/html_tree/html_element.rs @@ -204,6 +204,15 @@ impl ToTokens for HtmlElement { ...
[ "packages/yew-macro/src/html_tree/html_element.rs", "packages/yew-macro/tests/html_macro/node-fail.rs", "packages/yew-macro/tests/html_macro/node-fail.stderr", "packages/yew-macro/tests/html_macro_test.rs", "packages/yew/src/dom_bundle/btag/attributes.rs", "packages/yew/src/virtual_dom/mod.rs", "package...
[ { "comment": "is this cut short?", "path": "packages/yew-macro/src/html_tree/html_element.rs", "hunk": "@@ -373,19 +406,26 @@ impl ToTokens for HtmlElement {\n };\n quote! { #value }\n });\n+ let to_attributes = if all_attr_names_ssr...
diff --git a/packages/yew-macro/tests/html_macro/node-fail.rs b/packages/yew-macro/tests/html_macro/node-fail.rs index 588722bd273..ab67bafbd9d 100644 --- a/packages/yew-macro/tests/html_macro/node-fail.rs +++ b/packages/yew-macro/tests/html_macro/node-fail.rs @@ -1,3 +1,4 @@ +#![allow(uncommon_codepoints)] use yew::p...
true
yewstack/yew
4,152
comment_to_fix
Validate attribute names
is this cut short?
d4e5e9f3a82e81e97041f53e0cc7e6bb1796cd48
9abb23ceba58beec44400a37949b4b03be24288c
diff --git a/packages/yew-macro/src/html_tree/html_element.rs b/packages/yew-macro/src/html_tree/html_element.rs index c2f7607d04d..d3444d568ff 100644 --- a/packages/yew-macro/src/html_tree/html_element.rs +++ b/packages/yew-macro/src/html_tree/html_element.rs @@ -204,6 +204,15 @@ impl ToTokens for HtmlElement { ...
[ "packages/yew-macro/src/html_tree/html_element.rs" ]
[ { "comment": "is this cut short?", "path": "packages/yew-macro/src/html_tree/html_element.rs", "hunk": "@@ -373,19 +406,26 @@ impl ToTokens for HtmlElement {\n };\n quote! { #value }\n });\n+ let to_attributes = if all_attr_names_ssr...
true
yewstack/yew
4,146
issue_to_patch
feat: auto-detect imperative for/while/loop in preamble
#### Description First off, the final diagnostics patch in [b9fe62a](https://github.com/yewstack/yew/pull/4124/commits/b9fe62a55487fae23ac5aa8047bd8c6892c33107) in #4124 seems unnecessary. Either `let _ = for {...}` or a trailing comma (`for {...};`) seems to do the same job and the latter should have definitely be ...
d4e5e9f3a82e81e97041f53e0cc7e6bb1796cd48
e611fb0d5c90582ec76b28704ec2a83b4cd46881
diff --git a/packages/yew-macro/src/html_tree/mod.rs b/packages/yew-macro/src/html_tree/mod.rs index c2f6e626676..1ee2297c94c 100644 --- a/packages/yew-macro/src/html_tree/mod.rs +++ b/packages/yew-macro/src/html_tree/mod.rs @@ -582,14 +582,17 @@ impl Parse for HtmlRootBraced { /// not Rust-parseable (e.g. an `<elemen...
[ "packages/yew-macro/src/html_tree/mod.rs", "packages/yew-macro/tests/html_macro/for-pass.rs", "packages/yew-macro/tests/html_macro/imperative-preamble-fail.rs", "packages/yew-macro/tests/html_macro/imperative-preamble-fail.stderr", "packages/yew-macro/tests/html_macro/imperative-preamble-pass.rs", "packag...
[]
diff --git a/packages/yew-macro/tests/html_macro/for-pass.rs b/packages/yew-macro/tests/html_macro/for-pass.rs index 4747a2cd8f0..6519fc8b0fb 100644 --- a/packages/yew-macro/tests/html_macro/for-pass.rs +++ b/packages/yew-macro/tests/html_macro/for-pass.rs @@ -390,4 +390,110 @@ fn main() { 0 } let _ ...
true
yewstack/yew
4,124
issue_to_patch
feat: while, break/continue/return, and preamble statements in html!
#### Description a spiritual followup of #4118 #### Checklist - [x] I have reviewed my own code - [x] I have added tests
28219ae16e748a0511d79855b701d365bf122ad3
b9fe62a55487fae23ac5aa8047bd8c6892c33107
diff --git a/packages/yew-macro/src/html_tree/html_for.rs b/packages/yew-macro/src/html_tree/html_for.rs index 006b1204f8e..7979e133795 100644 --- a/packages/yew-macro/src/html_tree/html_for.rs +++ b/packages/yew-macro/src/html_tree/html_for.rs @@ -1,28 +1,18 @@ -use proc_macro2::{Ident, TokenStream}; +use proc_macro2:...
[ "packages/yew-macro/src/html_tree/html_for.rs", "packages/yew-macro/src/html_tree/html_loop.rs", "packages/yew-macro/src/html_tree/html_match.rs", "packages/yew-macro/src/html_tree/html_while.rs", "packages/yew-macro/src/html_tree/mod.rs", "packages/yew-macro/tests/html_macro/for-fail.rs", "packages/yew...
[ { "comment": "I have seen this in the previous extension too. Is there a deeper meaning behind only allowing `let` statements and nothing else, most notably expression statements?\n\nI suppose a [QualifiedPathInExpression](https://doc.rust-lang.org/reference/paths.html#railroad-QualifiedPathInExpression) would ...
diff --git a/packages/yew-macro/tests/html_macro/for-fail.rs b/packages/yew-macro/tests/html_macro/for-fail.rs index e40eece597b..19b04c5c75b 100644 --- a/packages/yew-macro/tests/html_macro/for-fail.rs +++ b/packages/yew-macro/tests/html_macro/for-fail.rs @@ -10,10 +10,6 @@ fn main() { <span>{x}</span> }...
true
yewstack/yew
4,124
comment_to_fix
feat: while, break/continue/return, and preamble statements in html!
I have seen this in the previous extension too. Is there a deeper meaning behind only allowing `let` statements and nothing else, most notably expression statements? I suppose a [QualifiedPathInExpression](https://doc.rust-lang.org/reference/paths.html#railroad-QualifiedPathInExpression) would be ambiguous. Rust allow...
28219ae16e748a0511d79855b701d365bf122ad3
b9fe62a55487fae23ac5aa8047bd8c6892c33107
diff --git a/packages/yew-macro/src/html_tree/html_while.rs b/packages/yew-macro/src/html_tree/html_while.rs new file mode 100644 index 00000000000..68f7f50fe72 --- /dev/null +++ b/packages/yew-macro/src/html_tree/html_while.rs @@ -0,0 +1,72 @@ +use proc_macro2::TokenStream; +use quote::{ToTokens, quote}; +use syn::buf...
[ "packages/yew-macro/src/html_tree/html_while.rs" ]
[ { "comment": "I have seen this in the previous extension too. Is there a deeper meaning behind only allowing `let` statements and nothing else, most notably expression statements?\n\nI suppose a [QualifiedPathInExpression](https://doc.rust-lang.org/reference/paths.html#railroad-QualifiedPathInExpression) would ...
true
yewstack/yew
4,124
comment_to_fix
feat: while, break/continue/return, and preamble statements in html!
Which of the two options is meant to be produced for the loop below? ``` html! { for i in [1, 2] { <a></a> <i></i> } } ``` Option 1 ``` html! { <a></a> <i></i> <a></a> <i></i> } ``` Option 2 ``` html! { <> <a></a> <i></i> </> <> <a></a> <i></i> </> } ```
28219ae16e748a0511d79855b701d365bf122ad3
b9fe62a55487fae23ac5aa8047bd8c6892c33107
diff --git a/packages/yew-macro/src/html_tree/html_while.rs b/packages/yew-macro/src/html_tree/html_while.rs new file mode 100644 index 00000000000..68f7f50fe72 --- /dev/null +++ b/packages/yew-macro/src/html_tree/html_while.rs @@ -0,0 +1,72 @@ +use proc_macro2::TokenStream; +use quote::{ToTokens, quote}; +use syn::buf...
[ "packages/yew-macro/src/html_tree/html_while.rs" ]
[ { "comment": "Which of the two options is meant to be produced for the loop below?\n\n```\nhtml! {\n for i in [1, 2] {\n <a></a>\n <i></i>\n }\n}\n```\n\nOption 1\n```\nhtml! {\n <a></a>\n <i></i>\n <a></a>\n <i></i>\n}\n```\n\nOption 2\n```\nhtml! {\n <>\n <a></a>\n <i></i>\n </>\n <>\n ...
true