Commit graph

20104 commits

Author SHA1 Message Date
bors[bot] 3b02aec0cc
Merge #10903
10903: internal: Replace `mocha` with a custom test runner r=Aloso a=lnicola

Closes #10723

r? `@Aloso`

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-12-02 17:37:56 +00:00
bors[bot] c1ecc0b16e
Merge #10905
10905: minor: Fix proxyStrictSSL check r=lnicola a=lnicola

bors r+

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-12-02 13:47:03 +00:00
Laurențiu Nicola 157056db22 Fix proxyStrictSSL check 2021-12-02 15:46:23 +02:00
bors[bot] b68cd6eda2
Merge #10891
10891: fix: emit trait names in moniker identifier r=Veykril a=tjdevries

Hi,

Not sure if this is the best fix for the problem, but I noticed that functions that part of a trait are not namespaced with the trait name, so this could lead to problems if you had a function and a trait-function both defined in the same module.

Thanks!

TJ

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-12-02 11:21:59 +00:00
Laurențiu Nicola 76b3d437d3 Replace mocha with a custom test runner 2021-12-02 13:05:50 +02:00
TJ DeVries 6870bfd099 fixup: include more information for impls 2021-12-02 00:04:03 -05:00
TJ DeVries d50f18fb65 fixup: properly handle all associated items 2021-12-01 11:43:52 -05:00
bors[bot] 4691a0647b
Merge #10899
10899: ide: hack to make self not unresolved reference in async trait wrapped impl's r=Veykril a=jhgg

fixes #10708 

this is a bit hacky, but it "works". 

i'm not sure how to even write a test for this though, but i've confirmed it works via manual testing...

Co-authored-by: Jake Heinz <jh@discordapp.com>
2021-12-01 12:36:17 +00:00
Jake Heinz 30b0464ed8 add a fixme: 2021-12-01 12:26:27 +00:00
Jake Heinz ba92bb1ed9 simplify 2021-12-01 12:25:08 +00:00
Jake Heinz d2480ecb9f ide: hack to make self not unresolved reference in async trait wrapped impl's 2021-12-01 12:17:20 +00:00
bors[bot] af27958fd4
Merge #10897
10897: internal: Try to fix Code tests r=lnicola a=lnicola

It looks like `--noEmit` broke our unit tests:

