Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources from gists example from website is not working in Windows #2833

Open
andrelfpinto opened this issue Apr 2, 2024 · 0 comments
Open
Labels
bug Something isn't working windows Windows-specific issues

Comments

@andrelfpinto
Copy link

Version(s)

> scala-cli --version
Scala CLI version: 1.2.1
Scala version (default): 3.4.1

Describe the bug
Cannot run Resources from gists example in Windows.

> scala-cli https://gist.github.com/lwronski/7ee12fa4b8b8bac3211841273df82080 --server=false -O -explain
-- [E103] Syntax Error: C:\Users\user\AppData\Local\Temp\1353784265756903379\.scala-build\1353784265756903379_a9b3fe14a0-816713491b\src_generated\main\input:1:0
1 |1
  |^
  |Illegal start of toplevel definition
  |-----------------------------------------------------------------------------
  | Explanation (enabled by `-explain`)
  |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  | A statement is an import or export, a definition or an expression.
  | Some statements are only allowed in certain contexts
   -----------------------------------------------------------------------------
1 error found
Compilation failed
> java -version
openjdk version "17.0.7" 2023-04-18
OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)
OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)
> gcm java

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     java.exe                                           17.0.7.0   C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin\java.exe

> echo $Env:JAVA_HOME
C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\
> systeminfo | findstr /B /C:"OS Name"

OS Name:                                   Microsoft Windows 11 Home Single Language

To Reproduce
Run example from website.

> scala-cli https://gist.github.com/lwronski/7ee12fa4b8b8bac3211841273df82080 --server=false -O -explain

Expected behaviour
It should print 1,2,3,4 to the standard output.

@andrelfpinto andrelfpinto added the bug Something isn't working label Apr 2, 2024
@Gedochao Gedochao added the windows Windows-specific issues label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Windows-specific issues
Projects
None yet
Development

No branches or pull requests

2 participants