Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
pakcs
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • curry
  • pakcs
  • Issues
  • #9

Closed
Open
Opened Jun 02, 2017 by Sandra Dylus@sad

file path with whitespaces

I have a file Test.curry in a directory containing a whitespace (here: Test 123); the file looks as follows.

test = 1 + 2

I can load the file into the pakcs-REPL, but when I what to evaluate test, I get an error.

sad@siran:~/Test 123$ pwd
/net/medoc/home/sad/Test 123
sad@siran:~/Test 123$ /opt/pakcs/pakcs-2.0.0/bin/pakcs :l Test.curry 
[1 of 2] Skipping  Prelude          ( /net/medoc/home/pakcs/amd64/pakcs-2.0.0/lib/Prelude.curry, /net/medoc/home/pakcs/amd64/pakcs-2.0.0/lib/.curry/Prelude.fcy )
[2 of 2] Skipping  Test             ( Test.curry, .curry/Test.fcy )
  ______      __       _    _    ______   _______     
 |  __  |    /  \     | |  / /  |  ____| |  _____|   Portland Aachen Kiel
 | |  | |   / /\ \    | |_/ /   | |      | |_____    Curry System
 | |__| |  / /__\ \   |  _  |   | |      |_____  |   
 |  ____| / ______ \  | | \ \   | |____   _____| |   Version 2.0.0 (4)
 |_|     /_/      \_\ |_|  \_\  |______| |_______|   
 ***WITH TYPECLASSES***

Curry2Prolog(sicstus 4.3) Compiler Environment (Version of 2016-12-16)
(RWTH Aachen, CAU Kiel, Portland State University)

Type ":h" for help (contact: pakcs@curry-language.org)
Test> test

Error:
    Missing file "123"
ERROR occurred during parsing!
Test> 

Since the error message was quite generic, it took me some time to realise what the actual problem is. The code I tried to run with pakcs was initially developed with kics2, where everything works just fine.

Did I miss a memo, where such file or directory names are explicitly prohibited or am I just the only one using whitespaces in file names?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: curry/pakcs#9