![image](https://user-images.githubusercontent.com/308347/144217192-a8133a6b-880f-4852-846b-b45527485336.png)

r? `@ChayimFriedman2`

I suppose we might still:

 - compile stuff twice
 - not detect failing tests on CI (since we didn't notice this)

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-12-01 11:28:17 +00:00
Laurențiu Nicola b91003222b Bump to Node 14 2021-12-01 13:12:32 +02:00
Laurențiu Nicola 5b7ffad924 Use xvfb-run directly 2021-12-01 13:12:32 +02:00
Laurențiu Nicola df4d55bdea Bump xvfb-action to fix Code tests 2021-12-01 12:52:24 +02:00
bors[bot] c5ad6c8c5f
Merge #10896
10896: hir: resolve assoc trait type in path r=jhgg a=jhgg

fixes #9802

- [ ] write tests, maybe, if this is even a good fix...

Co-authored-by: Jake Heinz <jh@discordapp.com>
2021-12-01 10:28:49 +00:00
Jake Heinz b357569d0f add test 2021-12-01 10:28:18 +00:00
Laurențiu Nicola a59c1a0af0 Try to fix Code tests 2021-12-01 12:22:34 +02:00
Jake Heinz fec2d39f3c simplify?? 2021-12-01 09:23:42 +00:00
Jake Heinz a1b2d25810 hir: resolve assoc trait type 2021-12-01 08:44:30 +00:00
TJ DeVries 09c7e22ec2 fix: emit trait names in moniker identifier 2021-11-30 11:16:11 -05:00
bors[bot] 2d0db312b5
Merge #10872
10872: ide_db: build symbol index from crate def map r=Veykril a=jhgg

fixes #4842, #10764

Is this looking correct? 👀 

- [x] build the symbol index based upon the CrateDefMap for the given crate in `crate_symbols`
   - [x] make it multi threaded again, and figure out how to cache each moduleid's symbol index in salsa.
   - [x] NavigationTarget for names in macros is wrong, need to figure out how to compute a text range in the original file id?
   - [x] cleanup some duped code
   - [x] collect macros from `ItemScope.declared_macros()` into symbol index.
        - [x] store declared macros in `ItemScope` so we can figure out where macros were defined for the index.  
   - [x] do something about `SymbolIndex::for_files` - ideally it should use the new module symbol index stuff. 
       - [x] delete `source_file_to_file_symbols` & co...
           - [x] figure out what to do about `library_symbols` 
           - [x] maybe... speed up the new `library_symbols` - the new impl is probably much slower, and definitely much less parallel. **deciding to do nothing here, we can optimize later if necerssary.** 
   - [x] fix failing test: `navigation_target::tests::test_nav_for_symbol` - notably the crate def map doesn't seem to find declarations inside function. 
       - [x] now a bunch of other tests are failing around auto_import & qualify_path handlers. :(
           - [x] need to assoc items in traits and impls
 

Co-authored-by: Jake Heinz <jh@discordapp.com>
2021-11-30 14:07:39 +00:00
Jake Heinz f4bf750016 simpler way of grabbing module / trait name 2021-11-30 08:24:07 +00:00
Jake Heinz b0c7ff39b8 remove one need for semantics 2021-11-30 04:50:09 +00:00
Jake Heinz 54fc98920b consts with inners?? 2021-11-30 03:21:17 +00:00
Jake Heinz 492b169224 pr feedbacks 2021-11-30 03:09:38 +00:00
bors[bot] e217632b98
Merge #10887
10887: internal: Update bug report template to include version info r=Veykril a=jonas-schievink



Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2021-11-29 22:03:04 +00:00
Jonas Schievink 714d236b8e Update bug report template to include version info 2021-11-29 22:35:16 +01:00
bors[bot] a1648208b2
Merge #10871
10871: Respect `http.proxyStrictSSL` r=lnicola a=lnicola

Closes #10866

Currently untested.

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-11-29 18:02:41 +00:00
bors[bot] 393cbd0982
Merge #10841
10841: Emit moniker in lsif r=Veykril a=HKalbasi

fix #10559 

Co-authored-by: hkalbasi <hamidrezakalbasi@protonmail.com>
Co-authored-by: HKalbasi <45197576+HKalbasi@users.noreply.github.com>
2021-11-29 11:13:39 +00:00
Jake Heinz 0abf236445 test the one thing this pr was trying to accomplish lol... 2021-11-29 10:43:51 +00:00
Jake Heinz f0bfe310a2 add a test 2021-11-29 10:36:22 +00:00
Jake Heinz 97105e1288 some more cleanups 2021-11-29 09:52:03 +00:00
Jake Heinz 1280887561 do something with library_symbols 2021-11-29 09:36:00 +00:00
hkalbasi 1409781c45 fix tests 2021-11-29 11:25:53 +03:30
hkalbasi df261c10b9 remove duplicate data from CrateOrigin 2021-11-29 11:10:39 +03:30
Jake Heinz 176f4da77a simplify work 2021-11-29 07:17:18 +00:00
Jake Heinz 6e89fb6f73 🧹 2021-11-29 05:42:46 +00:00
Jake Heinz 6cf9969546 collect macro_rules! macros into macro declarations 2021-11-29 05:28:22 +00:00
Jake Heinz 1ed5699355 collect macros 2021-11-29 05:22:30 +00:00
Jake Heinz d69e0dab56 cleanup the whole thing... 2021-11-29 03:54:52 +00:00
Jake Heinz aecb9a378c traverse even more... 2021-11-29 02:07:16 +00:00
Jake Heinz 9387e2d919 populate container name when traversing down blocks 2021-11-29 01:32:47 +00:00
Jake Heinz 8fa1d9bb47 collect blocks from unnamed consts too 2021-11-29 01:11:31 +00:00
Jake Heinz 8850ea0b4f collect defs from body blocks 2021-11-29 01:09:39 +00:00
Laurențiu Nicola 7d815b862f Refactor proxy settings 2021-11-28 10:54:35 +02:00
Jake Heinz 8307d38dc1 cleanups 2021-11-28 00:42:42 +00:00
bors[bot] d9b2291f54
Merge #10876
10876: fix: Show parameter hints unconditionally for logical not expressions r=Veykril a=Veykril

Closes https://github.com/rust-analyzer/rust-analyzer/issues/8491
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-11-27 18:14:59 +00:00
Lukas Wirth 76022bfd60 fix: Show parameter hints unconditionally for logical not expressions 2021-11-27 19:14:36 +01:00
bors[bot] 2876df147e
Merge #10875
10875: minor: Don't discard flycheck error messages r=Veykril a=Veykril

cc #10793
bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-11-27 17:58:28 +00:00