How to open a saved .asm file in MARS on MacOS - macos

I am new to using MIPS and I can't find how to open a file that I saved. I saved a .asm file under my downloads folder but when I try to open a file in MARS and navigate to the same downloads folder, the .asm file does not appear.
I'm using MARS on MacOS.

As stated above, you need to allow Full Disk Access in your System Preferences in macOS. Here they mention that you need to search for 'JavaLauncher.app'. This is an issue due to macOS changes with security management.
To give Full Disk Access to JAR files on macOS:
Go to System Preferences.
Click on Security and Privacy.
Search for 'Full Disk Access'.
Click on the lock at the bottom left to be able to make changes.
Click on the '+' icon at the bottom left of the FDA panel and a Finder prompt will appear.
Go to System/Library/CoreServices/JavaLauncher.app
Select the JavaLauncher.app and click 'Open'
That's it. You should be able to access files through your Java application. This helped to fix my issue with MARS MIPS not saving files properly on my laptop. I constantly needed to save it elsewhere.

I figured out that I had to allow access to finder directories for jar files. Mac didn't allow mars to initially access any of my directories.

Related

How can I make downloaded files appear in "Recent" in Finder?

I'd like files downloaded via browser to also appear in "Recent" in Finder, as well as the normal content there. I really miss this functionality from Ubuntu and am aware of how much time and clicks it costs to not have it. How can that be achieved?
Recent folder is not connected with download folder. But you can drag download folder to the dock, then right click on folder and choose your settings you want.

The document “SceneKit Scene.scn” could not be saved

I'm trying to create a SceneKit scene. I can create it, and edit it, but the moment I try to save it I get the error "The document “SceneKit Scene.scn” could not be saved.".
Affects every .scn I try to create, regardless of project (including brand new projects with no changes other than adding this .scn), and does so regardless of what changes (if any) I've made to the Scene (even no changes at all gives this message)
When I locate the file in Finder, neither the file nor the folder it's in are locked
Project is on main disk
Automatic saves also fail with the same error message
.scn file can be opened separately to the project, but again, it cannot be saved
Neither the default file name nor custom file names help, regardless of whether I change the name in the sidebar after the file is created or at creation time in the New File dialog box
Deleting the reference and re-adding the file doesn't help
Making a copy of the file, deleing the original (in Xcode), and re-adding the copy doesn't help
Cleaning the build folder doesn't help
Restarting Xcode doesn't help
Rebooting the mac doesn't help
Issue only affects .scn files as far as I can see (definitely doesn't affect .swift, .storyboard or .metal files)
Affects Xcode 10.0, macOS 10.14 (18A391) (Also affected previous version of macOS, but I can no longer remember which version that was)
Affects Xcode 10.1, macOS 10.14.1 (18B75)
Affects Xcode 10.2, macOS 10.14.4 (18E226) even worse, as it insists on saving before closing the project, but can't save, so I can only close the project or Xcode by force-quitting.
Affects Xcode 10.2.1, macOS 10.14.4 (without the bug from 10.2)
Affects Xcode 11.3.1, macOS 10.14.6
All my files are in my home directory hierarchy
Moving project folder to a different subfolder of my home directory (from ~/Documents/ to ~/Desktop/ or to ~/Downloads) has no effect
All files have the same user/group, both those I can write to and the .scn I can't write to
My user account is in the same group as the files (ls -l shows staff, as does Preferences.app > Users & Groups > [right click on my account] > Advanced Options… > Group:)
Exporting the .scn file (File > Export... ) and adding it to the project again doesn't help
It's only Xcode which has a problem saving this file: if I open it in TextWrangler, I can modify and save it without error. Saving it in TextWrangler did not make it saveable in Xcode.
Resetting user permissions (diskutil resetUserPermissions / `id -u` as suggested by #JeremyP)
didn't help.
The project is set to use git, and it doesn't help to commit, pull, or push
Why is Xcode failing to save .scn, all the .scn, and nothing but the .scn?
I had the same issue. Changing permissions did not work. Changing the group did not work. Exporting the scene did not work. In the end I tried the solution suggested here:
https://support.apple.com/en-us/HT203538
Actually, I skipped all the way to step 7 and I haven't done steps 8 and 9 yet, but this fixed the issue for me:
diskutil resetUserPermissions / `id -u`
Just run the above in a terminal session. Note that I am logged in as an admin user. That might make a difference.
Had the same issue with .scn files and Xcode 10. I solved it exporting the .scn file (File > Export... ) and adding it to the project again. Not a great solution but it works.
I had same problem but I manage to solve it. Now I can save .scn file no matter where project located. Before I solve problem I have to move my project under User's home directory in order to make it work.
kosua20 point out that "It seems that when creating or importing a .scn file it propagated the user/group and that caused the save to fail"
I create a project name Test under my another partition. When I open it and try to save it I got this message. You can see Test project is under BOOTCAMP while Macintosh HD has my OS and user home
Open your Terminal and cd to parent folder which has your project and type "ls -l" then Enter to see your folder permission. In my case my Test project folder have group permission of admin, but the account I am using is in group of staff(I will show you later how you can check it). Now I need to change permission to staff instead of admin in order to make .scn file to save successful.
Go to System Preferences -> Users&Groups Unlock it first then right click on user account you are using, it will pop up a menu "Advanced Options..." and click it
In pop up window locate Group and next to it has a name in input field and the name is primary group your account is current in. In my case my account is in staff. So far I can just change staff to admin then .scn file can be save successful but I don't want to.
Back to Terminal while you are in parent directory where it has your project then type "sudo chgrp -hR [group] [Project folder name]" then Enter. In my case I have to type "sudo chgrp -hR staff Test" (How command work see here: chgrp). In your case it depend on which group your account is current in and project folder name.
After that command if successful type "ls -l" then Enter again to check permission of group. If it is group name you are after then you can open your project and modify .scn file and save again to see if it work. In my case .scn is now can be save without any problem.
Check your project's group permission and then check if account is in that group, if not then you can either change your account's primary group which I don't recommend or you can use chgrp command to make change to project folder in Terminal. After all this you still have problem then I have no idea.
Hope this help.
Its a bug, all you have to do is rename the file in Xcode in the scene editor (on the left hand side where all the files are), mine is "ship.scn" - just rename it to whatever, hit enter. Then you can save. Hit save as. Rename back to original name and save.
Had the same issue with scn files not being able to be saved. In my case the project was saved in another disk and moving it to the main disk resolved it.
I've had the same issue with Xcode 10.1. The project was not stored in my home directory hierarchy, and it was assigned to the admin group instead of staff. It seems that when creating or importing a .scn file it propagated the user/group and that caused the save to fail. What solved it was to make sure that the .scn file and the whole Xcode project were owned by my user and in the staff group.
had the same issue in Xcode 10.2.1. I solved it by changed the location of project or you can create a project in different location.(In my case I synced with iCloud my desktop and documents that may be a problem) now I have created project in different location.
I had a similar issue with playgrounds failing to save, and repeated messages that the file could not be unlocked. I finally solved it by enabling full disk access for Xcode under security and privacy settings.
I had the same issue, I fixed my problem by a simple workaround.
You can select your objects in dae file in Xcode editor and hit command + c and create a new .scn file in Xcode and paste them using command + v there!

Missing phpStorm project folder icons on OSX 10.10 in phpStorm explorer

I am working with the deployment feature to easily upload files to a server. So opening a specific project folder for which I have already set up deployment gives me the opportunity to work with the project files instantly and also upload them without any problems.
The problem is with opening the right folder. When setting up deployment for a project you choose a folder as the 'root' folder for this one project and when one wants to load this settings he has to choose the right folder when opening a project. Sometimes there are some differences which folder is chosen as root (most of the time the folder is 'domain', but sometimes it's another folder).
When I now want open a project folder to work with the files and have the deployment ready, I can not recognize in the popped up window which folder is the right one. Friends of mine (win8/Linux) tell me that they have a phpStorm icon instead of the standard folder icon.
On the other hand I told OSX to show me the hidden files on my system which results in following:
As you can see Finder shows me the .idea file, so at least I know the folder I am at right now is the project folder. But I in the future I don't want to check first in Finder, which folder the right one is and then open phpStorm to open it there.
I hope anybody understands my problem :). Thanks for any tips, really annoying topic.
Update:
Maybe the problem comes with the fact that phpStorm on OSX uses Finder as the explorer when trying to open a project folder. The explorer on Windows looks similar
I posted on the jetbrains helpforum, the 'answer' was:
Relates to: https://youtrack.jetbrains.com/issue/IDEA-100279
Duplicates: https://youtrack.jetbrains.com/issue/IDEA-131303
Nothing anybody could have find out themselves, there does not seem to be a better answer than "give the folders related to PHPStorm the right icon, manually".

Xcode 4.3.2 show hidden files

I am using Xcode 4.3.2 and I am trying to add some SDK references to my project.
I can SEE the files using Finder, as I used the terminal script to view hidden files.
Yet, when I go to my user home directory in Xcode finder, it does not show the "hidden" 'Library' folder under my user profile that stores my SDK files.
Scratching head
Press and hold the ⌘ + shift and . keys at the same time.
Then you can switch to view hidden/non-hidden files.
Answering you 9 months later from OS X 10.8 Mountain Lion...
Press ⌘ShiftG from within Xcode's Open dialog -- this is the Go To Folder command from Finder. This works in XCode's Open dialog as well. You could go to 'Library' or, as I did below, go to the otherwise hidden .config directory by typing '.config'
This screenshot shows both the process & the result of opening the .config folder. Note that I've already 'gone' to the .config folder once, which is why it's displayed on the left, above Applications.
Which command are you Using ?
Use Bellow Command it worked for me.
If the Library folder is not visible in your folder, enter the command "chflags nohidden ~/Library/ " on Terminal(Applications->Utilities->Terminal) application
Had a similar problem (but arrived on this page looking for answers).
I removed a reference to a file in XCode which I actually wanted to keep but the file still existed in finder.
Even though the file is in the correct folder, Xcode won't acknowledge it until you re-add it via File > Add Files To "YourProject"
The point I'm making is that the files in your code project folders vs. those actually included in the XCode project are two different things

Accidently removed "Contextual Menu Items " folder, RightClick not working , How to recover?

I was testing an application called iTrash during which it seems like i have deleted the
"Contextual Menu Items " folder as its no longer present and i can no longer right-click
anywhere on my Snow Leopard. I don't have any backups. Can someone tell me how i can recover
that folder or if i can download the files needed to have in that folder (just the original
ones) to regain the Right-click again?
I managed to get around the problem by reinstalling the 10.6.3 update and also by replacing the Track preference file .plist using an app called Pacifist which allows you to look into MacOSX installation Disk or image and search and extract individual files, in my case the default .plist file for the System Menu Trackpad. glad to see the back of this bizarre predicament.

Resources