Skip to content

Avoid errors in read-only GitHub sources #1787

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 27, 2024

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Jul 24, 2024

This is an incremental improvement for viewing GitHub sources that avoids treating them as open documents since they are read-only buffers. In the future, we can do the work to associate them with the existing compilation taht contains those sources so that things like hover and goto-def work, but for now those code paths are user-code specific and need some reworking to handle navigation in a compile unit for a dependency.

This is an incremental improvement for viewing GitHub sources that avoids treating them as open documents since they are read-only buffers. In the future, we can do the work to associate them with the existing compilation taht contains those sources so that things like hover and goto-def work, but for now those code paths are user-code specific and need some reworking to handle navigation in a compile unit for a dependency.
Copy link

Benchmark for 4259743

Click to view benchmark
Test Base PR %
Array append evaluation 339.6±3.72µs 352.7±2.43µs +3.86%
Array literal evaluation 189.5±0.71µs 197.8±2.73µs +4.38%
Array update evaluation 417.0±15.62µs 426.1±59.28µs +2.18%
Core + Standard library compilation 21.2±0.29ms 23.1±1.37ms +8.96%
Deutsch-Jozsa evaluation 5.0±0.06ms 5.0±0.07ms 0.00%
Large file parity evaluation 33.9±0.10ms 34.3±0.47ms +1.18%
Large input file compilation 12.8±0.20ms 13.5±0.54ms +5.47%
Large input file compilation (interpreter) 49.5±1.48ms 54.4±1.92ms +9.90%
Large nested iteration 32.8±1.79ms 32.8±0.29ms 0.00%
Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample 1557.0±27.91µs 1572.6±85.54µs +1.00%
Perform Runtime Capabilities Analysis (RCA) on large file sample 7.7±0.11ms 7.7±0.06ms 0.00%
Perform Runtime Capabilities Analysis (RCA) on teleport sample 1416.8±32.53µs 1444.6±100.00µs +1.96%
Perform Runtime Capabilities Analysis (RCA) on the core and std libraries 27.5±0.29ms 28.3±1.14ms +2.91%
Teleport evaluation 91.3±3.56µs 92.1±3.86µs +0.88%

Copy link

Benchmark for c50af84

Click to view benchmark
Test Base PR %
Array append evaluation 344.7±10.19µs 340.5±3.05µs -1.22%
Array literal evaluation 174.8±0.78µs 174.3±1.28µs -0.29%
Array update evaluation 414.4±4.75µs 416.2±3.15µs +0.43%
Core + Standard library compilation 24.1±0.97ms 24.4±1.05ms +1.24%
Deutsch-Jozsa evaluation 4.9±0.06ms 4.9±0.06ms 0.00%
Large file parity evaluation 34.1±0.12ms 34.1±0.54ms 0.00%
Large input file compilation 13.8±0.54ms 14.4±0.59ms +4.35%
Large input file compilation (interpreter) 54.8±2.32ms 55.7±2.49ms +1.64%
Large nested iteration 33.1±0.40ms 33.1±0.36ms 0.00%
Perform Runtime Capabilities Analysis (RCA) on Deutsch-Jozsa sample 1618.3±129.06µs 1578.8±57.23µs -2.44%
Perform Runtime Capabilities Analysis (RCA) on large file sample 8.0±0.13ms 8.0±0.17ms 0.00%
Perform Runtime Capabilities Analysis (RCA) on teleport sample 1456.8±121.34µs 1442.7±104.68µs -0.97%
Perform Runtime Capabilities Analysis (RCA) on the core and std libraries 28.5±0.32ms 28.6±0.33ms +0.35%
Teleport evaluation 93.5±10.49µs 91.3±6.36µs -2.35%

@swernli swernli added this pull request to the merge queue Jul 27, 2024
Merged via the queue into main with commit 2a42bd0 Jul 27, 2024
19 checks passed
@swernli swernli deleted the swernli/avoid-errors-in-github-sources branch July 27, 2024 01:10
github-merge-queue bot pushed a commit that referenced this pull request Feb 6, 2025
…with a real project (#2139)

Small fix to #1787 while staying true to the intention of that change.

We want to _hide_ errors from GitHub sources that are open in the
editor, but aren't associated with a project. They're essentially
orphans. For example, you may have closed the original project that
referenced those GitHub sources, but left the GitHub source open in the
editor.

But we want to _show_ errors from GitHub sources if they're part of a
normal project. Errors from dependencies are helpful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants