Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

[Windows] Workspace not set correctly causes: Error: Unable to read project #236

Closed
ghost opened this issue Oct 5, 2013 · 8 comments
Closed

Comments

@ghost
Copy link

ghost commented Oct 5, 2013

MavensMate running on Sublime Text 3 on Windows 8 after creating a new MavensMate project, I get the error '/code/MyProject/MyProject.sublime-project'. After clicking OK, an empty document opens up in a new Sublime Text window.

It appears all my Salesforce project's code got downloaded.

@all2human
Copy link

I get the same error but no code is downloaded. I'm also running Windows 8.

@joeferraro
Copy link
Owner

Hey guys, it's be helpful to have a full list of steps to reproduce this issue including the name of the project, your mm_workspace setting, which metadata you selected, whether you're x64, also if there's anything in the Sublime Text console that may help us debug.

@all2human
Copy link

Hi. The name of my project is ratings. The mm_workspace is
/maven_workspaces/. I went with the default metadata. I'm x64. Here is
the console. The error happens when open sublime and you will see an error
in the log when I try to open the project from the MavensMate menu.

DPI scale: 1
startup, version: 3047 windows x64 channel: stable
executable: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir: /C/Program Files/Sublime Text 3
packages path: /C/Users/John/AppData/Roaming/Sublime Text 3/Packages
state path: /C/Users/John/AppData/Roaming/Sublime Text 3/Local
hardware concurrency: 4
zip path: /C/Program Files/Sublime Text 3/Packages
zip path: /C/Users/John/AppData/Roaming/Sublime Text 3/Installed Packages
found 4 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 2 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
startup cache, total files: 148 cache hits: 148
pre session restore time: 0.0818429
Unable to read project /maven_workspaces/ratings/ratings.sublime-project
startup time: 1.84184
first paint time: 1.84484
launching: /C/Program Files/Sublime Text 3/plugin_host.exe
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin MavensMate.init
reloading plugin MavensMate.apex_reserved
reloading plugin MavensMate.config
reloading plugin MavensMate.install-dev
reloading plugin MavensMate.install
reloading plugin MavensMate.mavensmate
loaded 837 snippets
forcing MavensMate Diff to reload itself
reloading plugin MavensMate.util
plugins loaded
Unable to read project /maven_workspaces/ratings/ratings.sublime-project

Here is the project file contents:

{
"folders": [
{
"path": "/maven_workspaces/ratings"
}
],
"settings": {
"auto_complete_triggers": [
{
"characters": ".",
"selector": "source - comment"
},
{
"characters": ":",
"selector": "text.html - comment"
},
{
"characters": "<",
"selector": "text.html - comment"
},
{
"characters": " ",
"selector": "text.html - comment"
}
]
}
}

On Fri, Oct 11, 2013 at 9:26 AM, Joe Ferraro notifications@github.comwrote:

Hey guys, it's be helpful to have a full list of steps to reproduce this
issue including the name of the project, your mm_workspace setting, which
metadata you selected, whether you're x64, also if there's anything in the
Sublime Text console that may help us debug.


Reply to this email directly or view it on GitHubhttps://github.com//issues/236#issuecomment-26136572
.

@joeferraro
Copy link
Owner

Try switching your mm_workspace setting to something like so (assuming this is a directory on the root of your C: drive):

C:\\maven_workspaces

@all2human
Copy link

I tried that and now here is what i get in the console. The Salesforce
code is being pulled for the project but i get new errors:

