Commit Graph

59 Commits

Author SHA1 Message Date
Dave Halter
aa37f6f738 Fixes for _follow_error_node_imports_if_possible 2019-03-28 10:12:23 +01:00
Dave Halter
2ad652a071 Fix a few more goto_definition error_node imports 2019-03-28 09:34:57 +01:00
Dave Halter
1c105b5c68 Follow error node imports properly in goto assignments as well 2019-03-27 00:53:35 +01:00
Dave Halter
f4c17e578c Make it possible to use goto_definition on "broken" imports 2019-03-27 00:39:51 +01:00
Dave Halter
514eaf89c3 Prepare a test to eventually solve a relative import problem 2018-02-12 20:33:48 +01:00
Daniel Hahler
6bab112bb7 test/completion/imports.py: fix typo in comment 2018-01-25 07:57:43 +01:00
Dave Halter
e389c61377 Relative imports with more than one level did not work
Fixes #784.
2017-09-14 22:06:08 +02:00
Dave Halter
e18c8200dd Fixed an issue with error nodes and completion in more complex settings. 2016-07-11 17:32:00 +02:00
Dave Halter
c82691a12b Make goto_definitions a lot simpler. 2016-06-11 23:13:04 +02:00
Dave Halter
0203461980 Disable the star import cache. 2015-04-26 00:02:47 +02:00
Dave Halter
9b9049e574 Some small import changes that fix a few of the broken test cases. 2015-04-21 17:31:43 +02:00
Dave Halter
18c4b5f7dc Add py__package__ to the ModuleWrapper, which makes relative imports easy to implement and fixed a lot of other things. 2015-04-21 16:12:24 +02:00
Dave Halter
bc765979ca Import priorities are wrong (__dict__ > files). Test for #536. 2015-04-13 15:04:49 +02:00
Dave Halter
e72eaf7a59 on import completion preparations. 2014-11-25 15:10:36 +01:00
Dave Halter
08bdcfb8ca Small issue with relative imports that don't contain a path after from. 2014-11-19 15:22:18 +01:00
Dave Halter
aeaf073ca2 Move some tests that targeted completion on import statements into a separate file. 2014-11-19 14:14:27 +01:00
Dave Halter
6c5f3419ff 'as' test and implementation for ImportName. Working pretty well. 2014-11-19 13:07:08 +01:00
Dave Halter
e630eeb397 Care for import aliases better. 2014-11-19 12:45:39 +01:00
Dave Halter
3c6d5dafb1 Split Import, now there is ImportFrom and ImportName as it exists in the python grammar. 2014-11-19 00:40:16 +01:00
Dave Halter
535a69e499 Small improvments to from imports 2014-11-18 18:43:16 +01:00
Dave Halter
23008d8a19 use scope_names_generator in completion api as well. hopefully the last __file__ related issue :) 2014-07-02 13:12:37 +02:00
Dave Halter
a252d825f2 remove an unimportant test case that showed strange unreproducible behavior on travis. 2014-05-20 16:47:23 +02:00
Dave Halter
a717981679 more extensive __file__ tests, #408 2014-05-19 01:03:40 +02:00
Dave Halter
08b48807e9 a (temporary) solution for the __file__ access issues in imported modules, see #408 2014-05-19 01:01:56 +02:00
Dave Halter
50c4b7bfd9 memoize problems with defaults in combination with raised exceptions 2014-04-20 14:14:30 +02:00
David Halter
a8e259763e fix problem with variables in from clauses, #268 2013-08-17 22:04:55 +04:30
David Halter
0fef34c26e finding out that fake imports arent't allowed in python and os.path is a sys.modules modification, fix tests #213 2013-08-11 17:30:50 +04:30
David Halter
9d1e527b7c merge issue-213-from-import-definition of @tkf into dev 2013-08-11 01:20:45 +04:30
David Halter
7ab00242a8 finally change name of test.base module to helpers.py, fixes #181 2013-08-07 18:35:47 +04:30
David Halter
c6e08221ce fixed more import problems (also with the import usage), definitely fixes davidhalter/jedi-vim#152 2013-08-07 10:24:28 +04:30
David Halter
f72816a702 fix builtin module imports, fixes davidhalter/jedi-vim#152 2013-08-06 18:44:34 +04:30
David Halter
cdba4ef3e1 fixed multi level import issue, includes parts of a patch by Lubos Trilety <ltrilety@redhat.com> 2013-07-28 23:15:45 +02:00
David Halter
6cb021f4ae add memoize decorator to an Instance method, fixes RecursionError of #239 2013-07-10 10:23:05 +02:00
Takafumi Arakaki
46ac76e8be Reproduce the previous test failure w/o stdlib
It turned out that the failure occurs when you define "fake module path"
by importing some module from others.  Indeed, this is what happens
in os.py.
2013-05-21 17:40:20 +02:00
Takafumi Arakaki
1a5942364a Add failing tests for first part of #213 2013-05-21 17:16:40 +02:00
David Halter
3a7c8af87f also normal imports should return the right user_stmt, similar case than #137 2013-05-09 12:16:54 +04:30
David Halter
f3a4439285 import end_pos calculated differently, fixes #137 2013-05-09 11:54:08 +04:30
Takafumi Arakaki
1fffbf13ca Fix test failures because imports.py uses base.py 2013-03-12 10:18:18 +01:00
David Halter
f3f7eacae3 fix a little problem with import keyword autocompletion 2013-01-14 22:35:32 +01:00
David Halter
ce51021c1e move more testing functionality out of run.py 2013-01-05 22:42:16 +01:00
David Halter
41362370ed follow imports if they are in the file path, fixes davidhalter/jedi-vim#56 2012-12-30 10:29:35 +01:00
David Halter
fc9e78c31e new relative import tests 2012-12-27 15:40:46 +01:00
David Halter
658e5833ce Import missed a get_set_vars function, which caused an error with user_stmt checking -> fixes issue 16 of jedi-vim 2012-10-18 22:00:13 +02:00
David Halter
8059b075c6 handled import statement recursions 2012-10-10 22:55:07 +02:00
David Halter
4735126f1b goto / related_name fixed -> tests are passing again 2012-09-22 15:15:21 +02:00
David Halter
ea53d07238 tests weren't clean again 2012-09-20 00:37:59 +02:00
David Halter
6f0cbf18db again all sort of import related stuff, relative imports work now! fixes #2 2012-09-13 15:03:10 +02:00
David Halter
119455c3b3 cleaned up and fixed most cases of import related stuff, fixes #2 2012-09-12 21:36:16 +02:00
David Halter
911495da30 relative imports should work now 2012-09-02 16:27:41 +02:00
David Halter
a9fbb2edce temporary import work 2012-08-03 12:18:48 +02:00