Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24319 - [scala] won't compile files with upper case letters

Attached to Project: Community Packages
Opened by James Pike (jpike) - Tuesday, 17 May 2011, 11:56 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 31 August 2011, 13:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

fsc provided with scala 2.9.0 won't compile source files with capital letters in them.

Package version
* scala-2.9.0

Steps to reproduce:

% touch nocaps.scala Caps.scala
% fsc nocaps.scala
% fsc Caps.scala
error: source file 'Caps.scala' could not be found
one error found

This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 31 August 2011, 13:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  in 2.9.1
Comment by Thomas Dziedzic (tomd123) - Tuesday, 17 May 2011, 14:33 GMT
thanks for reporting this, but, I think asking upstream about this might be wiser.
this bug doesn't really seem like a packaging bug at first glance
Comment by James Pike (jpike) - Tuesday, 17 May 2011, 14:37 GMT
It's just suck a stupendously primitive and glaring bug I just didn't want to believe it is an upstream bug.
Comment by James Pike (jpike) - Tuesday, 17 May 2011, 14:39 GMT
Actually if you wouldn't mind could you confirm this fails for you too.. then I can report it upstream with more confidence.
Comment by Thomas Dziedzic (tomd123) - Tuesday, 17 May 2011, 14:41 GMT
I can't reproduce this bug at all... are you sure you're doing everything correctly? fsc Caps.scala didn't return an error
Comment by James Pike (jpike) - Tuesday, 17 May 2011, 14:53 GMT
Yes I'm doing everything correctly..

funnily enough I was working on my project with scala 2.8, then noticed 2.9 had hit Arch. So I upgraded and immediately it said it couldn't find my files.

So then I managed to cut it down to the case of capital letters.

Sometimes I suspect a phantom haunts my computer, I can count on a slaughterhouse worth of toes how many times I've got crazy obvious bugs that only affect me.
Comment by James Pike (jpike) - Tuesday, 17 May 2011, 14:58 GMT
True bug:

1. fsc File.scala
2. cd ..
3. fsc File.scala (still works)
4. mv $OLDPWD/File.scala .
5. fsc File.scala (missing file)

Seems fsc inherits the PWD the first time it is run then never updates it. So in the case of capitals.. the file without caps existed in my $OLDPWD.
Comment by Jelle van der Waa (jelly) - Tuesday, 17 May 2011, 16:15 GMT
hrrm I didn't change anything to the pkgbuild, i suspect it's an upstream bug. Check the upstream tracker

[jelle@P8][~]% fsc -verbose -d /tmp hello.scala
Fast Scala compiler version 2.9.0.r0-b20110516165642 -- Copyright 2002-2011, LAMP/EPFL
[Given arguments: -verbose -d /tmp hello.scala]
[Transformed arguments: -verbose -d /tmp hello.scala -current-dir /home/jelle]
[VM arguments: ]
[Temp directory: /tmp/scala-devel/jelle]
[Port number: 60457]
[Connected to compilation daemon at port 60457]
error: source file 'hello.scala' could not be found
one error found

btw here is the bugtracker, i couldn't find anyhting relevant https://lampsvn.epfl.ch/trac/scala/query
Comment by Jakob Matthes (jakobm) - Sunday, 21 August 2011, 00:37 GMT
Upstream https://issues.scala-lang.org/browse/SI-4602

> When running fsc, if there is no scala compiler daemon running
> it is run with the current working directory of fsc, but keeps
> this PWD for all subsequent runs until the daemon exits, even
> when subsequent fsc invocations are from different directories.

Loading...