I recently updated to windows 7 and since then I have been having this problem. Any help appreciated.

Dani AI

Generated

This looks like an OS-level “can't open the source file for reading” situation after the Windows 7 upgrade rather than a language bug. showed the runtime/TopLevel failure, and was right to push for specifics — the answers below focus on reproducible, low-effort checks that separate path/permission problems from an SML installation issue.

A few quick, practical checks and fixes:

  • Try loading the file with an absolute path (either forward slashes or escaped backslashes in an SML string). For example:

    use "C:/Users/YourName/Documents/cyclen.sml";

    or

    use "C:\\Users\\YourName\\Documents\\cyclen.sml";
  • Run the SML process from the folder that actually contains the file (open a Command Prompt, cd to the folder, then start sml). When started by double‑click, the working directory is often the SML install folder, not the project folder.

Other common culprits and how to check them:

  • Hidden extension: Windows can hide “.txt” so files like cyclen.sml.txt look like cyclen.sml. Turn on “Show file name extensions” in Folder Options to verify.
  • Permissions / UAC / antivirus: right‑click -> Properties -> Security to confirm the current user has read access; also try temporarily disabling real‑time AV or running sml elevated as a diagnostic.
  • Path syntax: spaces or non‑ASCII characters in the path sometimes cause trouble for older tools; moving the file to a short ASCII path (e.g., C:\temp) is a quick test.

A minimal diagnostic: create a tiny test file in the same folder with a trivial top‑level binding and attempt to use it. If the test loads while the original file does not, the problem is the file path or name; if neither loads, consider reinstalling or checking the SML build used on Win7.

Recommended Answers

All 2 Replies

the error message i get is:
[use failed:IO openIn failed on "cyclen.sml", Win32TextPrimIO:openRd: failed]

uncaught exception error
raised at: ../compiler/TopLevel/interact/interact.sml:24-14-24.28

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.