DPI scale: 1
startup, version: 3047 windows x64 channel: stable
executable: /C/Program Files/Sublime Text 3/sublime_text.exe
working dir: /C/Program Files/Sublime Text 3
packages path: /C/Users/John/AppData/Roaming/Sublime Text 3/Packages
state path: /C/Users/John/AppData/Roaming/Sublime Text 3/Local
hardware concurrency: 4
zip path: /C/Program Files/Sublime Text 3/Packages
zip path: /C/Users/John/AppData/Roaming/Sublime Text 3/Installed Packages
found 4 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 2 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
wrote startup cache, added files: 1 orphaned files: 0 total files: 149
cache hits: 148
pre session restore time: 0.114698
startup time: 0.145698
first paint time: 0.198698
launching: /C/Program Files/Sublime Text 3/plugin_host.exe
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin MavensMate.init
reloading plugin MavensMate.apex_reserved
reloading plugin MavensMate.config
reloading plugin MavensMate.install-dev
reloading plugin MavensMate.install
reloading plugin MavensMate.mavensmate
loaded 837 snippets
forcing MavensMate Diff to reload itself
reloading plugin MavensMate.util
plugins loaded
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 438, in
is_enabled_
ret = self.is_enabled(**args)
File "C:\Users\John\AppData\Roaming\Sublime Text
3\Packages\MavensMate\mavensmate.py", line 744, in is_enabled
if util.is_config.mm_dir(d):
AttributeError: 'module' object has no attribute 'is_config'
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 438, in
is_enabled_
ret = self.is_enabled(**args)
File "C:\Users\John\AppData\Roaming\Sublime Text
3\Packages\MavensMate\mavensmate.py", line 744, in is_enabled
if util.is_config.mm_dir(d):
AttributeError: 'module' object has no attribute 'is_config'
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 438, in
is_enabled_
ret = self.is_enabled(**args)
File "C:\Users\John\AppData\Roaming\Sublime Text
3\Packages\MavensMate\mavensmate.py", line 744, in is_enabled
if util.is_config.mm_dir(d):
AttributeError: 'module' object has no attribute 'is_config'
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 438, in
is_enabled_
ret = self.is_enabled(**args)
File "C:\Users\John\AppData\Roaming\Sublime Text
3\Packages\MavensMate\mavensmate.py", line 744, in is_enabled
if util.is_config.mm_dir(d):
AttributeError: 'module' object has no attribute 'is_config'
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 440, in
is_enabled_
ret = self.is_enabled()
File "C:\Users\John\AppData\Roaming\Sublime Text
3\Packages\MavensMate\mavensmate.py", line 374, in is_enabled
return "apex-scripts" in util.get_active_file() and '.cls' in
util.get_active_file()
TypeError: argument of type 'NoneType' is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 442, in
is_enabled_
ret = self.is_enabled()
File "C:\Users\John\AppData\Roaming\Sublime Text
3\Packages\MavensMate\mavensmate.py", line 374, in is_enabled
return "apex-scripts" in util.get_active_file() and '.cls' in
util.get_active_file()
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 440, in
is_enabled_
ret = self.is_enabled()
File "C:\Users\John\AppData\Roaming\Sublime Text
3\Packages\MavensMate\mavensmate.py", line 374, in is_enabled
return "apex-scripts" in util.get_active_file() and '.cls' in
util.get_active_file()
TypeError: argument of type 'NoneType' is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 442, in
is_enabled_
ret = self.is_enabled()
File "C:\Users\John\AppData\Roaming\Sublime Text
3\Packages\MavensMate\mavensmate.py", line 374, in is_enabled
return "apex-scripts" in util.get_active_file() and '.cls' in
util.get_active_file()
TypeError: argument of type 'NoneType' is not iterable

On Fri, Oct 11, 2013 at 10:06 AM, Joe Ferraro notifications@github.comwrote:

Try switching your mm_workspace setting to something like so (assuming
this is a directory on the root of your C: drive):

C:\maven_workspaces


Reply to this email directly or view it on GitHubhttps://github.com//issues/236#issuecomment-26139431
.

@ghost
Copy link
Author

ghost commented Oct 14, 2013

Steps to reproduce:

  1. Select MavensMate->Project->New Project...
  2. Google Chrome opens up New Project page.
  3. I enter the following (not showing real username and password):
    Project Name: devorg
    Username:
    Password:
  4. I select 'Developer' from the drop down list.
  5. Click 'Project Metadata' tab where I have the following checked:
    ApexClass
    ApexComponent
    ApexPage
    ApexTrigger
    StaticResource
  6. Click 'Create Project'
  7. Dialog box appears with text 'Creating new MavensMate project'
  8. After about 30 seconds, Sublime Text dialog box appears with message 'Unable to read project /code/devorg/devorg.sublime-project'
  9. Click 'OK' and new window appears in Sublime Text with the title '(untitled) devorg - Sublime Text (UNREGISTERED)'

Here is my Sublime Text Console Output:

[MAVENSMATE] executing mm terminal call:
"C:\Program Files (x86)\MavensMate\App\python.exe" -E "C:\Users\ahotc_000\AppData\Roaming\Sublime Text 3\Packages\MavensMate\mm\mm.py" -o new_project --ui -c SUBLIME_TEXT_3
{}
[MAVENSMATE] response from mm: {"body": "UI Generated Successfully", "body_type": "text", "success": true, "time": "1.3640000820159912"}

RUNNING DEBUG BACKGROUND WORKER!!!
{"org_type": "developer", "password": "iremovedthis", "username": "iremovedthis", "subscription": ["ApexClass", "ApexComponent", "ApexPage", "ApexTrigger", "CustomObject", "Profile", "StaticResource"]}
<MavensMate.lib.server.lib.handler.Handler object at 0x03CD32D0>
RUNNING DEBUG BACKGROUND WORKER!!!
b'{"project_name":"devorg","username":"iremovedthis","password":"iremovedthis","org_type":"developer","package":{"ApexClass":"","ApexComponent":"","ApexPage":"","ApexTrigger":"","StaticResource":"*"},"workspace":"/code","subscription":["ApexClass","ApexComponent","ApexPage","ApexTrigger","CustomObject","Profile","StaticResource"],"action":"new","org_url":""}'
Unable to read project /code/devorg/devorg.sublime-project

My mm_workspace is set to "/code"

I am running Windows 8 x64.

Using MavensMate 3.1.4.

Does it matter if I am running the UNREGISTERED version of Sublime Text 3?

Thanks and please let me know if I can provide any other assistance.

@joeferraro
Copy link
Owner

The Sublime Text command line tool is having difficult locating your project file because it's trying to reference it directly. Set mm_workspace as suggested in the settings file and see if it helps:

C:\\code

@ghost
Copy link
Author

ghost commented Oct 14, 2013

That worked! Thanks so much.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants