You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please provide an example that shows an absolute swift beginner like myself how to do the most basic task?
My first attempt was literally copying the example from the README into a test.swift file, and handing that to swift: swift test.swift.
That of cause fails and complains:
/home/test.swift:1:12: error: cannot find 'Data' in scope
let data = Data(contentsOfFile: "ma_rules.rwz")!
^~~~
/home/test.swift:2:16: error: cannot find 'OutlookRulesFile' in scope
let file = try OutlookRulesFile(data: data)
^~~~~~~~~~~~~~~~
If you're wondering what I'm trying to accomplish:
I'd like to generally dump my way-too-big ruleset in a text format that is easy to read, so I can take a stab at reorganizing and making a more-understandable ruleset with less bugs.
Thanks and best regards,
Andre
The text was updated successfully, but these errors were encountered:
Thanks - but it only helps partially. I probably don't know how to tell swift where to find OutlookRulesReader, since it now complains
/home/OutlookRulesReader/test.swift:2:8: error: no such module 'OutlookRulesReader'
import OutlookRulesReader
^
I guess my assumption of just putting my test.swift file into the repo's main path is wrong, and trying to put it on the same level as the repo (so that test.swift and OutlookRulesReader/ are in the same directory) is also not fruitful.
Just to give you a hint: today is the first time I ever tried to use swift, I only grabbed your repo and the official swift docker container, and started copying from the README. So while I'm fairly confident I'll somehow manage the "outputting the interesting bits" (since that's just some for loops and print statements) I'm entirely lost at getting a more-than-hello-world running. Please excuse my stupidity.
Hi there!
Could you please provide an example that shows an absolute swift beginner like myself how to do the most basic task?
My first attempt was literally copying the example from the README into a
test.swift
file, and handing that to swift:swift test.swift
.That of cause fails and complains:
If you're wondering what I'm trying to accomplish:
I'd like to generally dump my way-too-big ruleset in a text format that is easy to read, so I can take a stab at reorganizing and making a more-understandable ruleset with less bugs.
Thanks and best regards,
Andre
The text was updated successfully, but these errors were encountered: