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
Copy file name to clipboardExpand all lines: _docs/developer/getting_started/phpstorm.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ Under the `Mappings` tab, set the following:
51
51
This step will configure PhpStorm to use the PHP CLI that is configured inside your vagrant machine.
52
52
It is important to use this PHP installation as opposed to some other one as it ensures environment consistency among developers and production servers.
53
53
54
-
Under PhpStorm settings, open `Languages & Frameworks` > `PHP`. Press the `...` button next to `CLI Interpreter` and, on the left list of the interpreters window, press the `+` and select `From Docker, Vagrant, VM, Remote...`.
54
+
Under PhpStorm settings, open `PHP`. Press the `...` button next to `CLI Interpreter` and, on the left list of the interpreters window, press the `+` and select `From Docker, Vagrant, VM, Remote...`.
55
55
Select `Vagrant` from the list of radio buttons.
56
56
Then press `OK` to add the interpreter and `OK` to save the list of interpreters.
57
57
@@ -61,7 +61,7 @@ Open `Tools` > `Deployment...` > `Options`. Set `Upload changed files automatica
61
61
62
62
## Enable PHP debugging using xdebug
63
63
64
-
Under PhpStorm settings, open `Languages & Frameworks` > `PHP` > `Debug`. In the pre-configuration steps, press `Validate` to open the configuration validator. Choose `Remote Web Server` and set the following:
64
+
Under PhpStorm settings, open `PHP` > `Debug`. In the pre-configuration steps, press `Validate` to open the configuration validator. Choose `Remote Web Server` and set the following:
65
65
66
66
-`Path to create validation script`: `<submitty repository root>/site/public`
67
67
-`Deployment Server`: Use the SFTP connection you set up in the first step
@@ -91,7 +91,7 @@ Now you can browse the tables in the database window by expanding the tabs next
91
91
92
92
## Running PHPUnit tests
93
93
94
-
Under PhpStorm settings, open `Languages & Frameworks` > `PHP` > `Test Frameworks`. Press the `+` button to add a testing configuration, using the `PHPUnit by Remote Interpreter` type. Choose the interpreter you configured in earlier steps. Then set:
94
+
Under PhpStorm settings, open `PHP` > `Test Frameworks`. Press the `+` button to add a testing configuration, using the `PHPUnit by Remote Interpreter` type. Choose the interpreter you configured in earlier steps. Then set:
95
95
96
96
-`PHPUnit Library`: `Use Composer autoloader`
97
97
-`Path to script`: `/usr/local/submitty/GIT_CHECKOUT/Submitty/site/vendor/autoloader.php`
@@ -132,7 +132,7 @@ Press `OK` to save the run configuration. If you then `Debug` the configuration,
132
132
133
133
During debugging, you may get decently upset at how often you step into magic methods and class loaders etc. There's an easy fix for this:
134
134
135
-
Under PhpStorm settings, open `Languages & Frameworks` > `PHP` > `Debug` > `Step Filters`. Check `Skip magic methods` and add the following to `Skipped Methods`:
135
+
Under PhpStorm settings, open `PHP` > `Debug` > `Step Filters`. Check `Skip magic methods` and add the following to `Skipped Methods`:
Copy file name to clipboardExpand all lines: _docs/developer/troubleshooting/installation_troubleshooting.md
+48-1
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ with no explanation, then there are a couple of things that may be going wrong:
67
67
brew reinstall --cask vagrant
68
68
vagrant plugin update
69
69
vagrant box update
70
+
vagrant plugin install vagrant-timezone
70
71
```
71
72
72
73
If you continue to have errors on Mac with `vagrant up` after
@@ -109,11 +110,25 @@ with no explanation, then there are a couple of things that may be going wrong:
109
110
directories/repositories to clean up unwanted VMs.
110
111
111
112
The following command can help locate misplaced repositories/VMs:
112
-
113
113
```
114
114
vagrant global-status
115
115
```
116
116
117
+
If you see unnecessary VMs, you can clean them up with (replace
118
+
`1a2b3c4d` with the id of the VM you wish to destroy):
119
+
```
120
+
vagrant destroy 1a2b3c4d
121
+
```
122
+
123
+
If the command above does not successfully destroy and remove the VM from the
124
+
global-status list, you may see an error similar to: `The machine
125
+
with the name 'ubuntu-20.04' was not found configured for this
126
+
Vagrant environment.` You can try to clean up these undestroyed VMs record by
127
+
running:
128
+
```
129
+
vagrant global-status --prune
130
+
```
131
+
117
132
* If you might have old, forgotten VMs from previous OS versions
118
133
hanging around it can be helpful to completely delete the `.vagrant`
119
134
folder in your repository. Also check to see if you have multiple
@@ -180,3 +195,35 @@ broadcast 192.168.56.255
180
195
```
181
196
182
197
References and useful links: [https://gist.github.com/pjdietz/5768124](https://gist.github.com/pjdietz/5768124) and [http://christophermaier.name/2010/09/01/host-only-networking-with-virtualbox/](http://christophermaier.name/2010/09/01/host-only-networking-with-virtualbox/)
198
+
199
+
200
+
## Guest Additions
201
+
202
+
203
+
Submitty vagrant no longer uses Virtual Box Guest Additions. If you
204
+
see errors about version mismatch with Guest Additions, and if the VM
205
+
hangs trying to update the version of Guest Additions to match the
206
+
host version of Guest Additions, you may have old versions of the
207
+
development process on your machine and may need to more completely
208
+
uninstall and reinstall Virtual Box and Vagrant to reset your system.
209
+
210
+
**NOTE: THESE ACTIONS WILL DELETE ALL VMS ON YOUR SYSTEM.**
211
+
212
+
Some things to check:
213
+
214
+
* From your main Submitty repository, e.g. `<SOMETHING>/GIT_CHECKOUT/Submitty/`
215
+
run `rm -rf .vagrant`
216
+
217
+
(you may need to put sudo in front)
218
+
219
+
* Check all files on your filesystem for vagrant. Run 'locate
220
+
vagrant' and remove any old library / installation files you see.
0 commit comments