Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I downloaded this project from Github, and tried to run it using elm version 0.18.
The project is originally written in a prev elm version so I tried to make it run on my version.
The compiler said I cannot find module 'Graphics.Collage'.
So I entered to the package page and saw that it was part of core's package, but when I hitted the link to go to the latest version I got to a page where I could no longer understand what is going on..
Where it is written:
problem with parameter 'version': Must have format MAJOR.MINOR.PATCH (e.g. 1.0.2)
Could someone make sense out of this?
How can I import Graphics package in elm 0.18?
How can I find the solution for other packages that show the same error in their page?
Elm really has a problem with packages being moved out of core. Try installing evancz/elm-graphics instead.
Also re question 3: I usually go to http://package.elm-lang.org/ and search for the package name from there.
Judging by code history, the last time the the project that you are trying to build successfully built was in December 2014 ( there is a more recent commit in 2016 with the comment "Start upgrading to elm 0.17" but that looks incomplete). In December 2014, the latest version of Elm was 0.14 .
Now the latest version of Elm is 0.18. Each release along the way (0.15, 0.16, 0.17, 0.18) has introduced changes. Most of these are documented in the release notes : http://elm-lang.org/blog (scroll down past the "Articles" on that page).
The changes introduced in Elm 0.17 came with an upgrade plan : https://github.com/elm-lang/elm-platform/blob/master/upgrade-docs/0.17.md . This upgrade plan mentions that "The functionality of Graphics.* now lives in evancz/elm-graphics" ( as Andreas Hultgren already pointed out ). Another helpful document is this : http://faq.elm-community.org/17.html which contains more details about Graphics.Collage .
The Graphics.Collage change is only one of many changes introduced along the way from Elm 0.14 to Elm 0.18 . This modified clone of the project you were working with : https://github.com/dc25/elm-pong should compile and run under Elm 0.18 .
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I've got one java web based project. Build using JDK 1.8 and Using Intellij as IDE.
Using tomcat to deploy the product
Essentially in our product I was trying to test a few things with a class.
Very recently what has happened is whenever I am compiling and putting it inside our project it is saying page not found.
So, I reverted my code base to Out of the box state, compiled and put it back. Still it
s giving me page not found error.
One annoying this about this error is, In the logs I don't have a single error.
So it's not even hinting on where to look or what's going on.
Second annoying this was, like I did some series of changes , but for every change I took a back up. Think of it like, if default OTB was Revision 1, My changes are in Revision 2,3,4. From revision 4 I started to get this error. But when I take revision 1 and put it back. Still getting page not found. But if I take Revision 2 or 3. It is working.
I've compared all revisions and code wise there's no such change, which could break anything. I've a strong doubt that it could be one of the project structure settings.
I checked local history, but apparently local history refreshes every time you rebuild a project so no luck there.
I want to understand and resolve this problem.
Any tips on how to handle this, will help greatly.
Thanks
So, the answer to this problem was Embarrassingly simple.
Our project was last certified with OpenJDK11 but I mixed two of my tasks and started using openJDK12.
I don't understand what exactly in OpenJDK12 broke this.
And I want to inspect what went wrong.
But for the current task at hand. 1 solution is as simple as reverting back to OpenJDK11. After that when I used this modified class it was working perfectly.
PS: Still not 100% sure if it was due to jdk version. But If it was I wonder why in logs it was not mentioning that error. Which says compiled using higher version of Java.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to upgrade my Odoo module V12 to V13 Please guide me how can I do that. And can I upgrade just single module in ODOO 12? Please guide me step by step.
You can try Tasks to do in the migration listed above.
Bump module version to 13.0.1.0.0.
Remove any possible migration script from previous version.
Squash administrative commits (if any) with the previous commit for reducing commit noise. They are named as "[UPD] README.rst", "[UPD] Update $MODULE.pot", "Update translation files" and similar names, and comes from OCA-git-bot, oca-travis or oca-transbot.
Remove all the decorators #api.multi, #api.returns, #api.one, #api.cr, #api.model_cr from the code. Now they are all multi-record by default. In case of the last ones, you will need to adapt the code to the behavior change.
Check that all "compute" methods of non-stored computed fields assign a value in any case to the field, even if it is a falsy one. (https://github.com/odoo/odoo/pull/36743/commits/2e43bfc1c4b2f61e0459614f61f90a77dc3b7233).
Computed stored fields will keep their previous value if not assigned during the compute method, so don't rely on any expected default value.
Replace sudo(user): "deprecated use of sudo(user), use with_user(user) instead"
Some of the Font Awesome (FA) icons have changed their name as now Odoo uses FA v5, so you might need to change them in your module views. Check the changed names in https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes.
Remove all the oldname field attributes in the code. If they were added in previous version, they have served their function any way, and now in this version it's not supported, so if you have the need, create a migration script and use openupgradelib's rename_fields method.
Remove view_type tag on action window XML definition. It's now always form (tree is not supported since 11.0 any way).
Remove multi field from ir.actions.act_window models. Now you have binding_view_types field for indicating in which view the action will be available: list, form or empty for both. If declaring the action through the accelerator tag <act_window>, then use the attribute binding_views. More reference in https://github.com/odoo/odoo/pull/24738/commits/33d51480688065e367eb646f12b89d721749cac9.
If having an smart-button for active field, with widget toggle_button, the archive/unarchive actions are available without doing anything more, so you can remove it. And the new paradigm is to put instead a ribbon when archived with the code <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>.
If using any decimal precision in float fields (example: import odoo.addons.decimal_precision as dp; x = fields.Float(digits=dp.get_precision("Account"))), now the qualifier is put directly without the need of importing anything and simplifying syntax: x = fields.Float(digits="Account").
In the manifest, rename python dependencies to use the PyPI distribution name instead of the import name (see https://github.com/odoo/odoo/pull/25549 for more information)
If the module is touching Accounting part, see https://github.com/OCA/maintainer-tools/issues/430 for the structural changes detected in it.
Add tests to increase code coverage.
Check tasks of previous versions if you are migrating from lower versions than v12. It's also recommended to check for things not done in previous migrations.
Do the rest of the changes you need to do for making the module works on new version.
Regex which can help to find the things to remove/change:
grep -nri 'oldname\|sudo([^\)]\+)\|api.multi\|api.returns\|api.one\|api.cr\|api.model_cr\|12.0\|compute=' $MODULE
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I'm just going crazy about this but I can't find a solution so I'm here to ask for a help.
I've always used Notepad++ but since I've updated to Windows 10 it started not working.
When I open it N++ takes a long time (like.... A LONG time) to be operative (in the meanwhile it stays in "Not Responding").
When finally it unfreezes and I open a file, no text is shown BUT if I try to copy something and paste it somewhere else it does it correctly so I guess it's not a problem of encoding of stuff like these.....
I've tried many times to uninstall N++, clear all the files on the HDD and even eliminate registry keys but when I install it again nothing changes....
I'm desperate please help me!!!
I started having this issue too recently, and found that I had opened up a text file on my network at work, made some changes but hadn't saved it. Then when I got home (where I didn't have access to the network) Notepad++ opened really slow...
Some ideas to try to identify the problem:
Make sure you don't have any file loaded before closing notepad++. Specially files on net shares
If using the project tree Window (Folder as Workspace), try to close it. Specially if you have a huge workspace
Check executable compatibility mode. Is it changed?
Disable any 'check for updates' option (this includes notepad++ check for itself and also all plugins that have a similar option)
Uninstall/disable any notepad++ plugin
Try with a portable version. On the notepad++ site there are both installers and zip packages
Try with 32bit and 64bit versions
Try to delete this folder: "%APPDATA%\Notepad++" (maps to C:\Users\YOUR_USER\AppData\Roaming\Notepad++)
Try to temporarily disable the antivirus. Or add some exception to the path of Notepad++/Notepad++ portable
Create a clean new user and run it from there. Perhaps this is something wrong with some registry keys, so a clean state could work
The official site is here. (Just in case you downloaded it from elsewhere)
I was looking for a solution earlier and it seems like I fixed it myself by updating the application manually (even though "auto-updater" was on). Now the startup times are greatly improved.
Go to Plugins -> Plugin Manager -> Show Plugin Manager. Click the "Updates" tab. Hit the Update button and restart the application until your list of obsolete components / plugins is empty.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
When I create my second core data model and run the application everything is fine. But when I modify the second model, application is crashed, and I have to delete my app and run again. Is it normal? When I put my application's second version into the AppStore will it be OK or not?
This is expected behavior. You have altered your Core Data Model, and when you attempt to run the new model over the existing one in your previous build, it can't figure out how to migrate the old store to a new store with the new model; this is called a migration. A lightweight migration (meaning you don't have to write any custom migration logic) can be performed as long as you version your model for every set of model changes. When changes are made within a version and you install over a previous build, the migration fails and your app crashes.
For working in the simulator, it's normal to reset content and settings very often when messing with your core data model, but when shipping to the store, it's very important to be aware of model versions. Once you ship with Model Version 1, no more edits can be made to that model version. As soon as you ship with model 1, go ahead and create a new model that you can edit freely until your next ship date. Do this by selecting your xcdatamodelId file, and selecting Editor -> Add Model Version. The "based on model" is your current model. Once this is created, select your xcdatamodelId file again and in the file inspector, make sure you new model version is selected under the heading Model Version.
Doing this will allow you to use lightweight migrations and stop your crashes, and you data will migrate from your old store to the new one on installing an update. Read here in the docs for more!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Yesterday I had a huge problem - suddenly my cocos2d project stopped compiling. You can read the story here: My cocos2d project stopped compiling! Over 40 errors! What to do?
Apparently something changed the folder name and it was the reason. I have made a new project, copied my files into it, verified that everything worked, made a snapshot and zip backup and went to sleep. Now when I did a small change to code and compiled it for simulator it worked.
But when I tried to compile it for device I got same 40 errors.
This is really killing me.
I use ARC-enabled cocos2d project.
If you want to check it out yourself here is the project - https://www.dropbox.com/s/eic1llpri6x6akt/BusterballBackupV1.0.zip
Restoring snapshot or from zip file didnt help either.
I think the problem might be with that:
When you look on the pane to the left of Xcode where you see your project layout there is a folder named Products. It contains two items in it - app itself and libcocos2d-library.a.
When I checked out fresh template they are black and have some strange path in the depth of xcode. But after I add files they go red and lose paths. What can be done about that? I cannot find that file (libcocos2d-library.a)
The problem is caused by the configuration of the static library target. The option "Always Search User Paths" should be set to NO. Here are the steps:
Choose the target cocos2d-library
In the right side, choose the Build Settings,
Find Always Search User Paths and set it to be NO
Build the project. It should be OK. The xCode version I used is Version 4.4 (4F250)