Commit Graph

5658 Commits

Author SHA1 Message Date
Andrey Breslav ebb0d25b17 Fix compilation 2012-05-30 20:59:25 +04:00
Andrey Breslav ce96502f72 Make APIs available to lazy resolve 2012-05-30 20:57:03 +04:00
Andrey Breslav d95f315e24 getName() always returns null for REFERENCE_EXPRESSIONs 2012-05-30 20:53:04 +04:00
Andrey Breslav 40894196bf Proper rendering for modules 2012-05-30 20:52:00 +04:00
Stepan Koltsov 8611ce5773 KT-2047 Assertion from override resolver
#KT-2047 Fixed
2012-05-30 20:26:08 +04:00
James Strachan 3ebcb399c7 fixed up sample 2012-05-30 16:55:44 +01:00
Stepan Koltsov 1f5666e0e8 more tests in ScriptGenTest 2012-05-30 19:47:42 +04:00
James Strachan 872f08303e allow the JS maven plugin to copy the kotlin JS library file - or append it 2012-05-30 16:43:33 +01:00
James Strachan e41f59779e avoid mandatory properties for optional things on the plugin 2012-05-30 16:43:04 +01:00
James Strachan c639d598f6 fixed the build - whoops :) 2012-05-30 16:42:35 +01:00
James Strachan 4cff5f9759 modified the JS compiler so that it can have definitions and library sources specified or discovered on the classpath; so for example we can then discover the kotlin standard library kotlin that needs to be compiled; plus the JS library definitions (which map to the kotlin-lib.js file) 2012-05-30 15:51:08 +01:00
Stepan Koltsov ae12b4e5fc fix compilation 2012-05-30 18:49:36 +04:00
Stepan Koltsov e157853468 test for scala-library jar resolve
scala-library descriptors does not fit in memory, so resolve it in chunks

