Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

v0.1.5 does not show favorites anymore #305

Closed
doc75 opened this issue Feb 19, 2020 · 11 comments · Fixed by #306
Closed

v0.1.5 does not show favorites anymore #305

doc75 opened this issue Feb 19, 2020 · 11 comments · Fixed by #306

Comments

@doc75
Copy link
Contributor

doc75 commented Feb 19, 2020

Environment: docker official image (fpm-alpine)
Nextcloud version: 16.0.7 & 16.0.8

I was on maps v0.1.2 and tried to upgrade to maps v0.1.5.
After doing so I cannot see anymore my favorites.

To try to figure out which version is breaking things, I did the following:

  1. deactivate maps from Nextcloud UI
  2. suppress maps from Nextcloud UI
  3. go in custom_apps directory
  4. download version 0.1.2
  5. extract version
  6. change ownership: chown -R www-data:www-data maps
    -> Favorites can be seen as before.

I did the same 6 steps for version 0.1.3
-> Favorites can be seen as before.

I did the same 6 steps for version 0.1.4
-> Favorites can be seen as before.

I did the same 6 steps for version 0.1.5
-> Favorites cannot be seen as before.

Contacts in all version can still be seen.

I cannot find anything in the log that seems related to this issue.

Any idea on what I can do to try to get more information ?

@julien-nc
Copy link
Member

Thanks for the bug report. I think it's a side effect of merging frontend code with webpack. It's fine now with #306. If you feel like trying, it's available in master branch now.

@doc75
Copy link
Contributor Author

doc75 commented Feb 20, 2020

I Here is what I tried, but still having the same issue:

apk add nodejs npm make
wget https://github.com/nextcloud/maps/archive/master.zip
unzip  master.zip
mv maps-master/ maps
cd maps/
make
cd ..
chown -R www-data:www-data maps/

Then I activate the maps application in Nextcloud.
I still have the same issue.

I can see the modification you made through #306, but in the Web console of firefox I can see the same error: ReferenceError: assignment to undeclared variable cat

Did I miss something to test your modification properly ? Sorry but it is the first time I am testing a master version of a Nextcloud app.

@doc75
Copy link
Contributor Author

doc75 commented Feb 21, 2020

@eneiluj could we reopen it while fix is not validated ?

@julien-nc
Copy link
Member

julien-nc commented Feb 21, 2020

Yes we can.

Are you sure it's the same error. I mean is it still on the same line of same file?

BTW your procedure to get latest master is correct. Are you sure you cleared browser cache or reloaded with CTRL+F5?

@julien-nc julien-nc reopened this Feb 21, 2020
@julien-nc
Copy link
Member

Let's close this issue if we find out it's exactly the same as #307. Not sure yet.

doc75 added a commit to doc75/maps that referenced this issue Feb 21, 2020
….1.5 (due to missing var for a varialbe)
doc75 added a commit to doc75/maps that referenced this issue Feb 21, 2020
@doc75
Copy link
Contributor Author

doc75 commented Feb 21, 2020

@eneiluj, thanks for the advice, I cleared the cache (Ctrl+F5 does not seem to do anything on firefox), then it leads to another error.

As it is mentionned in script.js which is having very big line, the debug is not easy (sorry for the silly question, but is there a way to work on the src version to debug easily ?).

#308 has been pushed to fix the remaining issue.

julien-nc pushed a commit that referenced this issue Feb 22, 2020
Fix #305 - Fixing favorites not showing anymore in version 0.1.5
@doc75
Copy link
Contributor Author

doc75 commented Feb 22, 2020

@eneiluj let me know if I can help in checking this. I would just need some advice on how to debug with detailed JS files instead of script.js (which is pretty hard as it is one liner almost).

@julien-nc
Copy link
Member

I was away from Map development for a long time and I don't know much about webpack but as far as I understand, you can edit files in src and then run make to produce the big unified JS source file script.js. Thanks to the .map file (most likely), the browser is able to know where the errors come from and points to the lines in the files we really edit before compiling them with webpack.

It seems you got that too, considering your PR 😄.

I'll make a first round of tests, then make a PR, then it would be awesome if you could try to stimulate the UI to see where variable declarations are still missing. Hopefully there won't be anymore left 😁.

@doc75
Copy link
Contributor Author

doc75 commented Feb 22, 2020

@eneiluj, thanks for the information.

Mention me in the PR and I'll test it on my side.

julien-nc pushed a commit that referenced this issue Feb 22, 2020
Signed-off-by: Julien Veyssier <[email protected]>
@Bergum
Copy link

Bergum commented Feb 27, 2020

I Here is what I tried, but still having the same issue:

apk add nodejs npm make
wget https://github.com/nextcloud/maps/archive/master.zip
unzip  master.zip
mv maps-master/ maps
cd maps/
make
cd ..
chown -R www-data:www-data maps/

Is this how I download the latest beta and install it?
@doc75 @eneiluj

@doc75
Copy link
Contributor Author

doc75 commented Feb 27, 2020

Is this how I download the latest beta and install it?

@Bergum, yes, but before you need to suppress the map application from the GUI, and just before:

apk add nodejs npm make

just do:

cd custom_apps/

to be in the correct directory.

Do not forget to clean your browser cache before the test to be sure to download the latest version just compiled.

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

Successfully merging a pull request may close this issue.

3 participants