summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/CompileSocket.scala
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports and other minor cleanupsSimon Ochsenreither2015-12-181-6/+6
| | | | | | | | | | - Language imports are preceding other imports - Deleted empty file: InlineErasure - Removed some unused private[parallel] methods in scala/collection/parallel/package.scala This removes hundreds of warnings when compiling with "-Xlint -Ywarn-dead-code -Ywarn-unused -Ywarn-unused-import".
* Add option -port to fscTeemu Lehtinen2014-10-131-9/+21
| | | | | | | | | | | | | Option "port" limits compile server lookup and start to given port. Normally fsc will start a compile server in a random port if no server is yet running. This can be problematic with firewalls and/or remote compile servers. Option "port" should not be confused with option "server" which looks for a compile server in given host and port and fails if such server is not found. Automatic tests for command line user interface do not exist at all. Thus, adding a test for one new option would require designing a whole new testing method.
* SI-1264 fsc compiler output should go to stderr, like scalacAntoine Gourlay2014-08-251-1/+2
| | | | | | | | | | | | | | | | | | | This properly sends the compiler output of `scala -e`, scala worksheets, ... to sdterr, just like scalac does. Before: $ scala -e 'foo' > /dev/null $ After: $ scala -e 'foo' > /dev/null /tmp/scalacmd8514641341855028538.scala:1: error: not found: value foo foo ^ one error found $
* Remove octal escape literals from the codebaseSimon Schaefer2013-09-251-1/+1
| | | | | Octal escape literals are deprecated and will be removed in the next Scala version.
* Make all numeric coercions explicit.Paul Phillips2013-05-271-4/+4
| | | | | | | | | | | | | Optimistically, this is preparation for a day when we don't let numeric types drift with the winds. Even without the optimism it's a good idea. It flushed out an undocumented change in the math package object relative to the methods being forwarded (a type is widened from what is returned in java) so I documented the intentionality of it. Managing type coercions manually is a bit tedious, no doubt, but it's not tedious enough to warrant abandoning type safety just because java did it.
* Name boolean arguments in src/compiler.Jason Zaugg2013-03-051-1/+1
| | | | | | | | | | What would you prefer? adaptToMemberWithArgs(tree, qual, name, mode, false, false) Or: adaptToMemberWithArgs(tree, qual, name, mode, reportAmbiguous = false, saveErrors = false)
* Merge remote-tracking branch 'origin/2.10.x' into pr/merge-210Paul Phillips2013-01-291-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd392d56d6bf8b0ae9072b354e4ec68becd0df679': SI-4602 Disable unreliable test of fsc path absolutization Update a checkfile from a recent fix. SI-7018 Fix memory leak in Attachments. SI-4733 - fsc no longer creates a single temp directory for all users. Bumped partest MaxPermSize to 128m. SI-6891 Fix value class + tailrec crasher. Ill-scoped reference checking in TreeCheckers Make value classes TreeCheckers friendly SI-4602 Make fsc absolutize source file names SI-6863 Fix verify error in captured var inited from expr with try/catch SI-6932 Remove Batchable trait plus minor clean-ups Fix SI-6932 by enabling linearization of callback execution for the internal execution context of Future SI-6443 Expand test coverage with varargs, by-name. SI-6443 Widen dependent param types in uncurry Conflicts: src/reflect/scala/reflect/internal/Trees.scala test/partest
| * SI-4733 - fsc no longer creates a single temp directory for all users.Cody Mello2013-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fsc previously created a single temporary directory called "scala-devel". This is an issue, since the directory belongs to whoever created the directory. Depending on the user's umask, this directory may only be writable for the creator. This causes problems for any other users who then try to use fsc or invoke fsc indirectly. Other programs usually solve this issue by creating a separate directory for each user, either by appending the username to a base directory name or creating a new direcotory with a random name with a program like "mktemp". This commit changes CompileSocket to use the first method. Fixes SI-4733 backport to 2.10.x
* | Removed unused imports.Paul Phillips2012-11-061-5/+1
|/ | | | | | | | | A dizzying number of unused imports, limited to files in src/compiler. I especially like that the unused import option (not quite ready for checkin itself) finds places where feature implicits have been imported which are no longer necessary, e.g. this commit includes half a dozen removals of "import scala.language.implicitConversions".
* Brings all copyrights (in comments) up-to-date, from 2011/12 to 2013Heather Miller2012-11-021-1/+1
|
* update and normalize copyright noticeAdriaan Moors2012-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are the regexp replacements performed: Sxcala -> Scala Copyright (\d*) LAMP/EPFL -> Copyright $1-2012 LAMP/EPFL Copyright (\d*)-(\d*)(,?) LAMP/EPFL -> Copyright $1-2012 LAMP/EPFL Copyright (\d*)-(\d*) Scala Solutions and LAMP/EPFL -> Copyright $1-2012 Scala Solutions and LAMP/EPFL \(C\) (\d*)-(\d*) LAMP/EPFL -> (C) $1-2012 LAMP/EPFL Copyright \(c\) (\d*)-(\d*)(.*?)EPFL -> Copyright (c) $1-2012$3EPFL The last one was needed for two HTML-ified copyright notices. Here's the summarized diff: Created using ``` git diff -w | grep ^- | sort | uniq | mate git diff -w | grep ^+ | sort | uniq | mate ``` ``` - <div id="footer">Scala programming documentation. Copyright (c) 2003-2011 <a href="http://www.epfl.ch" target="_top">EPFL</a>, with contributions from <a href="http://typesafe.com" target="_top">Typesafe</a>.</div> - copyright.string=Copyright 2002-2011, LAMP/EPFL - <meta name="Copyright" content="(C) 2002-2011 LAMP/EPFL"/> - * Copyright 2002-2011 LAMP/EPFL - * Copyright 2004-2011 LAMP/EPFL - * Copyright 2005 LAMP/EPFL - * Copyright 2005-2011 LAMP/EPFL - * Copyright 2006-2011 LAMP/EPFL - * Copyright 2007 LAMP/EPFL - * Copyright 2007-2011 LAMP/EPFL - * Copyright 2009-2011 Scala Solutions and LAMP/EPFL - * Copyright 2009-2011 Scxala Solutions and LAMP/EPFL - * Copyright 2010-2011 LAMP/EPFL - * Copyright 2012 LAMP/EPFL -# Copyright 2002-2011, LAMP/EPFL -* Copyright 2005-2011 LAMP/EPFL -/* NSC -- new Scala compiler -- Copyright 2007-2011 LAMP/EPFL */ -rem # Copyright 2002-2011, LAMP/EPFL ``` ``` + <div id="footer">Scala programming documentation. Copyright (c) 2003-2012 <a href="http://www.epfl.ch" target="_top">EPFL</a>, with contributions from <a href="http://typesafe.com" target="_top">Typesafe</a>.</div> + copyright.string=Copyright 2002-2012 LAMP/EPFL + <meta name="Copyright" content="(C) 2002-2012 LAMP/EPFL"/> + * Copyright 2002-2012 LAMP/EPFL + * Copyright 2004-2012 LAMP/EPFL + * Copyright 2005-2012 LAMP/EPFL + * Copyright 2006-2012 LAMP/EPFL + * Copyright 2007-2012 LAMP/EPFL + * Copyright 2009-2012 Scala Solutions and LAMP/EPFL + * Copyright 2010-2012 LAMP/EPFL + * Copyright 2011-2012 LAMP/EPFL +# Copyright 2002-2012 LAMP/EPFL +* Copyright 2005-2012 LAMP/EPFL +/* NSC -- new Scala compiler -- Copyright 2007-2012 LAMP/EPFL */ +rem # Copyright 2002-2012 LAMP/EPFL ```
* moves positions to scala.reflect.internal.utilEugene Burmako2012-06-081-1/+1
| | | | This is the first step of factoring out scala-reflect.jar.
* Enabling postfix ops feature warning, and working on libs to avoid them.Martin Odersky2012-04-121-2/+2
|
* Pulled daemonized from the process API based on...Paul Phillips2011-04-111-1/+6
| | | | | | Pulled daemonized from the process API based on input from harrah. No review.
* A paltry 570 cases failing in -Xcheckinit due t...Paul Phillips2011-03-281-1/+1
| | | | | | A paltry 570 cases failing in -Xcheckinit due to some uninitialized val or other. It is but a trifle! No review.
* Accumulated work on fsc.Paul Phillips2011-03-181-44/+28
| | | | | | | | | | | | | | | | | | | | adds the following new options. -ipv4 Use IPv4 rather than IPv6 for the server socket absolute-cp Make -classpath elements absolute paths before sending to server max-idle -Set idle timeout in minutes for fsc (use 0 for no timeout) My question marks are what are the right defaults for the first two. Former behavior is to absolutize the classpath always and never prefer IPv4 sockets. I changed the default to not absolutize the classpath, with the option if you need it; I left the system default in place for the socket creation, but I have a feeling we should default to IPv4. My only hesitation is that the only way to request an IPv4 socket from java involves mutating a global system property. (Robustness FTW.) So for now, you have to give -ipv4. Closes #3626, #3785, #3788, #3789. Review by community.
* Added daemonized() method to ProcessBuilder so ...Paul Phillips2011-02-221-2/+4
| | | | | | | Added daemonized() method to ProcessBuilder so I can do things like start fsc without the jvm failing to exit. More logging to fsc. scala -e '5' now works again. Closes #4254, review by harrah.
* Working on fsc.Paul Phillips2011-02-081-2/+2
| | | | | | | | | for me anyway, with this commit scripts will occasionally reuse a compiler instance, instead of never. Since any tests I write will fail on platforms which aren't mine, there are no tests. I might have to start a platform-specific testing area to break some ice around these huge untested zones. No review.
* Eliminating duplication and trying to outrun ob...Paul Phillips2011-02-011-4/+29
| | | | | | Eliminating duplication and trying to outrun obsolescence in the exciting world of fsc. No review.
* Closes #4204, an issue with fsc.Paul Phillips2011-01-301-2/+2
| | | | | | I mistakenly used a synchronous call when creating the server. No review.
* Deleted the former Process code in the compiler.Paul Phillips2011-01-211-7/+6
| | | | | things which used it to use sys.process. No review.
* Updated copyright notices to 2011Antonio Cunei2011-01-201-1/+1
|
* Mopping up after the deprecation of exit and er...Paul Phillips2010-12-051-3/+3
| | | | | | | | | | | | | | Mopping up after the deprecation of exit and error. It is decidedly non-trivial (at least for the IDE-impaired) to be completely sure of which error function was being called when there were about twenty with the same signature in trunk and they are being variously inherited, imported, shadowed, etc. So although I was careful, the possibility exists that something is now calling a different "error" function than before. Caveat programmer. (And let's all make it our policy not to name anything "error" or "exit" from here on out....) No review.
* Removed more than 3400 svn '$Id' keywords and r...Antonio Cunei2010-05-121-1/+0
| | | | | Removed more than 3400 svn '$Id' keywords and related junk.
* Some minor I/O changes. No review.Paul Phillips2010-03-261-1/+1
|
* Some much needed housecleaning regarding system...Paul Phillips2010-02-231-4/+3
| | | | | | | | | Some much needed housecleaning regarding system properties. If you can possibly resist the temptation, it'd be great if people could try to go through the properties classes to get and set them, and also to set property values somewhere fixed rather than using strings directly. Review by community.
* More work on classpaths.Paul Phillips2010-02-101-28/+28
| | | | | | | | to have command line options following source files, at the price of temporarily breaking tools/pathResolver. Working my way through all the usages of classpath in trunk zeroing in on fully consistent handling. Review by community.
* Some work on classpaths.Paul Phillips2010-02-081-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | at https://lampsvn.epfl.ch/trac/scala/wiki/Classpath modulo some minor details which remain to be investigated. It is not entirely integrated, and should not involve any behavioral changes. The patch also contains a number of small improvements targetting widely duplicated code. PathResolver offers a main method. If run with no arguments it will output a pile of information about classpath relevant environment vars and properties. If given arguments, it will output the classpath info that any scala runner script would use if given the same args. There is a wrapper in the tools directory. Example: tools/pathResolver -extdirs /foo -sourcepath /bar | egrep "sourcePath|scalaExtDirs" scalaExtDirs = /foo sourcePath = /bar There is also a (probably temporary) command line option -Ylog-classpath which will print out the settings.classpath value anytime it changes. Review by community.
* A few compiler IO lib bits I have been needing:...Paul Phillips2010-01-291-30/+16
| | | | | | | A few compiler IO lib bits I have been needing: some basic conveniences for directories and sockets, and some cleanups in CompileSocket. Review by community.
* Updated copyright notices to 2010Antonio Cunei2009-12-071-1/+1
|
* Resurrected the former contents of scala.io in ...Paul Phillips2009-09-111-74/+58
| | | | | | | | Resurrected the former contents of scala.io in their new home, scala.tools.nsc.io, and equipped them with fake beards and handlebar moustaches. Also restored the reverted bits of the compiler which had been taking advantage of them.
* Reverts scala.io.* to its natural state, and th...Paul Phillips2009-09-071-58/+74
| | | | | | | | Reverts scala.io.* to its natural state, and the rest of trunk to using java.io.File. Anyone who wants to salvage any usable bits is of course welcome to do so, so long as they also assume responsibility for those bits.
* Changed createDirectory and createFile to accept aPaul Phillips2009-09-011-2/+2
| | | | | | failIfExists argument (defaults to false) and eliminated the very short-lived ensureDirectory and ensureFile.
* One more try to unbreak fsc all the way.Paul Phillips2009-08-311-0/+1
|
* Unbreaking fsc with ensureDirectory().Paul Phillips2009-08-311-2/+2
|
* Unbroke the build, sorry about that.Paul Phillips2009-08-311-1/+1
|
* Large Path/File/Directory checkin.Paul Phillips2009-08-301-9/+7
| | | | | | | | of the functionality that one can straightforwardly obtain from the capabilities of java.io.File in java 5, but written with an eye on the significantly more capable (if not significantly more appealing) nio2 API in openjdk.
* Taking a little more advantage of some recent a...Paul Phillips2009-08-241-25/+23
| | | | | Taking a little more advantage of some recent abstractions.
* A bunch of cleanup on scriptrunner and fsc perf...Paul Phillips2009-08-181-53/+40
| | | | | | | A bunch of cleanup on scriptrunner and fsc performed in a quest to fix #1889. I understand why #1889 happens now but I believe fixing it is going to require adjusting the logic in SymbolLoaders.
* Fix for #1498.Paul Phillips2009-08-051-35/+7
|
* removed deprecated warning, updated svn props, ...michelou2009-03-101-5/+5
| | | | | removed deprecated warning, updated svn props, cleaned up code
* Fix for #1743.Paul Phillips2009-02-271-16/+10
|
* Fix for #934Antonio Cunei2009-02-091-1/+1
|
* Updated (all) copyright notices to 2009Antonio Cunei2009-01-131-1/+1
|
* fix for occasional fsc silent quittingAntonio Cunei2008-11-261-1/+12
|
* Removed unnecessary "getHostName()", see ticket...Antonio Cunei2008-10-151-2/+2
| | | | | Removed unnecessary "getHostName()", see ticket #1366
* Use a java.security.SecureRandom for better Geoffrey Washburn2008-03-041-1/+1
| | | | | | | random port selection. Should think a little more about whether fsc can be exploited by other users local to a computer.
* fixed #59michelou2007-09-111-1/+1
|
* when looking for a temporary directory, try to ...Lex Spoon2007-07-221-2/+5
| | | | | | when looking for a temporary directory, try to create the necessary parent directories
* Refactored ScriptRunner and the offline compila...Lex Spoon2007-06-141-12/+19
| | | | | | Refactored ScriptRunner and the offline compilation classes so that they can be subclassed effectively.