BTW scala-library it is resolved fine
2012-05-30 18:47:00 +04:00
Evgeny Gerashchenko b3e211a3ba KT-2139 java.sql.Array inserted by completion is inserted by short name, and import is not added
#KT-2139 fixed
2012-05-30 18:05:49 +04:00
Nikolay Krasko b767e1a8a6 Failure after typing empty import 2012-05-30 17:09:46 +04:00
Nikolay Krasko 251cc560aa Merge pull request #60 from maxmanuylov/KT-2041
Converter for KT-2041: JetRunConfiguration should store its settings in ...
2012-05-30 04:05:15 -07:00
Andrey Breslav 69e74cb147 Confluence docs. Initial version 2012-05-30 14:41:40 +04:00
James Strachan d7573b49a6 allow the JS compiler to take a list of files, verbose flag and a flag to indicate if a main call is required; plus added a test case to ensure we can compile some of the kotlin standard library using the K2JSCompiler directly 2012-05-30 11:31:35 +01:00
James Strachan 782773fca9 fixed compile errors 2012-05-30 11:30:36 +01:00
Nikolay Krasko 75277b0721 Add until-build attribute to generated plugin.xml 2012-05-30 14:20:04 +04:00
Evgeny Gerashchenko e7ed224845 KT-2110 Some flaws in Colors & Fonts dialog
#KT-2110 fixed
2012-05-30 13:56:19 +04:00
James Strachan e6f2f7043b added more descriptive assertions if we get nulls when compiling 2012-05-30 10:27:10 +01:00
Maxim Manuylov 5bb489befb Converter for KT-2041: JetRunConfiguration should store its settings in the same format as Java's ApplicationConfiguration to be able to reuse code in JPS 2012-05-30 00:12:02 +02:00
James Strachan 4ef8a3ce50 only log files compiled if verbose is enabled 2012-05-29 17:42:42 +01:00
James Strachan 4921aeafc3 refactored the maven plugin to use the vanilla K2JSCompiler directly and avoid using the K2JVMCompiler when generating JS code; also included a default LibrarySourceConfig which detects JS library code on the classpath which works nicer in maven/ant style worlds where dependencies tend to be specified rather than file paths to zip files 2012-05-29 17:28:15 +01:00
Nikolay Krasko 8daeb735e4 KT-1719 Navigate -> Symbol... completions are not super helpful for extension functions
#KT-1719 fixed
2012-05-29 18:11:36 +04:00
James Strachan 1a77c36040 got the kotlin/Dom.kt, Preconditions.kt and AbstractIterator.kt compiling as JS; needs more testing of using these APIs from JS though... 2012-05-29 15:02:17 +01:00
pTalanov 64703106ea Add tests which check that web demo canvas examples compile correctly 2012-05-29 17:29:39 +04:00
James Strachan 4899c55673 added better diagnostic messages 2012-05-29 13:31:10 +01:00
James Strachan 35aa899cb1 making progress on porting kotlin/dom to JS; added AbstractList and RuntimeException/UnsupportedOperationException support to the kotlin-lib.js and fixed up a gremlin (Iterator is a trait not a class) 2012-05-29 12:33:34 +01:00
Nikolay Krasko d759d50811 Change representation of extension functions 2012-05-29 15:03:36 +04:00
pTalanov 097d03ebe2 Initial dirty and incomplete version of JS DOM API 2012-05-29 14:42:44 +04:00
pTalanov d822f0f410 Better notification message 2012-05-29 14:41:28 +04:00
James Strachan bed2ec95d1 added a test case to compile some of the standard kotlin library as JS 2012-05-29 10:29:18 +01:00
James Strachan 13dfda92d1 added the ability to run the sample either in a web browser or in Java 7 with JavaFX and the KoolApp browser 2012-05-29 08:50:12 +01:00
James Strachan 2898abb245 simplified the kotlin-js-library source generation so we can selectively include some of the kotlin standard library for use in JS compilation 2012-05-29 08:49:36 +01:00
James Strachan 629f0e6f6b moved JVM specific code into DomJVM.kt 2012-05-29 08:48:13 +01:00
James Strachan cb980e6f64 added RuntimeException, NoSuchElementException and missing Iterator.remove() function 2012-05-29 08:47:45 +01:00
Andrey Breslav 3d8fbb4761 idea.properties ignored 2012-05-29 11:42:20 +04:00
Andrey Breslav 0b33877144 Simplified SHEBANG comment detection
* %line & %column removed (zzCurrentPos used instead)
* jflex cmd arguments reverted
2012-05-29 11:41:54 +04:00
Andrey Breslav 85cffd9e90 Unused methods removed 2012-05-29 11:11:08 +04:00
Stepan Koltsov 25f71bcd3a skip shebang in the first line
Something like this works now:

===
% PATH="./bin:$PATH" ./sum.ktscript 31 21
31 + 21 = 52

% cat sum.ktscript
#!/usr/bin/env kotlin -script

val a = Integer.parseInt(args[0])
val b = Integer.parseInt(args[1])
println("$a + $b = ${a + b}")
===
2012-05-28 22:59:03 +04:00
James Strachan 7f53b2f111 workaround for windows test failure 2012-05-28 19:50:22 +01:00
James Strachan 4d7ab80c3e workaround for windows test failure 2012-05-28 19:08:31 +01:00
James Strachan 6486023feb workaround for windows test failure 2012-05-28 18:48:53 +01:00
Nikolay Krasko 252ba5672e KT-2122 Code completion after val with space should not add local variable's name (set priority in completion for local variables and parameters)
#KT-2122 fixed
2012-05-28 21:19:45 +04:00
Stepan Koltsov 30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Stepan Koltsov 6244404344 JetTypeName utility 2012-05-28 20:31:29 +04:00
James Strachan f353f84db8 Merge branch 'master' of github.com:JetBrains/kotlin 2012-05-28 17:30:25 +01:00
Stepan Koltsov 9402262e7c CodegenTestFile 2012-05-28 20:19:23 +04:00