Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Microsoft Windows notes #153

Open
clach04 opened this issue Jul 11, 2021 · 2 comments
Open

Microsoft Windows notes #153

clach04 opened this issue Jul 11, 2021 · 2 comments

Comments

@clach04
Copy link
Contributor

clach04 commented Jul 11, 2021

Not ready for a PR yet, jotting down notes on installing/running Mervane on Microsoft Windows (10).

Also see #148

pip problem

pip install may not work unless a C compiler and Rust compiler is installed due to (indirect) dependencies of packages that are installed. However there are binary Wheels available for all direct and indirect dependencies BUT that requires an update to pip. E.g. Python 3.8 with pip-19.0.3 will fail to install wheels correctly. pip-21.1.3 works fine

pip fix

Issue:

python -m pip install --upgrade pip

Then follow Pervane install instructions.

Webbrowser silently fails

Web server will not display tab correctly (shows mustache/handlebars template name) {{ openTabHeader|shortenTabName }}

Console log shows 2 errors:

  • (index):69 Uncaught SyntaxError: Invalid or unexpected token
  • (index):1411 Uncaught ReferenceError: tree is not defined at (index):1411

issue 1 is invalid javascript, directory name is "\", so unescaped path:

var rootDirPath = "\";

Possible workaround specify dir in unix format python pervane/serve.py --debug=true --dir pervane/example/ does not seem to work :( (code fix needed).

Issue 2, unclear, likely missing variable due to number 1

@hakanu
Copy link
Owner

hakanu commented Jul 16, 2021

I didn't test the recent versions under windows, thanks for the report. I will try to nail this. Though I will need your help since I dont have windows

@clach04
Copy link
Contributor Author

clach04 commented Jul 17, 2021

@hakanu if you can point me with ideally the line of code (or some specific notes) on how

var rootDirPath = "{{ tree.path|replace(working_dir, '')}}";
gets populated on the Python side I can tag-team in and pick it up from there :-)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants